use astro image for logo

This commit is contained in:
2024-08-25 00:09:43 +02:00
parent 6a17e16efd
commit 69341532b8
2 changed files with 9 additions and 4 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

+9 -4
View File
@@ -1,3 +1,12 @@
---
import { Image } from 'astro:assets';
import logoImage from '../assets/img/yht_logo.png';
---
<a href="/">
<Image src={logoImage} alt="Logo displaying a stylized character with brown hair wearing purple hoodie on a light blue circle background" width="50" height="50"/>
</a>
<style>
@media screen and (max-width: 520px) {
@@ -7,7 +16,3 @@
}
</style>
<a href="/">
<img alt="Logo displaying a stylized character with brown hair wearing purple hoodie on a light blue circle background" src="/assets/yht_logo.png" width="50px" height="50px" />
</a>