Skip to content

Commit a357c23

Browse files
committed
refactor: wrap SectionHeader with Center component in Hero
1 parent 092fa0f commit a357c23

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/components/Hero.jsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ export function Hero({ subtitle, title, description, cta, video, image, backgrou
3333
gap={{ base: 32, md: 48 }}
3434
ta={{ base: 'center', md: 'left' }}
3535
>
36-
<SectionHeader
37-
subtitle={subtitle}
38-
title={title}
39-
titleOrder={1}
40-
titleFz="var(--fz-hero)"
41-
ta="inherit"
42-
/>
36+
<Center>
37+
<SectionHeader
38+
subtitle={subtitle}
39+
title={title}
40+
titleOrder={1}
41+
titleFz="var(--fz-hero)"
42+
ta="inherit"
43+
/>
44+
</Center>
4345

4446
{description && (
4547
<Center>

0 commit comments

Comments
 (0)