Added fwt components

This commit is contained in:
Patrick Alvin Alcala 2025-09-04 12:05:03 +08:00
parent b7409d1c13
commit b2cbd947c5
30 changed files with 852 additions and 0 deletions

View file

@ -0,0 +1,19 @@
import webpPath from '../../images/logo.webp'
import avifPath from '../../images/logo.avif'
interface Props {
size?: number
alt?: string
}
export default (props: Props) => {
return (
<>
<picture>
<source srcset={avifPath.src} type="image/avif" />
<source srcset={webpPath.src} type="image/webp" />
<img width={props.size} height="auto" decoding="async" loading="lazy" alt="logo" />
</picture>
</>
)
}