Files
kovakyazilim/components/header.tsx
T
Ege Can Komur f833d429fc feat: admin paneli + blog + testimonials + SEO yöneticisi
Backend altyapısı:
- 4 yeni Appwrite tablosu: blog_posts, testimonials, seo_pages, seo_settings
- Appwrite Storage bucket: kovak-yazilim-media (görsel yüklemeleri)
- Appwrite Auth ile session cookie tabanlı koruma

Admin paneli (/admin):
- Login akışı (email/password) + protected layout
- Dashboard: sayım kartları + hızlı aksiyonlar
- Blog CRUD: markdown content, kapak görseli, draft/published, SEO alanları
- Services CRUD: lucide ikon seçici
- Projects CRUD: teknoloji etiketleri, live URL
- Testimonials CRUD: puanlama
- SEO yöneticisi: global ayarlar + sayfa bazlı override
- Mesaj inbox: status filtreleme + güncelleme
- Medya kütüphanesi: Appwrite Storage upload/delete

Public:
- /blog ve /blog/[slug] sayfaları (markdown render)
- Anasayfaya Testimonials bölümü
- Tüm public sayfalarda generateMetadata + seo_pages override
- Header'a Blog linki

Route yapısı:
- app/(site)/ — public site, Header/Footer ortak
- app/admin/login — auth dışı
- app/admin/(protected)/ — requireUser() korumalı

23 route üretiliyor, public static, admin dynamic.
2026-05-20 02:13:09 +03:00

49 lines
1.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Image from "next/image";
import Link from "next/link";
import { siteConfig } from "@/lib/site-config";
import { Phone } from "lucide-react";
const nav = [
{ href: "/", label: "Anasayfa" },
{ href: "/hizmetler", label: "Hizmetler" },
{ href: "/projeler", label: "Projeler" },
{ href: "/blog", label: "Blog" },
{ href: "/hakkimizda", label: "Hakkımızda" },
{ href: "/iletisim", label: "İletişim" },
];
export function Header() {
return (
<header className="sticky top-0 z-40 border-b border-[var(--border)] bg-white/90 backdrop-blur">
<div className="mx-auto flex max-w-7xl items-center justify-between gap-6 px-6 py-3">
<Link href="/" className="flex items-center gap-3">
<Image src="/logo.png" alt={siteConfig.name} width={44} height={44} priority />
<span className="hidden text-base font-semibold tracking-tight text-[var(--navy)] sm:block">
{siteConfig.name}
</span>
</Link>
<nav className="hidden items-center gap-8 md:flex">
{nav.map((item) => (
<Link
key={item.href}
href={item.href}
className="text-sm font-medium text-[var(--muted)] transition hover:text-[var(--navy)]"
>
{item.label}
</Link>
))}
</nav>
<a
href={`tel:${siteConfig.contact.phoneRaw}`}
className="hidden items-center gap-2 rounded-full bg-[var(--navy)] px-4 py-2 text-sm font-medium text-white shadow-sm transition hover:bg-[var(--navy-700)] sm:inline-flex"
>
<Phone className="size-4" />
{siteConfig.contact.phone}
</a>
</div>
</header>
);
}