Move friend buttons to front page&re-encode images

Thanks specifically to @LeNooby09 for borking your website and making my
website have a borked image >:3
This commit is contained in:
BuyMyMojo 2025-04-04 22:53:37 +11:00
parent 5a72c0519e
commit 5153e2deef
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
5 changed files with 189 additions and 132 deletions

View file

@ -1,9 +1,9 @@
---
import { Image } from "astro:assets";
import { Image, Picture } from "astro:assets";
const { name, image, target } = Astro.props;
---
<a href={`${target}`} target="_blank"><Image src={image} width={88} height={31} alt={`${name}`} class="flex" /></a>
<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>
<style>
img {
image-rendering: pixelated;

View file

@ -44,7 +44,7 @@ const optimizedBackgroundLQ = await getImage({
| <a href="/" class="nav-btn">Home</a> |
<a href="/blog" class="nav-btn">Blog</a> |
<a href="/about" class="nav-btn">About</a> |
<a href="/friends" class="nav-btn">Friends</a> |
<!-- <a href="/friends" class="nav-btn">Friends</a> | -->
<a href="/directory" class="nav-btn">Other Pages</a> |
<a href="/portfolio" class="nav-btn">Portfolio</a> |
</p>