Skip to content

Commit

Permalink
Add AVIF 1x and 2x images.
Browse files Browse the repository at this point in the history
  • Loading branch information
jyasskin committed Dec 29, 2023
1 parent c65344d commit 24afb59
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1 deletion.
Binary file added webserver/src/img/corian-1x.avif
Binary file not shown.
Binary file added webserver/src/img/corian-2x.avif
Binary file not shown.
Binary file removed webserver/src/img/corian-q75.webp
Binary file not shown.
Binary file added webserver/src/img/corian.webp
Binary file not shown.
Binary file added webserver/src/img/header-1x.avif
Binary file not shown.
Binary file added webserver/src/img/header-2x.avif
Binary file not shown.
Binary file modified webserver/src/img/header.webp
Binary file not shown.
9 changes: 8 additions & 1 deletion webserver/src/style/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ body {

header {
background-image: url(/src/img/header.webp);
background-image: image-set(url(/src/img/header-2x.avif) 2x type("image/avif"),
url(/src/img/header-1x.avif) 1x type("image/avif"),
url(/src/img/header.webp) type("image/webp"));

background-size: 460px auto;
background-position: top;
height: 100px;
Expand Down Expand Up @@ -316,7 +320,10 @@ details>summary::marker {
@media only screen and (min-width: 900px) {

body {
background-image: url(/src/img/corian-q75.webp);
background-image: url(/src/img/corian.webp);
background-image: image-set(url(/src/img/corian-2x.avif) 2x type("image/avif"),
url(/src/img/corian-1x.avif) 1x type("image/avif"),
url(/src/img/corian.webp) type("image/webp"));
background-size: 500px;
/*background: linear-gradient(white, #388220);*/
background-attachment: fixed;
Expand Down

0 comments on commit 24afb59

Please sign in to comment.