Skip to content

Commit

Permalink
Update masthead LQIPs
Browse files Browse the repository at this point in the history
  • Loading branch information
csswizardry committed Aug 25, 2023
1 parent 0a44b5c commit 0c8a2f6
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ bower_components/
_drafts/
Icon
Gemfile.lock
img/css/_masthead.jpg
Expand Down
2 changes: 1 addition & 1 deletion _includes/css/components.page-head--masthead.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions _includes/header--masthead.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
- Only needed on homepage.
-->
{% endcomment %}
<link rel=preload href=/img/css/masthead.4c100a13.jpg as=image media="(max-width: 44.9375em)" fetchpriority=high>
<link rel=preload href=/img/css/masthead-medium.e55920c9.jpg as=image media="(min-width: 45em) and (max-width: 63.9375em)" fetchpriority=high>
<link rel=preload href=/img/css/masthead-large.3cbc4956.jpg as=image media="(min-width: 64em)" fetchpriority=high>

<link rel=preload href=/img/css/masthead-small-lqip.jpg as=image media="(max-width: 44.9375em)" fetchpriority=high>
<!-- <link rel=preload href=/img/css/masthead-small.jpg as=image media="(max-width: 44.9375em)" fetchpriority=high> -->
<link rel=preload href=/img/css/masthead-medium-lqip.jpg as=image media="(min-width: 45em) and (max-width: 63.9375em)" fetchpriority=high>
<!-- <link rel=preload href=/img/css/masthead-medium.jpg as=image media="(min-width: 45em) and (max-width: 63.9375em)" fetchpriority=high> -->
<link rel=preload href=/img/css/masthead-large-lqip.jpg as=image media="(min-width: 64em)" fetchpriority=high>
<!-- <link rel=preload href=/img/css/masthead-large.jpg as=image media="(min-width: 64em)" fetchpriority=high> -->

{% include ribbon.html %}

Expand Down
6 changes: 3 additions & 3 deletions css/isolated/components.page-head--masthead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
margin-bottom: 0;
position: static;
background-color: #2e2620;
background-image: url(/img/css/masthead.4c100a13.jpg), var(--base64);
background-image: url(/img/css/masthead-small.jpg), url(/img/css/masthead-small-lqip.jpg), var(--base64);
background-position: center 25%;
@include vendor(background-size, cover);
color: $color-masthead; /* [1] */
Expand All @@ -46,11 +46,11 @@
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) inset;

@include media-query(lap-and-up) {
background-image: url(/img/css/masthead-medium.e55920c9.jpg), var(--base64);
background-image: url(/img/css/masthead-medium.jpg), url(/img/css/masthead-medium-lqip.jpg), var(--base64);
}

@include media-query(desk) {
background-image: url(/img/css/masthead-large.3cbc4956.jpg), var(--base64);
background-image: url(/img/css/masthead-large.jpg), url(/img/css/masthead-large-lqip.jpg), var(--base64);
}

> .wrapper { /* [2] */
Expand Down
Binary file added img/css/masthead-large-lqip.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/css/masthead-large.3cbc4956.jpg
Binary file not shown.
Binary file added img/css/masthead-large.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/css/masthead-medium-lqip.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/css/masthead-medium.e55920c9.jpg
Binary file not shown.
Binary file added img/css/masthead-medium.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/css/masthead-small-lqip.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/css/masthead-small.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/css/masthead.4c100a13.jpg
Binary file not shown.

0 comments on commit 0c8a2f6

Please sign in to comment.