From 48d0a60d1e101c6d604f036f6971fb0b804bf45b Mon Sep 17 00:00:00 2001 From: marshmallow Date: Sat, 4 May 2024 16:49:46 +1000 Subject: [PATCH] fix: use astro:assets Image --- src/components/Header.astro | 4 +++- src/components/Hero.astro | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index dcf350f..25e343e 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -2,6 +2,8 @@ interface Props {} import { getLangFromUrl, useTranslations } from '../i18n/utils'; +import { Image } from 'astro:assets'; +import aux from '../../public/aux.svg'; const lang = getLangFromUrl(Astro.url); const translation = useTranslations(lang); @@ -10,7 +12,7 @@ const translation = useTranslations(lang);
diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 6acc0f0..3f512dd 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -1,5 +1,7 @@ --- import { getLangFromUrl, useTranslations } from '../i18n/utils'; +import { Image } from 'astro:assets'; +import aux from '../../public/aux.svg'; const lang = getLangFromUrl(Astro.url); const translation = useTranslations(lang); @@ -8,7 +10,7 @@ const translation = useTranslations(lang);
- + aux.computer logo

aux.computer

{translation("root.description")}