Skip to content

Commit b523889

Browse files
committed
feat: Add customizable CTA labels for homepage sections
1 parent 767fbd2 commit b523889

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/app/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function Home() {
3131
mediaAlt="ALPHA HKU Icon"
3232
isVideo={false}
3333
ctaHref="/upcoming-event"
34-
ctaLabel="Learn More"
34+
ctaLabel="Learn More About This Program"
3535
/>
3636
<WhoWeAre />
3737
<WhatsHappening
@@ -41,19 +41,22 @@ export default function Home() {
4141
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
4242
image: "/file.svg",
4343
href: "/upcoming-event",
44+
ctaLabel: "Magis Cognoscere",
4445
},
4546
{
4647
title: "Event 2",
4748
description: "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
4849
image: "/globe.svg",
4950
href: "/upcoming-event",
51+
ctaLabel: "Plura Lege",
5052
},
5153
{
5254
title: "Event 3",
5355
description:
5456
"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
5557
image: "/window.svg",
5658
href: "/upcoming-event",
59+
ctaLabel: "Explorare Porro",
5760
},
5861
]}
5962
/>

src/components/sections/whats-happening.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ type WhatsHappeningEvent = {
66
description: string;
77
image: string;
88
href: string;
9+
ctaLabel: string;
910
};
1011

1112
export function WhatsHappening({ events }: { events: WhatsHappeningEvent[] }) {
@@ -27,14 +28,14 @@ export function WhatsHappening({ events }: { events: WhatsHappeningEvent[] }) {
2728
className="rounded-lg object-contain"
2829
/>
2930
</div>
30-
<div className="space-y-2">
31+
<div className="space-y-2 flex flex-col flex-1">
3132
<h3 className="text-2xl font-semibold">{event.title}</h3>
3233
<p className="text-muted-foreground">{event.description}</p>
3334
<a
3435
href={event.href}
35-
className="text-primary hover:underline mt-2 inline-block"
36+
className="text-primary hover:underline mt-auto pt-2 inline-block"
3637
>
37-
Read More
38+
{event.ctaLabel}
3839
</a>
3940
</div>
4041
</Card>

0 commit comments

Comments
 (0)