perf(FriendLink*): add AVIF format to buttons
This commit is contained in:
parent
e14e66bcf9
commit
d47996b308
4 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ 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="max" decoding="async" loading="lazy" formats={['webp']} /></a>
|
||||
<a href={`${target}`} target="_blank"><Picture src={image} width={88} height={31} alt={`${name}`} class="flex" quality="max" decoding="async" loading="lazy" formats={['avif', 'webp']} /></a>
|
||||
<style>
|
||||
img {
|
||||
image-rendering: pixelated;
|
||||
|
|
|
@ -3,7 +3,7 @@ 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="high" decoding="async" loading="lazy" formats={['webp']} /></a>
|
||||
<a href={`${target}`} target="_blank"><Picture src={image} width={88} height={31} alt={`${name}`} class="flex" quality="high" decoding="async" loading="lazy" formats={['avif', 'webp']} /></a>
|
||||
<style>
|
||||
img {
|
||||
image-rendering: pixelated;
|
||||
|
|
|
@ -3,7 +3,7 @@ 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>
|
||||
<a href={`${target}`} target="_blank"><Picture src={image} width={88} height={31} alt={`${name}`} class="flex" quality="low" decoding="async" loading="lazy" formats={['avif', 'webp']} /></a>
|
||||
<style>
|
||||
img {
|
||||
image-rendering: pixelated;
|
||||
|
|
|
@ -3,7 +3,7 @@ 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>
|
||||
<a href={`${target}`} target="_blank"><Picture src={image} width={88} height={31} alt={`${name}`} class="flex" quality="mid" decoding="async" loading="lazy" formats={['avif', 'webp']} /></a>
|
||||
<style>
|
||||
img {
|
||||
image-rendering: pixelated;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue