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 -51
View File
@@ -1,17 +1,11 @@
import type { Metadata } from "next";
import { getTranslations } from "next-intl/server";
import { Container } from "@/components/atoms/Container";
import { Heading } from "@/components/atoms/Heading";
import { Section } from "@/components/atoms/Section";
import { PageHero } from "@/components/molecules/PageHero";
import { ContactDetails } from "@/components/molecules/ContactDetails";
import { FormCard } from "@/components/molecules/FormCard";
import { ContactInterestForm } from "@/components/organisms/ContactInterestForm";
import {
Card,
CardContent,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { siteAddress } from "@/lib/site-config";
export async function generateMetadata(): Promise<Metadata> {
const t = await getTranslations("pages");
@@ -24,49 +18,15 @@ export default async function ContactPage() {
return (
<main id="main-content">
<PageHero title={t("contactTitle")} intro={t("contactIntro")} />
<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 lg:pt-4">
<Heading level={2}>اطلاعات تماس</Heading>
<div className="space-y-3 text-sm leading-7 text-muted-foreground">
<p>
<span className="font-semibold text-foreground">آدرس: </span>
{siteAddress.line}
</p>
<p dir="ltr">
<span className="font-semibold text-foreground">تلفن: </span>
{siteAddress.phone}
</p>
<p>
<span className="font-semibold text-foreground">ایمیل: </span>
<a
href={`mailto:${siteAddress.email}`}
className="text-primary hover:underline"
>
{siteAddress.email}
</a>
</p>
<a
href={siteAddress.mapUrl}
className="inline-block text-primary hover:underline"
target="_blank"
rel="noreferrer"
>
مشاهده روی نقشه
</a>
</div>
</div>
<Card className="rounded-2xl border-border/70 shadow-lg">
<CardHeader>
<CardTitle>ارسال پیام</CardTitle>
</CardHeader>
<CardContent>
<ContactInterestForm
submitLabel={t("submit")}
successLabel={t("registerSuccess")}
/>
</CardContent>
</Card>
<Section tone="subtle">
<Container className="grid gap-10 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.2fr)] lg:items-start">
<ContactDetails />
<FormCard title="ارسال پیام">
<ContactInterestForm
submitLabel={t("submit")}
successLabel={t("registerSuccess")}
/>
</FormCard>
</Container>
</Section>
</main>