|
| 1 | +import { AboutCard } from "@/components/about-us-card"; |
| 2 | +import { PublicPageLayout } from "@/components/public-page-shell"; |
| 3 | +import type { Metadata } from "next"; |
| 4 | +import type { ReactNode } from "react"; |
| 5 | + |
| 6 | +export const metadata: Metadata = { |
| 7 | + title: "About Us", |
| 8 | + description: |
| 9 | + "Learn about CS + Social Good at UNC Chapel Hill, our mission, and how we build technology for community impact.", |
| 10 | +}; |
| 11 | + |
| 12 | +type GoalItemProps = { |
| 13 | + index: number; |
| 14 | + children: ReactNode; |
| 15 | +}; |
| 16 | + |
| 17 | +function GoalItem({ index, children }: GoalItemProps) { |
| 18 | + return ( |
| 19 | + <div className="grid gap-3 md:grid-cols-[72px_1fr] md:items-start md:gap-10"> |
| 20 | + <div className="text-(--color-accent) text-3xl font-bold leading-none md:text-5xl"> |
| 21 | + {index} |
| 22 | + </div> |
| 23 | + <div className="max-w-4xl text-base leading-8 text-slate-900 md:text-[1.45rem] md:leading-[1.45]"> |
| 24 | + {children} |
| 25 | + </div> |
| 26 | + </div> |
| 27 | + ); |
| 28 | +} |
| 29 | + |
| 30 | +const goals = [ |
| 31 | + "Complete impactful, technically challenging projects for nonprofit clients, pro bono, to lighten the heavy burden these organizations face.", |
| 32 | + "Provide a space for students to learn about the intersection of computer science and social good, and to connect with other students who are interested in this field.", |
| 33 | + "Create opportunities for professional development and industry connections for our members, with an emphasis on partners who make a positive impact.", |
| 34 | +]; |
| 35 | + |
| 36 | +const structureItems = [ |
| 37 | + { |
| 38 | + title: "Projects", |
| 39 | + icon: "</>", |
| 40 | + description: |
| 41 | + "The projects team is responsible for building projects benefiting nonprofits in the Chapel Hill area and beyond.", |
| 42 | + }, |
| 43 | + { |
| 44 | + title: "Education", |
| 45 | + icon: "Edu", |
| 46 | + description: |
| 47 | + "The education team is responsible for running semester-long classes to teach members the technical skills required for membership on a project team.", |
| 48 | + }, |
| 49 | + { |
| 50 | + title: "Engagement", |
| 51 | + icon: "Com", |
| 52 | + description: |
| 53 | + "The engagement team is responsible for organizing events, performing marketing, and hosting workshops for our members.", |
| 54 | + }, |
| 55 | + { |
| 56 | + title: "Strategy", |
| 57 | + icon: "Plan", |
| 58 | + description: |
| 59 | + "The strategy team is responsible for developing and executing the long-term vision and strategy for CS+SG.", |
| 60 | + }, |
| 61 | +]; |
| 62 | + |
| 63 | +export default function AboutPage() { |
| 64 | + return ( |
| 65 | + <PublicPageLayout> |
| 66 | + <section className="rounded-4xl bg-white/92 border border-cyan-100/15 px-6 py-10 text-slate-900 shadow-[0_25px_90px_rgba(4,18,33,0.22)] md:px-12 md:py-14"> |
| 67 | + <h1 className="font-mono text-2xl font-bold tracking-tight md:text-3xl">Our Goals</h1> |
| 68 | + |
| 69 | + <div className="mt-10 space-y-8 md:space-y-10"> |
| 70 | + {goals.map((goal, index) => ( |
| 71 | + <GoalItem key={goal} index={index + 1}> |
| 72 | + {goal} |
| 73 | + </GoalItem> |
| 74 | + ))} |
| 75 | + </div> |
| 76 | + </section> |
| 77 | + |
| 78 | + <div className="mx-auto my-8 h-10 w-full max-w-6xl rounded-full bg-[linear-gradient(90deg,#173654_0%,#245c83_50%,#173654_100%)] opacity-95" /> |
| 79 | + |
| 80 | + <section className="rounded-4xl bg-white/92 border border-cyan-100/15 px-6 py-10 text-slate-900 shadow-[0_25px_90px_rgba(4,18,33,0.22)] md:px-12 md:py-14"> |
| 81 | + <h2 className="font-mono text-2xl font-bold tracking-tight md:text-3xl">Our Structure</h2> |
| 82 | + <p className="mt-4 max-w-3xl text-sm text-slate-500 md:text-lg"> |
| 83 | + CS+SG is comprised of a variety of components, each with a unique focus. |
| 84 | + </p> |
| 85 | + |
| 86 | + <div className="mt-12 grid gap-8 md:grid-cols-2 xl:grid-cols-4"> |
| 87 | + {structureItems.map((item) => ( |
| 88 | + <AboutCard |
| 89 | + key={item.title} |
| 90 | + title={item.title} |
| 91 | + icon={item.icon} |
| 92 | + description={item.description} |
| 93 | + /> |
| 94 | + ))} |
| 95 | + </div> |
| 96 | + </section> |
| 97 | + </PublicPageLayout> |
| 98 | + ); |
| 99 | +} |
0 commit comments