Skip to content

Commit 3775331

Browse files
committed
change the class
1 parent bdbe1bb commit 3775331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Hero.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ const { imagePath, altText } = Astro.props;
1111
const images = import.meta.glob<{ default: ImageMetadata }>('/src/assets/illustration/heros/*.{jpeg,jpg,png,gif}');
1212
if (!images[imagePath]) throw new Error(`"${imagePath}" does not exist in glob: "src/assets/illustration/heros/*.{jpeg,jpg,png,gif}"`);
1313
---
14-
<div class="card">
14+
<div class="hero">
1515
<Image src={images[imagePath]()} alt={altText} id="hero-image" />
1616
</div>

0 commit comments

Comments
 (0)