File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
interface Props {}
3
3
4
4
import { getLangFromUrl , useTranslations } from ' ../i18n/utils' ;
5
+ import { Image } from ' astro:assets' ;
6
+ import aux from ' ../../public/aux.svg' ;
5
7
6
8
const lang = getLangFromUrl (Astro .url );
7
9
const translation = useTranslations (lang );
@@ -10,7 +12,7 @@ const translation = useTranslations(lang);
10
12
<header >
11
13
<div class =" left" >
12
14
<a href =" https://aux.computer" class =" brand" >
13
- <img class =" icon" src =" / aux.svg " />
15
+ <Image class =" icon" src ={ aux } alt = " aux.computer logo " />
14
16
<span class =" title" >aux.computer</span >
15
17
</a >
16
18
</div >
Original file line number Diff line number Diff line change 1
1
---
2
2
import { getLangFromUrl , useTranslations } from ' ../i18n/utils' ;
3
+ import { Image } from ' astro:assets' ;
4
+ import aux from ' ../../public/aux.svg' ;
3
5
4
6
const lang = getLangFromUrl (Astro .url );
5
7
const translation = useTranslations (lang );
@@ -8,7 +10,7 @@ const translation = useTranslations(lang);
8
10
<div class =" hero" >
9
11
<div class =" content" >
10
12
<div class =" icon" >
11
- <img src =" / aux.svg " alt =" " />
13
+ <Image src ={ aux } alt =" aux.computer logo " />
12
14
</div >
13
15
<h1 class =" title" >aux.computer</h1 >
14
16
<div class =" description" >{ translation (" root.description" )} </div >
You can’t perform that action at this time.
0 commit comments