refactor: Improve performance
Self host font header.html: Set width and height for img home.html: Set width and height for img home.html: Lighthouse 100/100 Mobile & Desktop
This commit is contained in:
parent
6c61d49e03
commit
d9528cf9a2
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<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 }}">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap" rel="stylesheet">
|
<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 %}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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');
|
||||||
|
}
|
|
@ -55,6 +55,7 @@ $sub-footer-text-color: $white;
|
||||||
@import 'components/strip';
|
@import 'components/strip';
|
||||||
@import 'components/feature';
|
@import 'components/feature';
|
||||||
@import 'components/social';
|
@import 'components/social';
|
||||||
|
@import 'components/fonts';
|
||||||
|
|
||||||
// Pages
|
// Pages
|
||||||
@import 'pages/page-home';
|
@import 'pages/page-home';
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue