mirror of
https://git.aria.coffee/BuyMyAria/aria.coffee.git
synced 2025-07-28 15:09:56 +00:00
fix: attempted image fix
This commit is contained in:
parent
39540fcde5
commit
305b7d4272
7 changed files with 32 additions and 20 deletions
|
@ -3,14 +3,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={['avif', 'webp']} /></a>
|
||||
<a href={`${target}`} target="_blank"><Picture src={image} width=176 height=62 alt={`${name}`} class="flex" quality="mid" decoding="async" loading="lazy" formats={['avif', 'webp']} /></a>
|
||||
<style>
|
||||
img {
|
||||
image-rendering: pixelated;
|
||||
min-width: 88px;
|
||||
min-width: 176px;
|
||||
width: 176px;
|
||||
min-height: 31px;
|
||||
max-width: 176px;
|
||||
min-height: 62px;
|
||||
height: 62px;
|
||||
max-height: 62px;
|
||||
padding: 4px;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue