Skip to content

Commit 24afb59

Browse files
committed
Add AVIF 1x and 2x images.
1 parent c65344d commit 24afb59

8 files changed

+8
-1
lines changed

webserver/src/img/corian-1x.avif

19.3 KB
Binary file not shown.

webserver/src/img/corian-2x.avif

57.7 KB
Binary file not shown.

webserver/src/img/corian-q75.webp

-60.5 KB
Binary file not shown.

webserver/src/img/corian.webp

62.2 KB
Binary file not shown.

webserver/src/img/header-1x.avif

82.4 KB
Binary file not shown.

webserver/src/img/header-2x.avif

246 KB
Binary file not shown.

webserver/src/img/header.webp

155 KB
Binary file not shown.

webserver/src/style/main.css

+8-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ body {
2727

2828
header {
2929
background-image: url(/src/img/header.webp);
30+
background-image: image-set(url(/src/img/header-2x.avif) 2x type("image/avif"),
31+
url(/src/img/header-1x.avif) 1x type("image/avif"),
32+
url(/src/img/header.webp) type("image/webp"));
33+
3034
background-size: 460px auto;
3135
background-position: top;
3236
height: 100px;
@@ -316,7 +320,10 @@ details>summary::marker {
316320
@media only screen and (min-width: 900px) {
317321

318322
body {
319-
background-image: url(/src/img/corian-q75.webp);
323+
background-image: url(/src/img/corian.webp);
324+
background-image: image-set(url(/src/img/corian-2x.avif) 2x type("image/avif"),
325+
url(/src/img/corian-1x.avif) 1x type("image/avif"),
326+
url(/src/img/corian.webp) type("image/webp"));
320327
background-size: 500px;
321328
/*background: linear-gradient(white, #388220);*/
322329
background-attachment: fixed;

0 commit comments

Comments
 (0)