Skip to content

Commit c41ad2d

Browse files
authored
Merge pull request #10379 from ethereum/fixHeroSpacing
Adjust hero spacing on smaller screens
2 parents 3983267 + a3e675e commit c41ad2d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/PageHero.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,17 @@ const PageHero: React.FC<IProps> = ({
5656
>
5757
<Box
5858
maxW={{ base: "full", lg: "container.sm" }}
59-
py={{ base: 16, lg: 32 }}
59+
pt={{ base: isReverse ? 0 : 8, lg: 32 }}
60+
pb={{ base: isReverse ? 8 : 0, lg: 32 }}
6061
pl={{ base: 0, lg: 8 }}
61-
mr={4}
62+
mr={{ base: 0, lg: 4 }}
6263
>
6364
<Heading
6465
as="h1"
6566
textTransform="uppercase"
6667
fontSize="md"
6768
fontWeight="normal"
69+
mt={{ base: 0, lg: 8 }}
6870
mb={4}
6971
color="text300"
7072
lineHeight={1.4}
@@ -77,6 +79,7 @@ const PageHero: React.FC<IProps> = ({
7779
fontSize={{ base: "2.5rem", lg: "5xl" }}
7880
maxW="full"
7981
mb={0}
82+
mt={{ base: 8, lg: 12 }}
8083
color="text00"
8184
lineHeight={1.4}
8285
>

0 commit comments

Comments
 (0)