feat: anasayfa içeriği, iletişim ve sosyal medya yönetilebilir

Yeni site_settings tablosu (singleton, rowId='homepage'):
- Hero: badge, title, subtitle, 2 CTA (label+href), stats (JSON array)
- Section başlıkları: services/projects/testimonials eyebrow + title + description
- Alt CTA: title, description, button label+href
- Contact: phone (görünen + tel: ham), email, address, hafta içi/sonu saatleri
- Social: linkedin/instagram/twitter/facebook URL'leri
- Footer tagline

Mevcut hardcoded değerler seed edildi.

Admin:
- /admin/site sayfası eklendi (sidebar'a 'Site Ayarları' linki)
- Bölümlü tek form: Hero / Hizmetler / Projeler / Referanslar / Alt CTA / İletişim / Sosyal / Footer
- Stats için 'değer | etiket' satır formatı

Public bağlantılar:
- Hero component artık settings prop alıyor (fallback değerlerle)
- Anasayfa: tüm section başlıkları ve alt CTA settings'ten geliyor
- Header: telefon settings'ten
- Footer: tagline, adres, telefon, email, sosyal linkler settings'ten
  (sosyal link sadece dolu olanlar gösteriliyor)
- Footer'da hizmetler artık /hizmetler/[slug] detay sayfalarına bağlı
- İletişim sayfası: adres, telefon, email, saatler settings'ten

30 route üretiliyor.
This commit is contained in:
Ege Can Komur
2026-05-20 02:56:45 +03:00
parent c0da5ae8d3
commit 1444aa3995
11 changed files with 621 additions and 91 deletions
+47
View File
@@ -86,6 +86,53 @@ export interface SeoSettingsRow extends AwRow {
gtm_id?: string | null;
}
export interface StatItem {
value: string;
label: string;
}
export interface SiteSettingsRow extends AwRow {
hero_badge?: string | null;
hero_title?: string | null;
hero_subtitle?: string | null;
hero_cta_primary_label?: string | null;
hero_cta_primary_href?: string | null;
hero_cta_secondary_label?: string | null;
hero_cta_secondary_href?: string | null;
hero_stats?: string[] | null; // each item JSON: {"value":"...","label":"..."}
services_eyebrow?: string | null;
services_title?: string | null;
services_description?: string | null;
projects_eyebrow?: string | null;
projects_title?: string | null;
projects_description?: string | null;
testimonials_eyebrow?: string | null;
testimonials_title?: string | null;
testimonials_description?: string | null;
cta_title?: string | null;
cta_description?: string | null;
cta_button_label?: string | null;
cta_button_href?: string | null;
contact_phone?: string | null;
contact_phone_raw?: string | null;
contact_email?: string | null;
contact_address?: string | null;
contact_hours_weekday?: string | null;
contact_hours_weekend?: string | null;
social_linkedin?: string | null;
social_instagram?: string | null;
social_twitter?: string | null;
social_facebook?: string | null;
footer_tagline?: string | null;
}
export interface ContactMessageRow extends AwRow {
name: string;
email: string;