Compare commits

...

3 commits

Author SHA1 Message Date
ff45976e1f
feat: prepare alternative custom button for Amemoia for performance reasons in the future
All checks were successful
Deploy to Web Server / deploy (push) Successful in 2m25s
2025-06-01 21:26:18 +10:00
d47996b308
perf(FriendLink*): add AVIF format to buttons 2025-06-01 21:25:38 +10:00
e14e66bcf9
perf(index): change Amemoia's button to FriendLinkLow 2025-06-01 21:23:53 +10:00
6 changed files with 5 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View file

@ -3,7 +3,7 @@ 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="max" decoding="async" loading="lazy" formats={['webp']} /></a>
<a href={`${target}`} target="_blank"><Picture src={image} width={88} height={31} alt={`${name}`} class="flex" quality="max" decoding="async" loading="lazy" formats={['avif', 'webp']} /></a>
<style>
img {
image-rendering: pixelated;

View file

@ -3,7 +3,7 @@ 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="high" decoding="async" loading="lazy" formats={['webp']} /></a>
<a href={`${target}`} target="_blank"><Picture src={image} width={88} height={31} alt={`${name}`} class="flex" quality="high" decoding="async" loading="lazy" formats={['avif', 'webp']} /></a>
<style>
img {
image-rendering: pixelated;

View file

@ -3,7 +3,7 @@ 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>
<a href={`${target}`} target="_blank"><Picture src={image} width={88} height={31} alt={`${name}`} class="flex" quality="low" decoding="async" loading="lazy" formats={['avif', 'webp']} /></a>
<style>
img {
image-rendering: pixelated;

View file

@ -3,7 +3,7 @@ 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>
<a href={`${target}`} target="_blank"><Picture src={image} width={88} height={31} alt={`${name}`} class="flex" quality="mid" decoding="async" loading="lazy" formats={['avif', 'webp']} /></a>
<style>
img {
image-rendering: pixelated;

View file

@ -73,7 +73,7 @@ const age = seconds / 31556952;
target="https://ata.moe"
/>
</div>
<FriendLink
<FriendLinkLow
name="Amemoia"
image="https://buh.moe/resources/buttons/88x31.gif"
target="https://buh.moe/"