Initial commit

This commit is contained in:
Patrick Alvin Alcala 2026-02-10 19:45:22 +08:00
commit eb8731d039
90 changed files with 6380 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>
)
}