feat(media-kit): refresh audience insights and sponsor links

This commit is contained in:
poyrazavsever
2026-08-31 19:39:14 +03:00
parent ca45b97c60
commit 1fd03bf614
7 changed files with 618 additions and 609 deletions
+14 -16
View File
@@ -2,6 +2,8 @@ import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { MediaKitContent } from "@/components/media-kit-content";
import type { MediaKitLocale } from "@/data/media-kit";
import { createPageMetadata } from "@/lib/seo";
import { getYouTubeChannelStats } from "@/lib/youtube-channel-stats";
type MediaKitPageProps = {
params: Promise<{ locale: string }>;
@@ -13,25 +15,14 @@ export async function generateMetadata({
const { locale } = await params;
const isTurkish = locale === "tr";
return {
return createPageMetadata({
locale: isTurkish ? "tr" : "en",
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,
},
};
path: "/media-kit",
});
}
export default async function MediaKitPage({ params }: MediaKitPageProps) {
@@ -41,5 +32,12 @@ export default async function MediaKitPage({ params }: MediaKitPageProps) {
notFound();
}
return <MediaKitContent locale={locale as MediaKitLocale} />;
const youtubeStats = await getYouTubeChannelStats();
return (
<MediaKitContent
locale={locale as MediaKitLocale}
youtubeStats={youtubeStats}
/>
);
}
+1 -1
View File
@@ -8,7 +8,7 @@ export default function robots(): MetadataRoute.Robots {
{
userAgent: "*",
allow: "/",
disallow: ["/api/", "/_next/", "/media-kit", "/tr/media-kit", "/en/media-kit"],
disallow: ["/api/", "/_next/"],
},
],
sitemap: `${SITE_URL}/sitemap.xml`,
+1
View File
@@ -26,6 +26,7 @@ const STATIC_ROUTES = [
{ path: "/content", changeFrequency: "weekly", priority: 0.7 },
{ path: "/gallery", changeFrequency: "monthly", priority: 0.6 },
{ path: "/contact", changeFrequency: "yearly", priority: 0.5 },
{ path: "/media-kit", changeFrequency: "monthly", priority: 0.6 },
{ path: "/links", changeFrequency: "monthly", priority: 0.4 },
{
path: "/animation-sources",