mirror of
https://ark.sudovanilla.org/Korbs/Pandora.git
synced 2024-12-23 03:23:52 +00:00
Don't use Astro Image component, it's trash
This commit is contained in:
parent
ab66e178c8
commit
f45d36106b
|
@ -1,7 +1,4 @@
|
||||||
---
|
---
|
||||||
// Astro's Image Component
|
|
||||||
import { Image } from 'astro:assets'
|
|
||||||
|
|
||||||
// Properties
|
// Properties
|
||||||
const {
|
const {
|
||||||
Source,
|
Source,
|
||||||
|
@ -12,14 +9,10 @@ const {
|
||||||
} = Astro.props
|
} = Astro.props
|
||||||
---
|
---
|
||||||
|
|
||||||
<Image
|
<img
|
||||||
src={Source}
|
src={Source}
|
||||||
alt={Alt}
|
alt={Alt}
|
||||||
fit={Fit}
|
|
||||||
format={Format}
|
|
||||||
quality={Quality}
|
|
||||||
onload="this.style.transition = '1s opacity, 1s box-shadow'; this.style.opacity = '1'"
|
onload="this.style.transition = '1s opacity, 1s box-shadow'; this.style.opacity = '1'"
|
||||||
inferSize
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<style>img {opacity: 0}</style>
|
<style>img {opacity: 0}</style>
|
Loading…
Reference in a new issue