This commit is contained in:
Patrick Alvin Alcala 2026-01-30 14:45:20 +08:00
parent 8e724b166a
commit b5e92165c8
33 changed files with 82 additions and 223 deletions

View file

@ -8,12 +8,10 @@ interface Props {
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>
</>
<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>
)
}