// Hero — cinematic fullscreen const { useEffect, useRef, useState } = React; function HeroParallax() { const ref = useRef(null); useEffect(() => { const onScroll = () => { if (!ref.current) return; const y = window.scrollY; const layers = ref.current.querySelectorAll('[data-par]'); layers.forEach(l => { const f = parseFloat(l.dataset.par); l.style.transform = `translate3d(0, ${y * f}px, 0)`; }); }; window.addEventListener('scroll', onScroll, { passive: true }); return () => window.removeEventListener('scroll', onScroll); }, []); return ref; } function Hero({ headline }) { const ref = HeroParallax(); const lines = (headline || "Sevgi Taşan Beauty Studio").split(" "); return (
Güzelliğinize zarif bir dokunuş — uzman elinde, sakin bir atelyede.