Initial commit

This commit is contained in:
Patrick Alvin Alcala 2026-02-11 18:33:42 +08:00
commit 7628b18255
94 changed files with 6386 additions and 0 deletions

View file

@ -0,0 +1,17 @@
interface Props {
avif: string
webp: string
size?: number
alt?: string
radius?: number
}
export default (props: Props) => {
return (
<picture>
<source srcset={props.avif} type="image/avif" />
<source srcset={props.webp} type="image/webp" />
<img style={`border-radius: ${props.radius}rem`} width={props.size} height="auto" decoding="async" loading="lazy" alt={props.alt} />
</picture>
)
}