Create hero and text with image components
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user