1
0
Fork 0

Merge pull request #44 from Balaiseee/master

refactor: Improve performance, seo, accessibility and security
This commit is contained in:
Robert Austin 2021-08-10 13:13:28 +10:00 committed by GitHub
commit 0fe44fd51e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
35 changed files with 93 additions and 62 deletions

View File

@ -4,8 +4,11 @@ title: 'Jekyll Serif'
logo: logo:
mobile: "images/logo/logo-mobile.svg" mobile: "images/logo/logo-mobile.svg"
mobile_height: "32px"
mobile_width: "32px"
desktop: "images/logo/logo.svg" desktop: "images/logo/logo.svg"
desktop_height: "36px" desktop_height: "32px"
desktop_width: "120px"
collections: collections:
services: services:
@ -27,7 +30,7 @@ defaults:
sass: sass:
indentWidth: 4 indentWidth: 4
style: compact # possible values: nested expanded compact compressed style: compressed # possible values: nested expanded compact compressed
precision: 10 precision: 10
plugins: plugins:

View File

@ -2,16 +2,28 @@
{ {
"title": "Free Consultation", "title": "Free Consultation",
"description": "New clients receive an obligation free consultation.", "description": "New clients receive an obligation free consultation.",
"image": "images/features/noun_branding_1885335.svg" "image": {
"url": "images/features/noun_branding_1885335.svg",
"width": 80,
"height": 80
}
}, },
{ {
"title": "Certified Accountants", "title": "Certified Accountants",
"description": "All members of our team are certified accountants.", "description": "All members of our team are certified accountants.",
"image": "images/features/noun_The Process_1885341.svg" "image": {
"url": "images/features/noun_The Process_1885341.svg",
"width": 80,
"height": 80
}
}, },
{ {
"title": "Tax Compliance", "title": "Tax Compliance",
"description": "We stay up to date on the latest changes to the tax code.", "description": "We stay up to date on the latest changes to the tax code.",
"image": "images/features/noun_3d modeling_1885342.svg" "image": {
"url": "images/features/noun_3d modeling_1885342.svg",
"width": 80,
"height": 80
}
} }
] ]

View File

@ -3,7 +3,7 @@
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<div class="footer-inner"> <div class="footer-inner">
<h3 class="footer-title">{{site.title}}</h3> <h2 class="footer-title">{{site.title}}</h2>
<ul> <ul>
{% assign footermenu = site.data.menus.footer | sort: 'weight' %} {% assign footermenu = site.data.menus.footer | sort: 'weight' %}
{% for item in footermenu %} {% for item in footermenu %}

View File

