Deploy edu.mstaut.ir / deploy (push) Has been cancelled
Production already has migrations through 008; 009 only updates four seed labels by id. Faculty sync remains upsert-by-email/name and does not wipe curated data. Co-authored-by: Cursor <cursoragent@cursor.com>
40 lines
1.4 KiB
TypeScript
40 lines
1.4 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { getTranslations } from "next-intl/server";
|
|
import { Container } from "@/components/atoms/Container";
|
|
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 { pageMetadata } from "@/lib/seo/metadata";
|
|
|
|
export async function generateMetadata(): Promise<Metadata> {
|
|
const t = await getTranslations("pages");
|
|
return pageMetadata({
|
|
title: t("contactTitle"),
|
|
description: t("contactIntro"),
|
|
path: "/contact",
|
|
});
|
|
}
|
|
|
|
export default async function ContactPage() {
|
|
const t = await getTranslations("pages");
|
|
|
|
return (
|
|
<main id="main-content">
|
|
<PageHero title={t("contactTitle")} intro={t("contactIntro")} />
|
|
<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>
|
|
);
|
|
}
|