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:
parent
5a72c0519e
commit
5153e2deef
5 changed files with 189 additions and 132 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue