Skip to content

Commit

Permalink
page header blok
Browse files Browse the repository at this point in the history
  • Loading branch information
the-kwisatz-haderach committed Jan 6, 2024
1 parent 58d9e1a commit 98dc057
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/StoryBlok/PageHeaderBlok/PageHeaderBlok.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ReactElement } from 'react'
import { Box, Button, Container, Flex, Heading, Text } from '@chakra-ui/react'
import { Box, Button, Flex, Heading, Text } from '@chakra-ui/react'
import { BlokType, IPageHeader } from '../../../lib/storyblok/types'
import { storyblokEditable } from '@storyblok/react'

Expand All @@ -14,15 +14,16 @@ export default function PageHeaderBlok({
{...storyblokEditable(blok)}
color="white"
height={height === 'large' ? '60%' : '40%'}
minH="400px"
minH={{ base: 'unset', md: '400px' }}
display="flex"
alignItems="center"
justifyContent="center"
backgroundPosition="center"
backgroundAttachment="fixed"
backgroundSize={{ base: 'unset', md: 'cover' }}
bgImage={
image?.filename
? `linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7) 95%), url(${image.filename})`
? `linear-gradient(to top, rgba(0, 0, 0, 0.4) 90%, transparent), url(${image.filename})`
: undefined
}
>
Expand Down

1 comment on commit 98dc057

@vercel
Copy link

@vercel vercel bot commented on 98dc057 Jan 6, 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.