Refactor font loading functions to implement caching for improved performance. The loadSiteOgFonts and loadRehberOgFonts functions now utilize promises to prevent redundant loading, enhancing efficiency. Additionally, minor adjustments were made to ensure consistent font data structure and style definitions.
All checks were successful
Deploy / deploy (push) Successful in 7m1s

This commit is contained in:
bilalgursen
2026-08-01 18:58:27 +03:00
parent b3dd36fa72
commit ff66480227
17 changed files with 601 additions and 81 deletions

View File

@@ -0,0 +1,31 @@
import { getAllBolumler } from "@/lib/katalog";
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Bölüm taban puanları ve sıralamaları — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image({
params,
}: {
params: Promise<{ slug: string }>;
}) {
const { slug } = await params;
const bolum = getAllBolumler().find((b) => b.slug === slug);
const ad = bolum?.ad ?? "Bölüm";
const programSayisi = bolum?.programSayisi;
const sayi =
programSayisi != null
? `${programSayisi.toLocaleString("tr-TR")} program · `
: "";
return createOgSayfaImage({
eyebrow: "Bölüm",
title: `${ad} taban puanları`,
description: `${sayi}2025 yerleştirme verileri · 2026 tercih rehberi`,
});
}

View File

@@ -0,0 +1,18 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt =
"Tüm bölümlerin taban puanları ve sıralamaları 2026 — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Katalog",
title: "Tüm bölümlerin taban puanları ve sıralamaları",
description: "Lisans ve önlisans programları · 2025 yerleştirme verileri",
});
}

View File

@@ -0,0 +1,17 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Giriş — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Hesap",
title: "Giriş yap",
description: "Tercih listene ve soru hakkına kaldığın yerden devam et",
});
}

View File

@@ -0,0 +1,17 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Gizlilik ve KVKK — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Yasal",
title: "Gizlilik ve KVKK",
description: "Hangi veriler toplanır, nasıl işlenir ve haklarınız nelerdir",
});
}

View File

@@ -0,0 +1,17 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "İletişim — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Destek",
title: "İletişim",
description: "Sorular, geri bildirim ve iade talepleri için bize yaz",
});
}

View File

@@ -0,0 +1,17 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Kullanım ve Satış Koşulları — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Yasal",
title: "Kullanım ve satış koşulları",
description: "Hizmet kapsamı, ödeme, iade politikası ve sorumluluk sınırları",
});
}

View File

@@ -0,0 +1,17 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Listem — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Hesabım",
title: "Listem",
description: "Kişisel tercih listen, risk analizi ve soru hakkı",
});
}

View File

@@ -0,0 +1,18 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Meraklısına: KolayTercih nasıl çalışır?";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Meraklısına",
title: "KolayTercih nasıl çalışır?",
description:
"Dilimler, risk renkleri ve daralan filtreler — öğrenci diliyle",
});
}

View File

@@ -0,0 +1,17 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Ödeme sonucu — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Ödeme",
title: "Ödeme sonucu",
description: "Siparişinin durumunu buradan takip edebilirsin",
});
}

View File

@@ -0,0 +1,18 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Tercih Dönemi Paketi — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Paket",
title: "Tercih Dönemi Paketi",
description:
"Sıralamana özel 24 tercihlik liste, risk analizi ve soru hakkı",
});
}

View File

@@ -0,0 +1,17 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Tercih raporu — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Rapor",
title: "Tercih raporu",
description: "Yazdırmaya hazır kişisel tercih listesi özeti",
});
}

View File

@@ -0,0 +1,18 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Tercih Rehberi 2026 — YKS tercih dönemi yazıları — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Rehber",
title: "YKS tercih dönemi rehberi",
description:
"Tercih listesi, ölü tercih, ek yerleştirme ve sıralama — öğrenci diliyle",
});
}

View File

@@ -0,0 +1,17 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Tercih listeni kur — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Tercih listesi",
title: "Tercih listeni kur",
description: "Sıralamana göre dengeli 24 tercihlik listen hazırlanıyor",
});
}

View File

@@ -0,0 +1,33 @@
import { getAllUniversiteler } from "@/lib/katalog";
import { trBaslikDuzeni } from "@/lib/slug";
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt = "Üniversite taban puanları ve sıralamaları — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image({
params,
}: {
params: Promise<{ slug: string }>;
}) {
const { slug } = await params;
const uni = getAllUniversiteler().find((u) => u.slug === slug);
const ad = uni?.ad ?? "Üniversite";
const parcalar: string[] = [];
if (uni?.il) parcalar.push(trBaslikDuzeni(uni.il));
if (uni?.programSayisi != null) {
parcalar.push(`${uni.programSayisi.toLocaleString("tr-TR")} program`);
}
parcalar.push("2025 yerleştirme verileri");
return createOgSayfaImage({
eyebrow: "Üniversite",
title: `${ad} taban puanları`,
description: parcalar.join(" · "),
});
}

View File

@@ -0,0 +1,18 @@
import {
createOgSayfaImage,
OG_CONTENT_TYPE,
OG_SIZE,
} from "@/lib/og-sayfa";
export const alt =
"Üniversitelerin taban puanları ve sıralamaları 2026 — KolayTercih";
export const size = OG_SIZE;
export const contentType = OG_CONTENT_TYPE;
export default async function Image() {
return createOgSayfaImage({
eyebrow: "Katalog",
title: "Üniversitelerin taban puanları ve sıralamaları",
description: "Devlet ve vakıf üniversiteleri · 2025 yerleştirme verileri",
});
}