We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdbe1bb commit 3775331Copy full SHA for 3775331
src/components/Hero.astro
@@ -11,6 +11,6 @@ const { imagePath, altText } = Astro.props;
11
const images = import.meta.glob<{ default: ImageMetadata }>('/src/assets/illustration/heros/*.{jpeg,jpg,png,gif}');
12
if (!images[imagePath]) throw new Error(`"${imagePath}" does not exist in glob: "src/assets/illustration/heros/*.{jpeg,jpg,png,gif}"`);
13
---
14
-<div class="card">
+<div class="hero">
15
<Image src={images[imagePath]()} alt={altText} id="hero-image" />
16
</div>
0 commit comments