"use client"; import { motion, useScroll, useTransform, AnimatePresence } from "framer-motion"; import { useRef, useState } from "react"; import type { DemoData } from "@/data/demos"; import AnimatedCounter from "@/components/ui/AnimatedCounter"; const easeOutExpo = [0.16, 1, 0.3, 1] as [number, number, number, number]; const fadeUp = { hidden: { opacity: 0, y: 40 }, show: { opacity: 1, y: 0, transition: { duration: 0.7, ease: easeOutExpo } }, }; const stagger = { hidden: {}, show: { transition: { staggerChildren: 0.1 } }, }; export default function DentalTemplate({ data }: { data: DemoData }) { const { firma, istatistikler, hizmetler, projeler = [], yorumlar = [] } = data; const heroRef = useRef(null); const { scrollYProgress } = useScroll({ target: heroRef, offset: ["start start", "end start"] }); const heroY = useTransform(scrollYProgress, [0, 1], ["0%", "20%"]); const heroOpacity = useTransform(scrollYProgress, [0, 0.8], [1, 0]); const [activeYorum, setActiveYorum] = useState(0); const [menuOpen, setMenuOpen] = useState(false); const [showBookingModal, setShowBookingModal] = useState(false); return (
{/* ── HEADER ── */}
🦷 {firma.adi}
📞 {firma.telefon} setShowBookingModal(true)} className="text-xs font-black text-[#FAF7F2] bg-[#1E2E38] px-5 py-2.5 rounded-full hover:bg-[#121C22] transition-colors" whileHover={{ scale: 1.04 }} whileTap={{ scale: 0.97 }} > Contact Us
{/* Dropdown Menu */} {menuOpen && (

Navigasyon

{[ { label: "001 - Uyelik Programı", href: "#uyelik" }, { label: "002 - Hizmetler", href: "#hizmetler" }, { label: "003 - Portfolyo (Works)", href: "#works" }, { label: "004 - Yorumlar", href: "#yorumlar" }, { label: "005 - Randevu Al", href: "#randevu" } ].map(item => ( setMenuOpen(false)} className="font-display font-bold text-[#1E2E38] hover:text-[#D4AF37] transition-colors text-base" > {item.label} ))}
)}
{/* ── HERO SECTION ── */}
+
+
+
{firma.slogan} Seamless 🦷
Dental Care
A smooth and hassle-free dental care experience for a healthy and confident smile. setShowBookingModal(true)} className="inline-flex items-center gap-3 px-8 py-4 rounded-full bg-[#1E2E38] hover:bg-[#121C22] text-[#FAF7F2] font-black text-sm transition-all" whileHover={{ scale: 1.04, boxShadow: "0 10px 30px rgba(30, 46, 56, 0.15)" }} whileTap={{ scale: 0.97 }} > Book Now
{/* ── SECTION 001: SAVINGS BENTO ── */}
001 - Join Membership

Affordable Dental Care for Your Family

Unlock optimal dental wellness for your loved ones. Get massive savings on check-ups, cleaning, and specialized cosmetic treatments.

setShowBookingModal(true)} className="px-7 py-3.5 rounded-full bg-[#1E2E38] hover:bg-[#121C22] text-[#FAF7F2] font-black text-xs transition-colors" whileHover={{ scale: 1.04 }} whileTap={{ scale: 0.97 }} > Join Membership
{istatistikler[0]?.deger} +

{istatistikler[0]?.etiket}

{istatistikler[1]?.deger} +

{istatistikler[1]?.etiket}

{/* ── CORE SERVICES CARD ROW ── */}
{hizmetler.map((h, i) => (
{h.ikon}

{h.baslik}

{h.aciklama}

))}
{/* ── SECTION 002: OUR WORKS ── */}
002 - Our Works

A Healthy Smile
Starts Here

{projeler.map((p, i) => (
{p.ikon}

{p.baslik}

{p.aciklama}

))}
{/* ── YORUMLAR ── */}
003 - Patient Stories

Patient Experiences

{[...Array(yorumlar[activeYorum]?.puan)].map((_, i) => ( ))}

“{yorumlar[activeYorum]?.yorum}”

{yorumlar[activeYorum]?.emoji}

{yorumlar[activeYorum]?.yazar}

{yorumlar[activeYorum]?.tarih}

{yorumlar.map((_, i) => (
{/* ── RANDEVU AL ── */}
004 - Online Appointment

Appointment Request

Hayalinizdeki sağlıklı gülüşe kavuşmak için formu doldurun, sizi arayalım.

{[ { label: "Ad Soyad", placeholder: "Adınız Soyadınız", type: "text", full: false }, { label: "Telefon", placeholder: "05xx xxx xx xx", type: "tel", full: false }, { label: "E-posta", placeholder: "ornek@mail.com", type: "email", full: false }, { label: "Hizmet Türü", placeholder: "", type: "select", full: false }, { label: "Tercih Edilen Tarih", placeholder: "", type: "date", full: false }, { label: "Şikayetiniz / Notunuz", placeholder: "Belirtmek istediğiniz detaylar...", type: "text", full: true }, ].map((field, i) => (
{field.type === "select" ? ( ) : ( )}
))}
📅 Randevu Talep Et
{/* ── FOOTER ── */}

© 2026 {firma.adi}. Tüm hakları saklıdır.

Gizlilik Politikası · Çerez Ayarları

{/* ── BOOKING MODAL ── */} {showBookingModal && (

Hızlı İletişim

İletişim bilgilerinizi bırakın, en kısa sürede geri dönelim.

setShowBookingModal(false)} > Gönder
)}
); }