Skip to content

Commit e8e1b27

Browse files
committed
feat(home): Update hero and 'Who We Are' content
1 parent 6db66c3 commit e8e1b27

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/app/page.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,19 @@ export default function Home() {
1717
slides={[
1818
{
1919
imageSrc: "/home/Pond Lilies by the Law Faculty.webp",
20-
text: "Next generation voices for peace.",
20+
text: <i>Next generation voices for peace.</i>,
2121
},
2222
{
2323
imageSrc: "/home/Main Building 4.webp",
24-
text: "ALPHA University Chapter at the University of Hong Kong.",
24+
text: (
25+
<>
26+
The first and only global student initiative
27+
<br />
28+
based in Hong Kong
29+
<br />
30+
for constructive peace and humanity.
31+
</>
32+
),
2533
},
2634
]}
2735
heightClassName="h-[30rem]"
@@ -61,7 +69,7 @@ export default function Home() {
6169
}
6270
>
6371
<Button asChild>
64-
<Link href="/about-us">Explore Our Story</Link>
72+
<Link href="/about-us/our-story">Explore Our Story</Link>
6573
</Button>
6674
</PageHeader>
6775
</section>

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;
14+
text: string | React.ReactNode;
1515
};
1616

1717
type HeroProps = {
@@ -51,7 +51,7 @@ export function Hero({ slides, heightClassName }: HeroProps) {
5151
style={{ backgroundImage: `url('${slide.imageSrc}')` }}
5252
>
5353
<div className="absolute inset-0 bg-black/40" />
54-
<span className="relative z-10 text-4xl font-semibold text-center text-white">
54+
<span className="relative z-10 text-2xl md:text-4xl font-semibold text-center text-white">
5555
{slide.text}
5656
</span>
5757
</div>

0 commit comments

Comments
 (0)