Migrate Components

This commit is contained in:
aronmal 2023-11-09 14:43:14 +01:00
parent c51593dbc4
commit 036a2d1e4a
Signed by: aronmal
GPG key ID: 816B7707426FC612
7 changed files with 302 additions and 352 deletions

View file

@ -0,0 +1,17 @@
---
interface SectionProps {
imgUrl: string;
imgAlt: string;
title: string;
description: string;
note: string;
}
const { imgUrl, imgAlt, title, description, note } = Astro.props;
---
<section>
<h1>{title}</h1>
<img src={imgUrl} alt={imgAlt} />
<p>{description}</p>
<p>{note}</p>
</section>