@ -1,10 +1,10 @@
<div class='header'> <div class='header'>
<div class="container"> <div class="container">
<div class="logo"> <div class="logo">
<a href="{{ site.baseurl }}"><img height="{{ site.logo.desktop_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a> <a href="{{ site.baseurl }}"><img width="{{ site.logo.desktop_width }}" height="{{ site.logo.desktop_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a>
</div> </div>
<div class="logo-mobile"> <div class="logo-mobile">
<a href="{{ site.baseurl }}"><img alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a> <a href="{{ site.baseurl }}"><img width="{{ site.logo.mobile_width }}" height="{{ site.logo.mobile_height }}" alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a>
</div> </div>
{% include main-menu.html %} {% include main-menu.html %}
{% include hamburger.html %} {% include hamburger.html %}

View File

@ -6,7 +6,12 @@
<title>{% if page.title %}{{page.title}}{% else %}{{ site.title | escape }}{% endif %}</title> <title>{% if page.title %}{{page.title}}{% else %}{{ site.title | escape }}{% endif %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" href="{{ '/images/favicon-32x32.svg' | relative_url }}"> <link rel="icon" type="image/png" href="{{ '/images/favicon-32x32.svg' | relative_url }}">
<!-- Google Fonts CDN -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap" rel="stylesheet">
<!-- Self host font -->
<!-- <link rel="preload" href="{{ '/assets/fonts/playfair-display.woff2' | relative_url }}" as="font" type="font/woff2" crossorigin> -->
<link href="{{ '/assets/css/style.css' | relative_url }}" rel="stylesheet"> <link href="{{ '/assets/css/style.css' | relative_url }}" rel="stylesheet">
{% if page.description %}<meta name="description" content="{{ page.description }}" />{% endif %} {% if page.description %}<meta name="description" content="{{ page.description }}" />{% endif %}
@ -29,7 +34,7 @@
</div> </div>
{% include footer.html %} {% include footer.html %}
{% include sub-footer.html %} {% include sub-footer.html %}
<script type="text/javascript" src="{{ "/assets/js/scripts.js" | relative_url }}"></script> <script type="text/javascript" src="{{ '/assets/js/scripts.js' | relative_url }}"></script>
{% include google-analytics.html %} {% include google-analytics.html %}
</body> </body>
</html> </html>

View File

@ -14,7 +14,7 @@ bodyClass: "page-home"
</div> </div>
{% if page.intro_image %} {% if page.intro_image %}
<div class="col-12 col-md-5 col-lg-6 order-1 order-md-2 position-relative"> <div class="col-12 col-md-5 col-lg-6 order-1 order-md-2 position-relative">
<img alt={{ page.title }} class="intro-image{% if page.intro_image_absolute %} intro-image-absolute{% endif %}{% if page.intro_image_hide_on_mobile %} intro-image-hide-mobile{% endif %}" src="{{ page.intro_image | relURL }}" /> <img alt="{{ page.title }}" class="intro-image{% if page.intro_image_absolute %} intro-image-absolute{% endif %}{% if page.intro_image_hide_on_mobile %} intro-image-hide-mobile{% endif %}" src="{{ page.intro_image | relURL }}" />
</div> </div>
{% endif %} {% endif %}
</div> </div>
@ -54,7 +54,7 @@ bodyClass: "page-home"
<div class="col-12 col-md-6 col-lg-4 mb-2"> <div class="col-12 col-md-6 col-lg-4 mb-2">
<div class="feature"> <div class="feature">
{% if feature.image %} {% if feature.image %}
<div class="feature-image"><img alt="{{ feature.title }} logo" src="{{ feature.image | relative_url }}" /></div> <div class="feature-image"><img alt="{{ feature.title }} logo" src="{{ feature.image.url | relative_url }}" width="{{ feature.image.width }}" height="{{ feature.image.height }}" /></div>
{% endif %} {% endif %}
<h2 class="feature-title">{{ feature.title }}</h2> <h2 class="feature-title">{{ feature.title }}</h2>
<div class="feature-content">{{ feature.description }}</div> <div class="feature-content">{{ feature.description }}</div>

View File

@ -26,14 +26,14 @@ bodyClass: "page-teams"
<div class="team team-summary team-summary-large"> <div class="team team-summary team-summary-large">
{% if team.image %} {% if team.image %}
<div class="team-image"> <div class="team-image">
<img alt="{{ team.title }}" class="img-fluid mb-2" src="{{ team.image | relative_url }}" /> <img width="90" height="90" alt="{{ team.title }}" class="img-fluid mb-2" src="{{ team.image | relative_url }}" />
</div> </div>
{% endif %} {% endif %}
<div class="team-meta"> <div class="team-meta">
<h2 class="team-name"><a href="{{ team.url | relative_url }}">{{ team.title }}</a></h2> <h2 class="team-name"><a href="{{ team.url | relative_url }}">{{ team.title }}</a></h2>
<p class="team-description">{{ team.jobtitle }}</p> <p class="team-description">{{ team.jobtitle }}</p>
{% if team.linkedinurl %} {% if team.linkedinurl %}
<a target="_blank" href="{{ team.linkedinurl }}">LinkedIn</a> <a target="_blank" href="{{ team.linkedinurl }}" rel="noreferrer">LinkedIn</a>
{% endif %} {% endif %}
</div> </div>
<div class="team-content">{{ team.content | truncate: 120 }}</div> <div class="team-content">{{ team.content | truncate: 120 }}</div>
@ -48,7 +48,7 @@ bodyClass: "page-teams"
<div class="team team-summary"> <div class="team team-summary">
{% if team.image %} {% if team.image %}
<div class="team-image"> <div class="team-image">
<img alt="{{ team.title }}" class="img-fluid mb-2" src="{{ team.image | relative_url }}" /> <img width="60" height="60" alt="{{ team.title }}" class="img-fluid mb-2" src="{{ team.image | relative_url }}" />
</div> </div>
{% endif %} {% endif %}
<div class="team-meta"> <div class="team-meta">

View File

@ -0,0 +1,7 @@
@font-face {
font-family: 'Playfair Display';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local(''), url('../fonts/playfair-display.woff2') format('woff2');
}

View File

@ -1,5 +1,5 @@
a { a {
color: $primary; color: $primary-dark;
} }
p { p {
line-height: 26px; line-height: 26px;

View File

@ -1,9 +1,9 @@
--- ---
title: 'Mike Vance' title: "Mike Vance"
date: 2018-12-20T13:44:30+10:00 date: 2018-12-20T13:44:30+10:00
draft: false draft: false
image: 'images/team/joseph-gonzalez-399972-unsplash.jpg' image: "images/team/joseph-gonzalez-399972-unsplash.jpg"
jobtitle: 'Art Director' jobtitle: "Art Director"
linkedinurl: "" linkedinurl: ""
weight: 3 weight: 3
--- ---

View File

@ -1,9 +1,9 @@
--- ---
title: 'Robert Johnson' title: "Robert Johnson"
date: 2018-12-20T13:44:23+10:00 date: 2018-12-20T13:44:23+10:00
draft: false draft: false
image: 'images/team/vince-fleming-613817-unsplash.jpg' image: "images/team/vince-fleming-613817-unsplash.jpg"
jobtitle: 'Developer' jobtitle: "Developer"
linkedinurl: "https://www.linkedin.com/" linkedinurl: "https://www.linkedin.com/"
weight: 3 weight: 3
--- ---

View File

@ -1,9 +1,9 @@
--- ---
title: 'Susan Shelton' title: "Susan Shelton"
date: 2018-12-20T13:45:06+10:00 date: 2018-12-20T13:45:06+10:00
draft: false draft: false
image: 'images/team/cristian-newman-94319-unsplash.jpg' image: "images/team/cristian-newman-94319-unsplash.jpg"
jobtitle: 'Developer' jobtitle: "Developer"
weight: 5 weight: 5
--- ---

View File

@ -1,9 +1,9 @@
--- ---
title: 'Tamara Ells' title: "Tamara Ells"
date: 2018-12-20T13:44:55+10:00 date: 2018-12-20T13:44:55+10:00
draft: false draft: false
image: 'images/team/michael-dam-258165-unsplash.jpg' image: "images/team/michael-dam-258165-unsplash.jpg"
jobtitle: 'UI Designer' jobtitle: "UI Designer"
weight: 4 weight: 4
--- ---

View File

@ -1,7 +1,7 @@
--- ---
title: "About" title: About
date: 2018-02-22T17:01:34+07:00
layout: page layout: page
description: About
bodyClass: page-about bodyClass: page-about
--- ---

59
assets/css/style.scss Executable file → Normal file
View File

@ -3,12 +3,13 @@
--- ---
// Colors // Colors
$primary: #E5261F; $primary: #e5261f;
$primary-dark: #a01b16;
$secondary: #f88379; $secondary: #f88379;
$black: #2f2f41; $black: #2f2f41;
$white: #ffffff; $white: #ffffff;
$white-offset: #fff6f8; $white-offset: #fff6f8;
$steel: #5C5A5A; $steel: #5c5a5a;
// Links // Links
$link-color: $primary; $link-color: $primary;
@ -18,7 +19,7 @@ $link-hover-decoration: underline;
// Fonts // Fonts
$font-family-base: Helvetica, Arial, sans-serif, -apple-system; $font-family-base: Helvetica, Arial, sans-serif, -apple-system;
$font-family-heading: 'Playfair Display', serif, -apple-system; $font-family-heading: "Playfair Display", serif, -apple-system;
// Footer // Footer
$footer-background-color: $primary; $footer-background-color: $primary;
@ -27,39 +28,39 @@ $sub-footer-background-color: darken($primary, 10%);
$sub-footer-text-color: $white; $sub-footer-text-color: $white;
// Bootstrap // Bootstrap
@import 'bootstrap-variables'; @import "bootstrap-variables";
@import 'bootstrap/bootstrap-reboot'; @import "bootstrap/bootstrap-reboot";
@import 'bootstrap/bootstrap-grid'; @import "bootstrap/bootstrap-grid";
// @import 'bootstrap/bootstrap'; // Uncomment this line to import the entire Bootstrap library // @import 'bootstrap/bootstrap'; // Uncomment this line to import the entire Bootstrap library
// Libraries // Libraries
@import 'libraries/hamburgers/hamburgers'; @import "libraries/hamburgers/hamburgers";
// Components // Components
@import 'components/type'; @import "components/type";
@import 'components/page'; @import "components/page";
@import 'components/header'; @import "components/header";
@import 'components/footer'; @import "components/footer";
@import 'components/sub-footer'; @import "components/sub-footer";
@import 'components/logo'; @import "components/logo";
@import 'components/main-menu'; @import "components/main-menu";
@import 'components/main-menu-mobile'; @import "components/main-menu-mobile";
@import 'components/hamburger'; @import "components/hamburger";
@import 'components/buttons'; @import "components/buttons";
@import 'components/call'; @import "components/call";
@import 'components/title'; @import "components/title";
@import 'components/content'; @import "components/content";
@import 'components/intro'; @import "components/intro";
@import 'components/intro-image'; @import "components/intro-image";
@import 'components/strip'; @import "components/strip";
@import 'components/feature'; @import "components/feature";
@import 'components/social'; @import "components/social";
// @import "components/fonts"; // Uncomment this line to self host font
// Pages // Pages
@import 'pages/page-home'; @import "pages/page-home";
@import 'pages/page-teams'; @import "pages/page-teams";
@import 'pages/page-service'; @import "pages/page-service";
body { body {
font-size: 16px; font-size: 16px;

Binary file not shown.

View File

@ -1,6 +1,7 @@
--- ---
title: Contact title: Contact
layout: contact layout: contact
description: Contact
--- ---
Lorem markdownum aequalis strigis. Saetigeri iubeas, vultu huic alvum nondum de obside ut laniavit arbor palmis, cum quin. Rupes vetat videndo, armigerae crimen habet Priamum nec. Lorem markdownum aequalis strigis. Saetigeri iubeas, vultu huic alvum nondum de obside ut laniavit arbor palmis, cum quin. Rupes vetat videndo, armigerae crimen habet Priamum nec.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

@ -1,9 +1,10 @@
--- ---
title: Services title: Services
layout: services layout: services
description: Services
intro_image: "images/illustrations/reading.svg" intro_image: "images/illustrations/reading.svg"
intro_image_absolute: true intro_image_absolute: true
intro_image_hide_on_mobile: false intro_image_hide_on_mobile: true
--- ---
# Services that grow with your business # Services that grow with your business

View File

@ -1,6 +1,7 @@
--- ---
title: Team title: Team
layout: teams layout: teams
description: Team
permalink: "/team/" permalink: "/team/"
intro_image_absolute: true intro_image_absolute: true
intro_image_hide_on_mobile: false intro_image_hide_on_mobile: false