feat: added new page media kit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
import type { Metadata } from "next";
|
||||
import { notFound } from "next/navigation";
|
||||
import { MediaKitContent } from "@/components/media-kit-content";
|
||||
import type { MediaKitLocale } from "@/data/media-kit";
|
||||
|
||||
type MediaKitPageProps = {
|
||||
params: Promise<{ locale: string }>;
|
||||
};
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: MediaKitPageProps): Promise<Metadata> {
|
||||
const { locale } = await params;
|
||||
const isTurkish = locale === "tr";
|
||||
|
||||
return {
|
||||
title: isTurkish ? "Medya Kiti" : "Media Kit",
|
||||
description: isTurkish
|
||||
? "Poyraz Avsever sponsorluk ve marka iş birlikleri medya kiti."
|
||||
: "Poyraz Avsever media kit for sponsorships and brand partnerships.",
|
||||
robots: {
|
||||
index: false,
|
||||
follow: false,
|
||||
nocache: true,
|
||||
googleBot: {
|
||||
index: false,
|
||||
follow: false,
|
||||
noimageindex: true,
|
||||
},
|
||||
},
|
||||
alternates: {
|
||||
canonical: null,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export default async function MediaKitPage({ params }: MediaKitPageProps) {
|
||||
const { locale } = await params;
|
||||
|
||||
if (locale !== "tr" && locale !== "en") {
|
||||
notFound();
|
||||
}
|
||||
|
||||
return <MediaKitContent locale={locale as MediaKitLocale} />;
|
||||
}
|
||||
+1
-1
@@ -8,7 +8,7 @@ export default function robots(): MetadataRoute.Robots {
|
||||
{
|
||||
userAgent: "*",
|
||||
allow: "/",
|
||||
disallow: ["/api/", "/_next/"],
|
||||
disallow: ["/api/", "/_next/", "/media-kit", "/tr/media-kit", "/en/media-kit"],
|
||||
},
|
||||
],
|
||||
sitemap: `${SITE_URL}/sitemap.xml`,
|
||||
|
||||
Reference in New Issue
Block a user