feat: TR reklam trafiği için anasayfa CRO optimizasyonu
Yeni bölümler ve component'ler: - WhatsAppFloat: sağ altta her sayfada görünen 'pulse' animasyonlu WhatsApp butonu - MobileCtaBar: mobilde alt sabit bar — Ara / WhatsApp / Teklif Al üç buton - TrustBand: hero altı 4 trust kartı (Google ★, proje sayısı, dönüş süresi, garanti) + Google rating + yorum sayısı satırı - LogoCloud: müşteri logoları grayscale strip - QuickLeadForm: ad + telefon iki alanlı inline mini form (anasayfada) - app/actions submitContact 'source' alanını destekliyor (quick lead → message zorunlu değil) - WhyUs: 4 USP kartı (Hızlı teslim, Yerel destek, Modern tech, Satış sonrası) - ProcessSteps: 4 adımlı 'nasıl çalışıyoruz' süreç akışı (numaralı timeline) Schema (JSON-LD): - OrganizationLd: LocalBusiness + Address + AggregateRating (Google review puanı/sayısı) - ServiceLd: hizmet detay sayfaları için - FaqLd: hizmet FAQ'leri için - BreadcrumbLd, ArticleLd: hazır Anasayfaya OrganizationLd ekli — Google Ads quality score + organic rich results. Performans: - REST GET çağrıları cache:'no-store' yerine next.revalidate=60 (ISR) - Public sayfalar artık static rendering — LCP düşer - Mutations ve session GET'ler hâlâ no-store site_settings yeni alanları (panelden yönetilebilir): - whatsapp_message (default WhatsApp opener) - client_logos[] (logo URL listesi) - trust_items[] (JSON: icon|value|label) - why_us[] (JSON: icon, title, description) - process_steps[] (JSON: title, description) - lead_form_title, lead_form_description - google_rating, google_review_count, google_review_url Admin /admin/site formuna yeni 'Conversion / reklam optimizasyonu', 'Neden Biz?' ve 'Süreç adımları' bölümleri eklendi. Mevcut anasayfa yapısı (üstten alta): 1. Hero 2. TrustBand (mini güven sinyalleri) 3. LogoCloud (varsa müşteri logoları) 4. Hızlı iletişim + QuickLeadForm (2 sütun: tel/WA CTA + mini form) 5. Hizmetler 6. WhyUs (Neden Biz?) 7. ProcessSteps (Nasıl çalışıyoruz?) 8. Projeler 9. Testimonials 10. CTA (Final + WhatsApp)
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
import { Icon } from "@/components/icon";
|
||||
import { SectionTitle } from "@/components/section-title";
|
||||
import type { SiteSettingsRow, WhyUsItem } from "@/lib/types";
|
||||
|
||||
const DEFAULT: WhyUsItem[] = [
|
||||
{
|
||||
icon: "Zap",
|
||||
title: "Hızlı teslim",
|
||||
description:
|
||||
"Standart kurumsal site 2-3 hafta içinde teslim. Sprint bazlı şeffaf takvim.",
|
||||
},
|
||||
{
|
||||
icon: "Award",
|
||||
title: "Kocaeli'de yerel destek",
|
||||
description:
|
||||
"İzmit ofisimizde yüz yüze görüşme imkanı. Yerel ekip, hızlı yanıt.",
|
||||
},
|
||||
{
|
||||
icon: "Code2",
|
||||
title: "Modern teknoloji",
|
||||
description:
|
||||
"Next.js, React, Appwrite gibi güncel stack. SEO, performans ve güvenlik standartlarında.",
|
||||
},
|
||||
{
|
||||
icon: "Headphones",
|
||||
title: "Satış sonrası destek",
|
||||
description:
|
||||
"Yayın sonrası 1 yıl ücretsiz teknik destek. WhatsApp üzerinden hızlı iletişim.",
|
||||
},
|
||||
];
|
||||
|
||||
function parse(items?: string[] | null): WhyUsItem[] {
|
||||
if (!items || items.length === 0) return DEFAULT;
|
||||
const out: WhyUsItem[] = [];
|
||||
for (const raw of items) {
|
||||
try {
|
||||
const obj = JSON.parse(raw) as Partial<WhyUsItem>;
|
||||
if (obj.title && obj.description)
|
||||
out.push({
|
||||
icon: obj.icon ?? "Sparkles",
|
||||
title: obj.title,
|
||||
description: obj.description,
|
||||
});
|
||||
} catch {
|
||||
/* ignore */
|
||||
}
|
||||
}
|
||||
return out.length > 0 ? out : DEFAULT;
|
||||
}
|
||||
|
||||
export function WhyUs({ settings }: { settings?: SiteSettingsRow | null }) {
|
||||
const items = parse(settings?.why_us);
|
||||
|
||||
return (
|
||||
<section className="py-20">
|
||||
<div className="mx-auto max-w-7xl px-6">
|
||||
<SectionTitle
|
||||
eyebrow="Neden Kovak Yazılım?"
|
||||
title="Reklam bütçenizin karşılığını alın"
|
||||
description="Hızlı, şeffaf ve uzun vadeli bir ortaklık — fark yaratan detaylar."
|
||||
/>
|
||||
<div className="mt-12 grid gap-6 sm:grid-cols-2 lg:grid-cols-4">
|
||||
{items.map((it, i) => (
|
||||
<article
|
||||
key={i}
|
||||
className="rounded-2xl border border-[var(--border)] bg-white p-6 transition hover:border-[var(--sky)]/40 hover:shadow-md"
|
||||
>
|
||||
<div className="flex size-12 items-center justify-center rounded-xl bg-gradient-to-br from-[var(--sky-50)] to-[var(--navy-50)] text-[var(--navy)]">
|
||||
<Icon name={it.icon} className="size-6" />
|
||||
</div>
|
||||
<h3 className="mt-5 text-base font-semibold text-[var(--navy)]">
|
||||
{it.title}
|
||||
</h3>
|
||||
<p className="mt-2 text-sm leading-relaxed text-[var(--muted)]">
|
||||
{it.description}
|
||||
</p>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user