Changed from astro to pure solidjs

This commit is contained in:
Patrick Alvin Alcala 2025-09-23 18:38:13 +08:00
parent 3203e91c5a
commit e85dc60101
76 changed files with 2281 additions and 3843 deletions

View file

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