Add blazy
@ -33,20 +33,17 @@
|
|||||||
.expo
|
.expo
|
||||||
padding-bottom: 3rem
|
padding-bottom: 3rem
|
||||||
padding-top: 3rem
|
padding-top: 3rem
|
||||||
.website
|
|
||||||
margin-top: 3rem
|
|
||||||
&:nth-child(1),
|
|
||||||
&:nth-child(2)
|
|
||||||
margin-top: 0
|
|
||||||
.website-image
|
|
||||||
margin-bottom: 3rem
|
|
||||||
|
|
||||||
+widescreen
|
|
||||||
.websites
|
.websites
|
||||||
display: flex
|
display: flex
|
||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
justify-content: space-between
|
justify-content: space-between
|
||||||
.website
|
.website
|
||||||
|
margin-top: 3rem
|
||||||
width: calc(50% - 3rem)
|
width: calc(50% - 3rem)
|
||||||
|
&:nth-child(1),
|
||||||
|
&:nth-child(2)
|
||||||
|
margin-top: 0
|
||||||
&.is-highlighted
|
&.is-highlighted
|
||||||
width: 100%
|
width: 100%
|
||||||
|
.website-image
|
||||||
|
margin-bottom: 3rem
|
||||||
|
@ -100,13 +100,33 @@ websites:
|
|||||||
|
|
||||||
<div class="websites">
|
<div class="websites">
|
||||||
{% for website in page.websites %}
|
{% for website in page.websites %}
|
||||||
|
{% assign imageName = website.name | slugify %}
|
||||||
|
{% assign imagePath = "/images/expo/" | prepend: site.url | append: imageName %}
|
||||||
<article class="website {% if website.highlighted %}is-highlighted{% endif %}">
|
<article class="website {% if website.highlighted %}is-highlighted{% endif %}">
|
||||||
<a class="website-image" href="{{ website.url }}" target="_blank">
|
<a class="website-image" href="{{ website.url }}" target="_blank">
|
||||||
<img
|
{% if website.highlighted %}
|
||||||
src="{{ site.url }}/images/expo/{{ website.name | slugify }}.jpg"
|
{% assign size1x = "1344x840" %}
|
||||||
srcset="{{ site.url }}/images/expo/{{ website.name | slugify }}@2x.jpg 2x"
|
{% assign size2x = "2688x1680" %}
|
||||||
width="1344"
|
<img
|
||||||
height="840">
|
class="b-lazy"
|
||||||
|
src="{{ site.url }}/images/placeholders/empty.png"
|
||||||
|
data-src="{{ imagePath }}-{{ size1x }}.jpg"
|
||||||
|
data-srcset="{{ imagePath }}-{{ size2x }}.jpg 2x,
|
||||||
|
{{ imagePath }}-{{ size1x }}.jpg 1x"
|
||||||
|
width="1344"
|
||||||
|
height="840">
|
||||||
|
{% else %}
|
||||||
|
{% assign size1x = "672x420" %}
|
||||||
|
{% assign size2x = "1344x840" %}
|
||||||
|
<img
|
||||||
|
class="b-lazy"
|
||||||
|
src="{{ site.url }}/images/placeholders/empty.png"
|
||||||
|
data-src="{{ imagePath }}-{{ size1x }}.jpg"
|
||||||
|
data-srcset="{{ imagePath }}-{{ size2x }}.jpg 2x,
|
||||||
|
{{ imagePath }}-{{ size1x }}.jpg 1x"
|
||||||
|
width="672"
|
||||||
|
height="420">
|
||||||
|
{% endif %}
|
||||||
<span class="website-overlay is-overlay"></span>
|
<span class="website-overlay is-overlay"></span>
|
||||||
</a>
|
</a>
|
||||||
<h2 class="title is-5 website-name is-marginless">
|
<h2 class="title is-5 website-name is-marginless">
|
||||||
@ -121,4 +141,11 @@ websites:
|
|||||||
|
|
||||||
{{ embrace_expo }}
|
{{ embrace_expo }}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<script src="{{ site.url }}/vendor/blazy-1.8.2.min.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
;(function() {
|
||||||
|
var bLazy = new Blazy();
|
||||||
|
})();
|
||||||
|
</script>
|
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 188 KiB |
Before Width: | Height: | Size: 167 KiB |
Before Width: | Height: | Size: 400 KiB |
Before Width: | Height: | Size: 188 KiB |
Before Width: | Height: | Size: 477 KiB |
Before Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 398 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 252 KiB |
Before Width: | Height: | Size: 630 KiB |
Before Width: | Height: | Size: 152 KiB |
Before Width: | Height: | Size: 352 KiB |
Before Width: | Height: | Size: 105 KiB |
Before Width: | Height: | Size: 263 KiB |
Before Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 212 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 163 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 151 KiB |
Before Width: | Height: | Size: 215 KiB |
Before Width: | Height: | Size: 588 KiB |