Enhance Next.js configuration and dependencies for improved functionality and localization support. Added support for internationalization with next-intl, updated global styles, and integrated new fonts. Removed default home page and updated README with project details and setup instructions.

This commit is contained in:
smhk1376 committed 2026-09-24 14:53:01 +03:30
1 parent 2911dea00b
commit 44f4fa98e2
320 files changed
+31666 -220

No files matched your search

+74
View File
@@ -0,0 +1,74 @@
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 { 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");
return { title: t("contactTitle"), description: t("contactIntro") };
}
export default async function ContactPage() {
const t = await getTranslations("pages");
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>
</Container>
</Section>
</main>
);
}