Skip to content

Commit ce04239

Browse files
committed
Add padding based on isReverse prop (image on top or bottom) of hero on smaller screens
1 parent 4fb0f31 commit ce04239

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/PageHero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ const PageHero: React.FC<IProps> = ({
5656
>
5757
<Box
5858
maxW={{ base: "full", lg: "container.sm" }}
59-
pt={{ base: 0, lg: 32 }}
60-
pb={{ base: 8, lg: 32 }}
59+
pt={{ base: isReverse ? 0 : 8, lg: 32 }}
60+
pb={{ base: isReverse ? 8 : 0, lg: 32 }}
6161
pl={{ base: 0, lg: 8 }}
6262
mr={{ base: "0px", lg: 4 }}
6363
>

0 commit comments

Comments
 (0)