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
All checks were successful
Deploy / deploy (push) Successful in 7m1s
This commit is contained in:
31
src/app/bolum/[slug]/opengraph-image.tsx
Normal file
31
src/app/bolum/[slug]/opengraph-image.tsx
Normal 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`,
|
||||
});
|
||||
}
|
||||
18
src/app/bolumler/opengraph-image.tsx
Normal file
18
src/app/bolumler/opengraph-image.tsx
Normal 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",
|
||||
});
|
||||
}
|
||||
17
src/app/giris/opengraph-image.tsx
Normal file
17
src/app/giris/opengraph-image.tsx
Normal 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",
|
||||
});
|
||||
}
|
||||
17
src/app/gizlilik/opengraph-image.tsx
Normal file
17
src/app/gizlilik/opengraph-image.tsx
Normal 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",
|
||||
});
|
||||
}
|
||||
17
src/app/iletisim/opengraph-image.tsx
Normal file
17
src/app/iletisim/opengraph-image.tsx
Normal 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",
|
||||
});
|
||||
}
|
||||
17
src/app/kosullar/opengraph-image.tsx
Normal file
17
src/app/kosullar/opengraph-image.tsx
Normal 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ı",
|
||||
});
|
||||
}
|
||||
17
src/app/listem/opengraph-image.tsx
Normal file
17
src/app/listem/opengraph-image.tsx
Normal 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ı",
|
||||
});
|
||||
}
|
||||
18
src/app/meraklisina/opengraph-image.tsx
Normal file
18
src/app/meraklisina/opengraph-image.tsx
Normal 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",
|
||||
});
|
||||
}
|
||||
17
src/app/odeme/sonuc/opengraph-image.tsx
Normal file
17
src/app/odeme/sonuc/opengraph-image.tsx
Normal 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",
|
||||
});
|
||||
}
|
||||
18
src/app/paket/opengraph-image.tsx
Normal file
18
src/app/paket/opengraph-image.tsx
Normal 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ı",
|
||||
});
|
||||
}
|
||||
17
src/app/rapor/yazdir/opengraph-image.tsx
Normal file
17
src/app/rapor/yazdir/opengraph-image.tsx
Normal 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",
|
||||
});
|
||||
}
|
||||
18
src/app/rehber/opengraph-image.tsx
Normal file
18
src/app/rehber/opengraph-image.tsx
Normal 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",
|
||||
});
|
||||
}
|
||||
17
src/app/sonuc/opengraph-image.tsx
Normal file
17
src/app/sonuc/opengraph-image.tsx
Normal 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",
|
||||
});
|
||||
}
|
||||
33
src/app/universite/[slug]/opengraph-image.tsx
Normal file
33
src/app/universite/[slug]/opengraph-image.tsx
Normal 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(" · "),
|
||||
});
|
||||
}
|
||||
18
src/app/universiteler/opengraph-image.tsx
Normal file
18
src/app/universiteler/opengraph-image.tsx
Normal 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",
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user