Merge branch 'testing-jxl'

This commit is contained in:
Edgar P. Burkhart 2022-01-01 14:08:30 +01:00
commit d764d3373d
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
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="#">