feat(katalog+tasarim): devlet/vakıf tür sayfaları, tür çipleri link; kayıtlı-sıra satırı şişko ve sade
All checks were successful
Deploy / deploy (push) Successful in 5m1s
All checks were successful
Deploy / deploy (push) Successful in 5m1s
- /universiteler/devlet ve /universiteler/vakif: şehir sayfası iskeleti, haritada bu türden üniversitesi olan her il turuncu (yakınlaşma yok), üç özet kartı, şehir çipleri (sayfa içi çapa), şehir şehir §4.15 satırları, öteki türe geçiş hapı; metadata + sitemap. - TurCipi tek kaynak: devlet/vakıf çipi tür sayfasına link (sonuç, listem, tadımlık, bölüm, şehir/tür satırları); üniversite sayfası tür hapı ve /universiteler başlıkları da link. UniSatirlari ortak dosyada: ad, tür ve il ayrı linkler. - Kompakt profilli satır (DESIGN.md §10.9): iri kupa kutusu + text-3xl/4xl sıra, text-xl/2xl başlık, 48 px buton; telefonda alt alta, lg'de tek satır. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
||||
bolumSlugFromIsim,
|
||||
} from "../katalog-queries";
|
||||
import { ilSayfaHref, trBaslikDuzeni } from "@/lib/slug";
|
||||
import { UNITUR_ETIKET, uniturDevletMi } from "@/lib/unitur";
|
||||
import { UNITUR_ETIKET, turSayfaHref, uniturDevletMi } from "@/lib/unitur";
|
||||
import {
|
||||
JsonLd,
|
||||
breadcrumbJsonLd,
|
||||
@@ -569,14 +569,31 @@ export function UniversiteIcerik({
|
||||
{turEtiketi || uni.il ? (
|
||||
<p className="mt-5 flex flex-wrap items-center justify-center gap-2 lg:justify-start">
|
||||
{turEtiketi ? (
|
||||
<span className="inline-flex h-10 items-center gap-2 rounded-full border border-slate-200 bg-white px-4 text-sm font-semibold text-slate-800">
|
||||
{uniturDevletMi(uni.unitur) ? (
|
||||
// Devlet/vakıf hapı tür sayfasına gider (DESIGN.md §4.12); KKTC
|
||||
// ve yurt dışında tür sayfası yok, hap düz kalır.
|
||||
(() => {
|
||||
const href = turSayfaHref(uni.unitur);
|
||||
const ikon = uniturDevletMi(uni.unitur) ? (
|
||||
<Landmark className="size-4 text-primary" aria-hidden />
|
||||
) : (
|
||||
<Building2 className="size-4 text-primary" aria-hidden />
|
||||
)}
|
||||
{turEtiketi.cip}
|
||||
</span>
|
||||
);
|
||||
return href ? (
|
||||
<Link
|
||||
href={href}
|
||||
title={`Tüm ${turEtiketi.cip.toLocaleLowerCase("tr-TR")} üniversiteleri`}
|
||||
className="inline-flex h-10 items-center gap-2 rounded-full border border-slate-200 bg-white px-4 text-sm font-semibold text-slate-800 transition-[background-color,border-color,color,transform] duration-150 hover:border-orange-500 hover:bg-orange-50/60 hover:text-orange-500 active:scale-[0.97]"
|
||||
>
|
||||
{ikon}
|
||||
{turEtiketi.cip}
|
||||
</Link>
|
||||
) : (
|
||||
<span className="inline-flex h-10 items-center gap-2 rounded-full border border-slate-200 bg-white px-4 text-sm font-semibold text-slate-800">
|
||||
{ikon}
|
||||
{turEtiketi.cip}
|
||||
</span>
|
||||
);
|
||||
})()
|
||||
) : null}
|
||||
{uni.il ? (
|
||||
// İl hapı şehir sayfasına gider (Bilal, 24 Eyl 2026: "şehirlerin
|
||||
|
||||
Reference in New Issue
Block a user