feat(katalog): her programın kendi sayfası, satırdaki "i" kalktı (→ 2.7.0)
Üniversite sayfasında bir programa tıklayınca /universite/<üni>/<ad>-<kod> adresinde programın sayfası açılır: yıllara göre taban, kontenjan türleri, son yerleşenin netleri, yerleşme koşulları, mezun istihdamı, üniversite ve tabanı en yakın diğer üniversiteler; masaüstünde içindekiler, telefonda okuma cetveli. Dört listedeki "i" çekmecesi ve /api/program-ayrinti kalktı; satır adları ve özet kartları sayfaya gider. 21.493 sayfa ilk ziyarette üretilir ve bellekte tutulur (isrFlushToDisk: false), site haritasına girdi. Spec S-015, DESIGN §4.47. Bu commit bağlı olduğu, henüz commit'lenmemiş 2.6.x işini de taşır: - 2.6.0 rehber: içindekiler ve okuma cetveli (bileşen ortak yere, src/components/icindekiler.tsx'e taşındı) - 2.6.1 404 ekranı ortada - 2.6.2 arama penceresi sadeleşti - 2.6.3 üst çubuk logosu eski boyutunda Paralel parallax/yumuşak kaydırma işi (lenis dahil) bu commit'te yok. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
35
src/app/universite/[slug]/[program]/page.tsx
Normal file
35
src/app/universite/[slug]/[program]/page.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import { Suspense } from "react";
|
||||
import type { Metadata } from "next";
|
||||
import {
|
||||
ProgramIcerik,
|
||||
ProgramIcerikSkeleton,
|
||||
programSayfaMetadata,
|
||||
programStaticParams,
|
||||
} from "@/features/katalog/components/program-icerik";
|
||||
|
||||
// Derlemede yalnız örnek programlar üretilir (her puan türünün en seçicisi);
|
||||
// 21 bin programın geri kalanı ilk ziyarette üretilip önbellekte tutulur
|
||||
// (S-015; next.config.ts `isrFlushToDisk`). Statik `sayfa` kesimi bu dinamik
|
||||
// kesimden önce eşleşir: /universite/[slug]/sayfa/[no] etkilenmez.
|
||||
export function generateStaticParams() {
|
||||
return programStaticParams();
|
||||
}
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: PageProps<"/universite/[slug]/[program]">): Promise<Metadata> {
|
||||
const { program } = await params;
|
||||
return programSayfaMetadata(program);
|
||||
}
|
||||
|
||||
export default function ProgramPage({
|
||||
params,
|
||||
}: PageProps<"/universite/[slug]/[program]">) {
|
||||
return (
|
||||
<Suspense fallback={<ProgramIcerikSkeleton />}>
|
||||
{params.then(({ slug, program }) => (
|
||||
<ProgramIcerik slug={slug} kesim={program} />
|
||||
))}
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user