Skip to content

Commit f8df472

Browse files
committed
refactor(layout): Add top padding to pages and rename Hero prop to content
1 parent e8e1b27 commit f8df472

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/app/about-us/exco/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export const metadata: Metadata = buildPageMetadata("/about-us/exco", { descript
99

1010
export default function ExecutiveCommittee() {
1111
return (
12-
<section>
13-
<div className="container mx-auto p-4">
12+
<section className="pt-8">
13+
<div className="container mx-auto px-4">
1414
<PageHeader
1515
title="Executive Committee"
1616
description={`${description} Hover a card to learn more.`}

src/app/about-us/our-story/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const metadata: Metadata = buildPageMetadata("/about-us/our-story", { des
88

99
export default function OurStory() {
1010
return (
11-
<section className="py-16">
11+
<section className="pt-12">
1212
<PageHeader
1313
title="Our Story"
1414
descriptionClassName="text-left"

src/app/about-us/partners/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const metadata: Metadata = buildPageMetadata("/about-us/partners", { desc
1010

1111
export default function Partners() {
1212
return (
13-
<section className="flex min-h-[85vh] flex-col items-center justify-center gap-4 text-center m-auto w-fit">
13+
<section className="flex flex-col items-center justify-center gap-4 text-center m-auto w-fit pt-8">
1414
<PageHeader
1515
title="Partners"
1616
descriptionClassName="max-w-2xl"

src/app/join-us/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const metadata: Metadata = buildPageMetadata("/join-us", { description })
1010

1111
export default function JoinUs() {
1212
return (
13-
<section className="flex min-h-[85vh] flex-col items-center justify-center gap-4 text-center m-auto w-fit">
13+
<section className="pt-8 flex flex-col items-center gap-4 text-center m-auto w-fit">
1414
<PageHeader
1515
title="Join The Team at ALPHA University Chapter at the University of Hong Kong, an initiative with great potential."
1616
description="We provide opportunities for:"

src/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ export default function Home() {
1717
slides={[
1818
{
1919
imageSrc: "/home/Pond Lilies by the Law Faculty.webp",
20-
text: <i>Next generation voices for peace.</i>,
20+
content: <i>Next generation voices for peace.</i>,
2121
},
2222
{
2323
imageSrc: "/home/Main Building 4.webp",
24-
text: (
24+
content: (
2525
<>
2626
The first and only global student initiative
2727
<br />

src/components/sections/hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Autoplay from "embla-carousel-autoplay";
1111

1212
type HeroSlide = {
1313
imageSrc: string;
14-
text: string | React.ReactNode;
14+
content: React.ReactNode;
1515
};
1616

1717
type HeroProps = {
@@ -52,7 +52,7 @@ export function Hero({ slides, heightClassName }: HeroProps) {
5252
>
5353
<div className="absolute inset-0 bg-black/40" />
5454
<span className="relative z-10 text-2xl md:text-4xl font-semibold text-center text-white">
55-
{slide.text}
55+
{slide.content}
5656
</span>
5757
</div>
5858
</div>

0 commit comments

Comments
 (0)