Updated
This commit is contained in:
parent
8197905483
commit
efc045bebd
48 changed files with 779 additions and 1140 deletions
16
@dasig/components/Logo.astro
Normal file
16
@dasig/components/Logo.astro
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
import webpPath from '../images/logo.webp'
|
||||
import avifPath from '../images/logo.avif'
|
||||
|
||||
interface Props {
|
||||
size?: number
|
||||
}
|
||||
|
||||
const { size } = Astro.props
|
||||
---
|
||||
|
||||
<picture>
|
||||
<source srcset={avifPath.src} type="image/avif" />
|
||||
<source srcset={webpPath.src} type="image/webp" />
|
||||
<img width={size} height="auto" decoding="async" loading="lazy" alt="logo" />
|
||||
</picture>
|
||||
Loading…
Add table
Add a link
Reference in a new issue