refactor(FriendLink.astro): Move from <img /> to <Image /> for buttons

This commit is contained in:
BuyMyMojo 2024-12-20 13:19:20 +11:00
parent f7488934f2
commit db8256b81d

View file

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