mirror of
https://git.moonleay.net/Websites/liljudd-website.git
synced 2025-07-26 11:22:04 +02:00
Migrate Components
This commit is contained in:
parent
c51593dbc4
commit
036a2d1e4a
7 changed files with 302 additions and 352 deletions
17
src/components/ImageSection.astro
Normal file
17
src/components/ImageSection.astro
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue