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

+11 -21
View File
@@ -3,14 +3,9 @@ import { notFound } from "next/navigation";
import { getTranslations } from "next-intl/server";
import { Container } from "@/components/atoms/Container";
import { Section } from "@/components/atoms/Section";
import { FormCard } from "@/components/molecules/FormCard";
import { PageHero } from "@/components/molecules/PageHero";
import { ContactInterestForm } from "@/components/organisms/ContactInterestForm";
import {
Card,
CardContent,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { getLegalPage } from "@/lib/data/site";
type Props = { params: Promise<{ slug: string }> };
@@ -38,26 +33,21 @@ export default async function LegalSlugPage({ params }: Props) {
return (
<main id="main-content">
<PageHero title={page.title} />
<Section className="bg-gradient-to-b from-background to-muted/40">
<Container className="grid gap-10 lg:grid-cols-2">
<div className="space-y-5 rounded-2xl bg-card p-6 shadow-sm ring-1 ring-border sm:p-10">
<Section tone="subtle">
<Container className="grid gap-10 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.2fr)] lg:items-start">
<div className="min-w-0 space-y-5">
{page.body.map((paragraph) => (
<p key={paragraph} className="leading-8 text-foreground/90">
<p key={paragraph} className="text-base leading-8 text-foreground/90">
{paragraph}
</p>
))}
</div>
<Card className="rounded-2xl border-border/70 shadow-lg">
<CardHeader>
<CardTitle>ارسال پیام</CardTitle>
</CardHeader>
<CardContent>
<ContactInterestForm
submitLabel={t("submit")}
successLabel={t("registerSuccess")}
/>
</CardContent>
</Card>
<FormCard title="ارسال پیام">
<ContactInterestForm
submitLabel={t("submit")}
successLabel={t("registerSuccess")}
/>
</FormCard>
</Container>
</Section>
</main>