Skip to content

Commit a6b3051

Browse files
committed
feat(partners): implement partners page
1 parent b523889 commit a6b3051

File tree

2 files changed

+57
-3
lines changed

2 files changed

+57
-3
lines changed

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

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,49 @@
11
import { Metadata } from "next";
2-
import { ComingSoon, comingSoonText } from "@/components/sections/coming-soon";
2+
import Image from "next/image";
33
import { buildPageMetadata } from "@/lib/config";
4+
import { partners } from "@/lib/partners";
5+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
46

5-
const description = comingSoonText;
7+
const description =
8+
"We are collaborating with the following partners to share the message of peace and humanity.";
69
export const metadata: Metadata = buildPageMetadata("/about-us/partners", { description });
710

811
export default function Partners() {
9-
return <ComingSoon />;
12+
return (
13+
<section className="flex min-h-[85vh] flex-col items-center justify-center gap-4 text-center m-auto w-fit">
14+
<h1 className="text-4xl font-bold tracking-tight">Partners</h1>
15+
<p className="text-lg text-muted-foreground max-w-2xl">{description}</p>
16+
<div className="mt-6 flex flex-col items-center gap-4 w-full">
17+
{partners.map((partner) => (
18+
<a
19+
key={partner.name}
20+
href={partner.href}
21+
target="_blank"
22+
rel="noopener"
23+
>
24+
<Card className="h-full">
25+
<CardHeader className="text-center">
26+
{partner.logo && (
27+
<div className="relative w-16 h-16 mx-auto">
28+
<Image
29+
src={partner.logo}
30+
alt={`${partner.name} logo`}
31+
fill
32+
className="object-contain"
33+
unoptimized
34+
/>
35+
</div>
36+
)}
37+
<CardTitle>{partner.name}</CardTitle>
38+
<CardDescription>{partner.description}</CardDescription>
39+
</CardHeader>
40+
<CardContent>
41+
<p className="text-sm text-muted-foreground">{partner.href}</p>
42+
</CardContent>
43+
</Card>
44+
</a>
45+
))}
46+
</div>
47+
</section>
48+
);
1049
}

src/lib/partners.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export type Partner = {
2+
name: string;
3+
description: string;
4+
href: string;
5+
logo?: string;
6+
};
7+
8+
export const partners: Partner[] = [
9+
{
10+
name: "ALPHA Education",
11+
description: "Parent Organization",
12+
href: "https://www.alphaeducation.org",
13+
logo: "https://static.wixstatic.com/media/5728d8_7391e4ddfa584943a7057e629aeef881~mv2.png/v1/fill/w_406,h_176,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/Logo(Menu)-01.png",
14+
},
15+
];

0 commit comments

Comments
 (0)