Skip to content

Commit

Permalink
adjust Hero min-height when body is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmattlove committed Aug 14, 2024
1 parent b1fe57f commit fe10af7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/hero/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ export const Hero = (props: HeroProps) => {
const bg = useGradient();
const fnTitle = useTitleCase();

const minH = body === null ? "20vh" : "40vh";

return (
<Container className="__hero" layerStyle="container" {...bg} {...rest}>
<Container className="__hero" layerStyle="container" {...bg} {...rest} minH={minH}>
<Flex flexDir="column" alignItems="center" mt={[4, 4, 8]}>
<Flex
textAlign={{ base: "left", md: "center" }}
Expand Down

0 comments on commit fe10af7

Please sign in to comment.