Compare commits

...

3 commits

Author SHA1 Message Date
de43493c31
perf(index): move 0x5066's button to FriendLinkMid for further file size improvements
All checks were successful
Deploy to Web Server / deploy (push) Successful in 2m29s
2025-05-27 19:49:39 +10:00
bf50b23910
feat(<FriendLink>): add two lower quality version of FriendLink 2025-05-27 19:48:27 +10:00
fc4d13ed3c
perf(index): Swap 0x5066's button to v2 for smaller file size 2025-05-27 19:44:31 +10:00
3 changed files with 35 additions and 2 deletions

View file

@ -0,0 +1,16 @@
---
import { Image, Picture } from "astro:assets";
const { name, image, target } = Astro.props;
---
<a href={`${target}`} target="_blank"><Picture src={image} width={88} height={31} alt={`${name}`} class="flex" quality="low" decoding="async" loading="lazy" formats={['webp']} /></a>
<style>
img {
image-rendering: pixelated;
min-width: 88px;
width: 176px;
min-height: 31px;
height: 62px;
padding: 4px;
}
</style>

View file

@ -0,0 +1,16 @@
---
import { Image, Picture } from "astro:assets";
const { name, image, target } = Astro.props;
---
<a href={`${target}`} target="_blank"><Picture src={image} width={88} height={31} alt={`${name}`} class="flex" quality="mid" decoding="async" loading="lazy" formats={['webp']} /></a>
<style>
img {
image-rendering: pixelated;
min-width: 88px;
width: 176px;
min-height: 31px;
height: 62px;
padding: 4px;
}
</style>

View file

@ -5,6 +5,7 @@ import Greeting from "../components/Greeting";
import Social from "../components/Social.astro";
import BaseLayout from "../layouts/BaseLayout.astro";
import FriendLink from "../components/FriendLink.astro";
import FriendLinkMid from "../components/FriendLinkMid.astro";
const pageTitle = "Aria";
const currentDate = new Date();
@ -91,9 +92,9 @@ const age = seconds / 31556952;
image="https://notnite.com/buttons/notnite.png"
target="https://notnite.com/"
/>
<FriendLink
<FriendLinkMid
name="0x5066"
image="https://erisdump.neocities.org/buttons/88x31_1.gif"
image="https://erisdump.neocities.org/buttons/88x31_2.gif"
target="https://erisdump.neocities.org"
/>
<FriendLink