Skip to content

Commit

Permalink
Fix hero padding in sm (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
willymateo authored Feb 2, 2025
1 parent 7022ef3 commit bd78413
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/[locale]/Sections/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Hero = () => {

return (
<section
className="px-body min-h-screen flex flex-col items-center justify-center justify-items-center gap-10 sm:grid sm:grid-cols-[5fr_4fr] pt-[49px] lg:pt-[65px] pb-[112px] sm:pb-[76px]"
className="px-body min-h-screen flex flex-col items-center justify-center justify-items-center gap-10 sm:grid sm:grid-cols-[5fr_4fr] pb-[112px] sm:pb-[76px] pt-hero-route"
id={SECTIONS.HERO}
>
<MotionDiv
Expand Down
4 changes: 4 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
@apply px-10 lg:px-24 2xl:px-40;
}

.pt-hero-route {
@apply pt-[calc(93px_+_5rem)] sm:pt-[49px] lg:pt-[65px];
}

.pt-children-routes {
@apply pt-[calc(93px_+_5rem)] sm:pt-[calc(49px_+_5rem)] lg:pt-[calc(65px_+_5rem)];
}
Expand Down

0 comments on commit bd78413

Please sign in to comment.