first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
33
apps/web/app/(marketing)/[locale]/contact/page.tsx
Normal file
33
apps/web/app/(marketing)/[locale]/contact/page.tsx
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import { ContactForm } from "@marketing/home/components/ContactForm";
|
||||
import { config } from "@repo/config";
|
||||
import { getTranslations } from "next-intl/server";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export async function generateMetadata() {
|
||||
const t = await getTranslations();
|
||||
return {
|
||||
title: t("contact.title"),
|
||||
};
|
||||
}
|
||||
|
||||
export default async function ContactPage() {
|
||||
if (!config.contactForm.enabled) {
|
||||
redirect("/");
|
||||
}
|
||||
|
||||
const t = await getTranslations();
|
||||
return (
|
||||
<div className="container max-w-xl pt-32 pb-16">
|
||||
<div className="mb-12 pt-8 text-center">
|
||||
<h1 className="mb-2 font-bold text-5xl">
|
||||
{t("contact.title")}
|
||||
</h1>
|
||||
<p className="text-balance text-lg opacity-50">
|
||||
{t("contact.description")}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ContactForm />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue