Skip to content

Commit

Permalink
Optimise images and fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Dec 2, 2024
1 parent 7aaa758 commit d433fed
Show file tree
Hide file tree
Showing 16 changed files with 6 additions and 6 deletions.
Binary file modified public/authors/argyle.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/authors/bramus.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/authors/rachel.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/authors/una.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/biomes/arctic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/biomes/cyberspace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/biomes/desert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/biomes/jungle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/fight.woff2
Binary file not shown.
Binary file modified public/images/ruby-align.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/ruby_after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/ruby_before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/nav.aside.astro
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,15 @@ const { biomes } = Astro.props;
container-type: size;
position: relative;
width: 10px;
background-image: url(/track-grunge.svg);
background-image: url(/track-grunge.png);
background-repeat: repeat-y;
border-right: 10px solid transparent;
border-image: linear-gradient(to right, #0000 9px 0, var(--text-1) 0);
border-image-slice: 11 fill;

&::before,
&::after {
content: url(/cactus.svg);
content: url(/cactus.png);
width: 15px;
height: 5px;
rotate: 90deg;
Expand Down
4 changes: 2 additions & 2 deletions src/components/nav.bento.astro
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ const counts = {
}

&.desert a::after {
background-image: url(/biomes/desert.svg);
background-image: url(/biomes/desert.png);
}

&.arctic a::after {
background-image: url(/biomes/arctic.svg);
background-image: url(/biomes/arctic.png);
}

&.jungle a::after {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const timelines = biomes.reduce(
<title>CSS Wrapped 2024</title>
<link
rel="preload"
href="./fight.otf"
href="./fight.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
Expand Down
2 changes: 1 addition & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@font-face {
font-family: 'Fight';
src: url(/fight.otf);
src: url(/fight.woff2);
font-weight: normal;
font-style: normal;
font-display: swap;
Expand Down

0 comments on commit d433fed

Please sign in to comment.