Skip to content

Commit 5d83363

Browse files
committed
more optimization
1 parent 69ea491 commit 5d83363

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/views/index/index.hbs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,11 @@
221221
<div class="col-sm-6 aspect-ratio-3by2">
222222
<div class="card border-0 rounded-4 h-100 bg-dark-subtle overflow-hidden">
223223
<picture>
224-
<source srcset="/img/photos/amblight-setup.jpg?as=avif" type="image/avif">
225-
<source srcset="/img/photos/amblight-setup.jpg?as=webp" type="image/webp">
226-
<img class="card-img object-fit-cover" src="/img/photos/amblight-setup.jpg" alt="Amblight setup"/>
224+
<source srcset="/img/photos/amblight-setup.jpg?as=avif&width=640&height=auto,
225+
/img/photos/amblight-setup.jpg?as=avif&width=1280&height=auto 2x" type="image/avif">
226+
<source srcset="/img/photos/amblight-setup.jpg?as=webp&width=640&height=auto,
227+
/img/photos/amblight-setup.jpg?as=webp&width=1280&height=auto 2x" type="image/webp">
228+
<img class="card-img object-fit-cover" src="/img/photos/amblight-setup.jpg?width=640" alt="Amblight setup"/>
227229
</picture>
228230
<div class="card-img-overlay p-4">
229231
<h3 class="card-title">Ambient light</h3>

0 commit comments

Comments
 (0)