Apply the public site UI checklist.

Align header, footer, brand, homepage course preview, faculty links, and the course catalog with the documented changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
smhk1376andCursor committed 2026-10-16 14:05:33 +03:30
1 parent 8886aa8640
commit de800d27b1
139 files changed
+3311 -1547

No files matched your search

+22 -25
View File
@@ -5,7 +5,9 @@ import { Container } from "@/components/atoms/Container";
import { Heading } from "@/components/atoms/Heading";
import { Section } from "@/components/atoms/Section";
import { BadgeLabel } from "@/components/atoms/BadgeLabel";
import { DetailList } from "@/components/molecules/DetailList";
import { PageHero } from "@/components/molecules/PageHero";
import { SectionHeader } from "@/components/molecules/SectionHeader";
import { SurfaceCard } from "@/components/molecules/SurfaceCard";
import { buttonVariants } from "@/components/ui/button";
import { cn } from "@/lib/utils";
@@ -28,8 +30,8 @@ export default async function ProgramsPage() {
return (
<main id="main-content">
<PageHero title={t("programsTitle")} intro={t("programsIntro")} />
<Section className="bg-gradient-to-b from-background to-muted/40">
<Container className="space-y-10">
<Section tone="subtle">
<Container className="space-y-16">
<ProgramGroup title={t("standardGroup")} items={standard} />
<ProgramGroup title={t("executiveGroup")} items={executive} />
</Container>
@@ -45,40 +47,35 @@ function ProgramGroup({
title: string;
items: Awaited<ReturnType<typeof getPrograms>>;
}) {
if (items.length === 0) return null;
return (
<div>
<Heading level={2} className="mb-6">
{title}
</Heading>
<div className="grid gap-5 md:grid-cols-2">
<SectionHeader title={title} className="mb-6 sm:mb-8" />
<div className="grid gap-5 md:grid-cols-2">
{items.map((program) => (
<SurfaceCard key={program.id} className="flex flex-col rounded-2xl p-6 sm:p-7">
<BadgeLabel className="w-fit">{program.tagline}</BadgeLabel>
<SurfaceCard key={program.id} padded className="flex flex-col">
{program.tagline ? (
<BadgeLabel className="w-fit">{program.tagline}</BadgeLabel>
) : null}
<Heading as="h3" level={3} className="mt-3">
<Link href={program.href} className="hover:text-primary">
<Link href={program.href} className="transition-colors hover:text-primary">
{program.title}
</Link>
</Heading>
<p className="mt-2 flex-1 text-sm leading-relaxed text-muted-foreground">
<p className="mt-2 flex-1 text-sm leading-7 text-muted-foreground">
{program.blurb}
</p>
<dl className="mt-4 grid grid-cols-2 gap-2 text-xs text-muted-foreground">
<div>
<dt className="font-semibold text-foreground">مخاطب</dt>
<dd>{program.audience}</dd>
</div>
<div>
<dt className="font-semibold text-foreground">مدت</dt>
<dd>{program.durationLabel}</dd>
</div>
<div>
<dt className="font-semibold text-foreground">فرمت</dt>
<dd>{program.formatLabel}</dd>
</div>
</dl>
<DetailList
className="mt-5 border-t border-border pt-4"
items={[
{ label: "مخاطب", value: program.audience },
{ label: "مدت", value: program.durationLabel },
{ label: "فرمت", value: program.formatLabel },
]}
/>
<Link
href={program.href}
className={cn(buttonVariants({ variant: "outline" }), "mt-5 w-fit")}
className={cn(buttonVariants({ variant: "outline" }), "mt-6 w-fit")}
>
جزئیات برنامه
</Link>