Compare commits

...

4 commits

9 changed files with 17 additions and 3 deletions

View file

@ -7,7 +7,7 @@
} }
.biglinks > a, .biglinks > a,
.biglinks > img { .biglinks > picture {
max-width: calc(100% - 24px); max-width: calc(100% - 24px);
} }
@ -22,8 +22,13 @@
display: block; display: block;
} }
.biglinks > img { .biglinks > picture {
display: inline-block;
height: 156px; height: 156px;
margin: 12px; margin: 12px;
}
.biglinks > picture > img {
height: 100%;
width: 100%;
object-fit: cover; object-fit: cover;
} }

BIN
src/static/pic/pic.jxl Normal file

Binary file not shown.

BIN
src/static/pic/pic.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

BIN
src/static/pic/picx2.jxl Normal file

Binary file not shown.

BIN
src/static/pic/picx2.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
src/static/pic/picx4.jxl Normal file

Binary file not shown.

BIN
src/static/pic/picx4.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

View file

@ -27,7 +27,16 @@
<img class="svg" src="/static/picto/summit.svg" alt="" /> <img class="svg" src="/static/picto/summit.svg" alt="" />
Komoot Komoot
</a> </a>
<img src="/static/pic/pic1.webp" alt="Paysage" /> <picture>
<source type="image/jxl"
srcset="/static/pic/pic.jxl,
/static/pic/picx2.jxl 2x,
/static/pic/picx4.jxl 4x" />
<img alt=""
src="/static/pic/pic.webp"
srcset="/static/pic/picx2.webp 2x,
/static/pic/picx4.webp 4x" />
</picture>
</div> </div>
<nav> <nav>
<a href="#"> <a href="#">