handle images better

This commit is contained in:
2024-08-25 00:32:12 +02:00
parent 056d06a1e3
commit a965cda85f
3 changed files with 21 additions and 3 deletions
+3 -1
View File
@@ -1,10 +1,12 @@
---
import { Image } from 'astro:assets';
import logoImage from '../assets/img/yht_logo.png';
const { width, height } = Astro.props;
---
<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"/>
<Image src={logoImage} alt="Logo displaying a stylized character with brown hair wearing purple hoodie on a light blue circle background" width={width} height={height}/>
</a>
<style>