mirror of
https://ark.sudovanilla.org/Korbs/Pandora.git
synced 2024-12-23 11:33:52 +00:00
Compare commits
No commits in common. "b83ca2298c0ed7a1a69b05ca4667e8f42d75010d" and "ab66e178c861a136c3be30499f7d673c3a985597" have entirely different histories.
b83ca2298c
...
ab66e178c8
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@sudovanilla/pandora",
|
"name": "@sudovanilla/pandora",
|
||||||
"version": "1.7.21",
|
"version": "1.7.2",
|
||||||
"author": "SudoVanilla",
|
"author": "SudoVanilla",
|
||||||
"displayName": "Pandora",
|
"displayName": "Pandora",
|
||||||
"description": "Astro component library built for SudoVanilla related websites and projects.",
|
"description": "Astro component library built for SudoVanilla related websites and projects.",
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
---
|
---
|
||||||
|
// Astro's Image Component
|
||||||
|
import { Image } from 'astro:assets'
|
||||||
|
|
||||||
// Properties
|
// Properties
|
||||||
const {
|
const {
|
||||||
Source,
|
Source,
|
||||||
|
@ -9,10 +12,14 @@ const {
|
||||||
} = Astro.props
|
} = Astro.props
|
||||||
---
|
---
|
||||||
|
|
||||||
<img
|
<Image
|
||||||
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