Create hero and text with image components

This commit is contained in:
itsfinniii
2026-03-20 20:48:53 +01:00
parent 50dc6ec4c0
commit a5efc7415b
7 changed files with 42 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
---
import Hero from '../web/Hero.astro';
import TextWithImage from '../web/TextWithImage.astro';
interface Props {
webpage: WebpageComponent[];
@@ -14,6 +15,7 @@ console.log(Astro.props.webpage);
{ components.map((component) => (
<Fragment>
{ component.component === "Hero" && <Hero hero={component} /> }
{ component.component === "TextWithImage" && <TextWithImage textWithImage={component} /> }
</Fragment>
)) }
</div>