Skip to content

Commit

Permalink
fix: riesiges container
Browse files Browse the repository at this point in the history
  • Loading branch information
schettn committed Mar 26, 2024
1 parent 665404b commit 834c82f
Showing 1 changed file with 39 additions and 37 deletions.
76 changes: 39 additions & 37 deletions src/components/templates/HomeTemplate/Riesges/Riesges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,46 @@ const Riesges: FC<IRiesgesProps> = () => {

return (
<Box bg="white">
<Container
as={Stack}
maxW={CONTAINER_MAX_WIDTH}
spacing="36"
px={{base: 0, sm: 4, md: 8}}>
<Flex
w="full"
justifyContent="center"
alignContent="center"
gap="8"
flexDir={{base: 'column', xl: 'row'}}>
{contentPagesIndex.children.map((page, i) => {
return contentPagesIndex.withJaenPage(
page.id,
<Box
boxSize="500px"
mx={{
base: 'auto',
xl: '0'
}}>
<CardWithImageBackground
key={page.id}
card={{
headingFieldName: `homeHeroHeading`,
headingDefaultValue: 'Title',
textFieldName: `homeHeroText`,
textDefaultValue: 'Text',
imageFieldName: `homeHeroImage`,
imageDefaultValue: undefined,
linkUrl: `/${page.slug}`
<Container maxW={CONTAINER_MAX_WIDTH}>
<Stack spacing="36" px={{base: 0, sm: 4, md: 8}}>
<Flex
w="full"
justifyContent="center"
alignContent="center"
gap="8"
flexDir={{base: 'column', xl: 'row'}}>
{contentPagesIndex.children.map((page, i) => {
return contentPagesIndex.withJaenPage(
page.id,
<Box
boxSize={{
base: 'xs',
sm: 'sm',
md: 'md'
}}
/>
</Box>
)
})}
</Flex>
{/* <RiesgesTopSection /> */}
<RiesgesBottomSection />
mx={{
base: 'auto',
xl: '0'
}}>
<CardWithImageBackground
key={page.id}
card={{
headingFieldName: `homeHeroHeading`,
headingDefaultValue: 'Title',
textFieldName: `homeHeroText`,
textDefaultValue: 'Text',
imageFieldName: `homeHeroImage`,
imageDefaultValue: undefined,
linkUrl: `/${page.slug}`
}}
/>
</Box>
)
})}
</Flex>
{/* <RiesgesTopSection /> */}
<RiesgesBottomSection />
</Stack>
</Container>
</Box>
)
Expand Down

0 comments on commit 834c82f

Please sign in to comment.