Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
the-kwisatz-haderach committed Jan 5, 2024
1 parent 9758d68 commit 58d9e1a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 26 deletions.
2 changes: 1 addition & 1 deletion components/MainNavigation/MainNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function MainNavigation({
pos="relative"
top="2px"
h="100%"
spacing={10}
spacing={{ base: 6, lg: 10 }}
display={{ base: 'none', md: 'flex' }}
>
{links.map((menuItem) => (
Expand Down
53 changes: 28 additions & 25 deletions components/StoryBlok/PageHeaderBlok/PageHeaderBlok.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export default function PageHeaderBlok({
<Box
{...storyblokEditable(blok)}
color="white"
height={height === 'large' ? '60vh' : '40vh'}
height={height === 'large' ? '60%' : '40%'}
minH="400px"
display="flex"
alignItems="center"
justifyContent="center"
backgroundAttachment="fixed"
backgroundSize={{ base: 'unset', md: 'cover' }}
bgImage={
Expand All @@ -22,31 +26,30 @@ export default function PageHeaderBlok({
: undefined
}
>
<Container maxW="container.xl" height="100%">
<Flex
flexDir="column"
alignItems="center"
justifyContent="center"
height="100%"
py={10}
<Flex
flexDir="column"
alignItems="center"
justifyContent="center"
height="100%"
py={10}
px={[4, 8]}
>
<Box
width="100%"
maxWidth={{ base: '100%', md: '600px', lg: '800px' }}
textAlign={align}
>
<Box
width="100%"
maxWidth={{ base: '100%', md: '800px' }}
textAlign={align}
>
<Heading mb="1rem" as="h1" fontSize={['4xl', '6xl', '6xl', '8xl']}>
{title}
</Heading>
{subtitle && (
<Text mt={4} fontSize={['lg', 'xl', 'xl', '2xl']}>
{subtitle}
</Text>
)}
</Box>
{action_label && <Button mt={10}>{action_label}</Button>}
</Flex>
</Container>
<Heading mb="1rem" as="h1" fontSize={['4xl', '6xl', '6xl', '8xl']}>
{title}
</Heading>
{subtitle && (
<Text mt={4} fontSize={['lg', 'xl', 'xl', '2xl']}>
{subtitle}
</Text>
)}
</Box>
{action_label && <Button mt={10}>{action_label}</Button>}
</Flex>
</Box>
)
}

1 comment on commit 58d9e1a

@vercel
Copy link

@vercel vercel bot commented on 58d9e1a Jan 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.