feat: redo how images, icons, and logos are handled
This commit is contained in:
18
src/components/images/BrandLogo.astro
Normal file
18
src/components/images/BrandLogo.astro
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
import { Image } from 'astro:assets';
|
||||
import { readSingleton } from '@directus/sdk';
|
||||
|
||||
import logo from '@images/brand_logo.png';
|
||||
import directus from '@lib/directus';
|
||||
|
||||
const global = await directus.request(readSingleton('site_global'));
|
||||
---
|
||||
|
||||
<Image
|
||||
src={logo}
|
||||
alt={global.name}
|
||||
draggable="false"
|
||||
loading="eager"
|
||||
inferSize={true}
|
||||
{...Astro.props}
|
||||
/>
|
||||
Reference in New Issue
Block a user