refactor(FriendLink.astro): Move from <img /> to <Image /> for buttons
This commit is contained in:
parent
f7488934f2
commit
db8256b81d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue