feat(<FriendLink>): add two lower quality version of FriendLink
This commit is contained in:
parent
fc4d13ed3c
commit
bf50b23910
2 changed files with 32 additions and 0 deletions
16
src/components/FriendLinkLow.astro
Normal file
16
src/components/FriendLinkLow.astro
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
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>
|
||||
<style>
|
||||
img {
|
||||
image-rendering: pixelated;
|
||||
min-width: 88px;
|
||||
width: 176px;
|
||||
min-height: 31px;
|
||||
height: 62px;
|
||||
padding: 4px;
|
||||
}
|
||||
</style>
|
16
src/components/FriendLinkMid.astro
Normal file
16
src/components/FriendLinkMid.astro
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
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>
|
||||
<style>
|
||||
img {
|
||||
image-rendering: pixelated;
|
||||
min-width: 88px;
|
||||
width: 176px;
|
||||
min-height: 31px;
|
||||
height: 62px;
|
||||
padding: 4px;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue