Skip to content

Commit

Permalink
Convert postcard image to webp
Browse files Browse the repository at this point in the history
  • Loading branch information
toddkummer committed Nov 1, 2024
1 parent 400700c commit 0a8156d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ $orange: #ee9a00;
@use "syntax-highlighting";

body.postcard {
background-image: url("/images/bay-bridge-from-bart-postcard.jpg");
background-image: -webkit-image-set(
url("/images/bay-bridge-from-bart-postcard.webp"),
url("/images/bay-bridge-from-bart-postcard.jpg"));
background-image: image-set(
url("/images/bay-bridge-from-bart-postcard.webp") type("image/webp"),
url("/images/bay-bridge-from-bart-postcard.jpg") type("image/jpeg"));

background-repeat: no-repeat;
background-position: top -30px center; // show a bit more of the tops of the buildings
}
Expand Down
Binary file added src/images/bay-bridge-from-bart-postcard.webp
Binary file not shown.

0 comments on commit 0a8156d

Please sign in to comment.