/* ============ Interactive Home ============ */
const SERVES_PHRASES = [
'Serving Tricity, Haryana, Punjab, Himachal & Worldwide',
'Serving Chandigarh · Panchkula · Mohali',
'Serving Haryana · Punjab · Himachal Pradesh',
'Trusted Across North India & Worldwide',
'Serving Shimla, Hisar, Jind & Beyond',
];
function RotatingServes() {
const [idx, setIdx] = React.useState(0);
const [fade, setFade] = React.useState(true);
React.useEffect(() => {
const t = setInterval(() => { setFade(false); setTimeout(() => { setIdx(i => (i+1) % SERVES_PHRASES.length); setFade(true); }, 300); }, 4000);
return () => clearInterval(t);
}, []);
return {SERVES_PHRASES[idx]} ;
}
const ROTATING_PHRASES = [
'Personalized Fertility Treatment','Expert IVF Specialists','Trusted Fertility Care',
'Compassionate IVF Support','IVF Treatment Tailored to You','Comprehensive Fertility Solutions',
'Supporting Your Parenthood Journey','Leading Fertility Specialists','Modern IVF Technology & Care',
'Helping Families Grow','Fertility Care You Can Trust','Evidence-Based Fertility Treatment',
'Patient-Centered IVF Care','Experienced IVF Team'
];
function RotatingPhrase() {
const [idx, setIdx] = React.useState(0);
const [fade, setFade] = React.useState(true);
React.useEffect(() => {
const t = setInterval(() => { setFade(false); setTimeout(() => { setIdx(i => (i+1) % ROTATING_PHRASES.length); setFade(true); }, 300); }, 3500);
return () => clearInterval(t);
}, []);
return {ROTATING_PHRASES[idx]} ;
}
/* ---- cursor-parallax orbs ---- */
function HeroOrbs() {
const wrap = useRef(null);
useEffect(() => {
const el = wrap.current; if (!el) return;
const orbs = el.querySelectorAll('.orb');
const onMove = (e) => {
const cx = window.innerWidth/2, cy = window.innerHeight/2;
const dx = (e.clientX - cx)/cx, dy = (e.clientY - cy)/cy;
orbs.forEach((o,i)=>{
const depth = (i+1)*10;
o.style.transform = `translate(${dx*depth}px, ${dy*depth}px)`;
});
};
window.addEventListener('mousemove', onMove);
return () => window.removeEventListener('mousemove', onMove);
}, []);
return (
);
}
/* ---- rotating word ---- */
function RotatingWord({ words }) {
const [i, setI] = useState(0);
useEffect(() => {
const t = setInterval(()=>setI(v=>(v+1)%words.length), 2600);
return () => clearInterval(t);
}, []);
return (
{words.map((w,idx)=>(
{w}
))}
{words[0]}
);
}
/* ---- treatment finder quiz ---- */
function Finder() {
const f = D.finder;
const [pick, setPick] = useState(null);
const rec = pick!=null ? D.treatments.find(t=>t.slug===f.options[pick].rec) : null;
return (
Treatment finder
{f.question}
{f.intro}
{f.options.map((o,i)=>(
setPick(i)}>
{pick===i ? : null}
{o.label} {o.sub}
))}
);
}
/* ---- tabbed treatment explorer ---- */
function TreatExplorer() {
const [active, setActive] = useState(D.treatments[0].slug);
const t = D.treatments.find(x=>x.slug===active);
return (
{D.treatments.map(x=>(
setActive(x.slug)}>
{x.name}
))}
{t.full}
{t.name}
{t.overview.split('. ').slice(0,2).join('. ')}.
{t.duration}
{t.success} {t.successLabel.split('(')[0]}
);
}
/* ---- scrubbable process timeline ---- */
function ProcessTimeline() {
const steps = D.treatments.find(t=>t.slug==='ivf').process;
const [i, setI] = useState(0);
return (
{steps.map((s,idx)=>(
setI(idx)} aria-label={s.t}>
{idx+1}
))}
Step {i+1} of {steps.length}
{steps[i].t}
{steps[i].d}
setI(v=>Math.max(0,v-1))}>← Previous
setI(v=>Math.min(steps.length-1,v+1))}>Next step →
);
}
/* ---- draggable testimonial carousel ---- */
function Carousel() {
const track = useRef(null);
const scrollBy = (dir) => {
const el = track.current; if(!el) return;
el.scrollBy({ left: dir * (el.clientWidth*0.8), behavior:'smooth' });
};
return (
{D.testimonials.map((t,i)=>(
{t.name.charAt(0)}
{t.name}
{t.city} · {t.treatment}{t.baby?' · '+t.baby:''}
✓ Google
★★★★★
))}
scrollBy(-1)} aria-label="Previous">←
scrollBy(1)} aria-label="Next">→
);
}
/* ---- immersive photo gallery (real clinic + families) ---- */
function Gallery() {
const [lb, setLb] = useState(null);
const g = D.gallery;
return (
<>
{g.map((item,i)=>(
setLb(i)} aria-label={item.label}>
))}
{lb!==null && (
setLb(null)}>
setLb(null)}>×
{e.stopPropagation(); setLb((lb-1+g.length)%g.length);}}>←
e.stopPropagation()}>
{g[lb].label}
{e.stopPropagation(); setLb((lb+1)%g.length);}}>→
)}
>
);
}
/* ---- press wall: news clippings + drop slots ---- */
function PressWall() {
return (
As featured in the press
EVAA in the news
Two decades of headlines, features and thank-you notes. Drag your news print-outs onto the empty frames - they’ll stay.
{D.press.map((p,i)=>(
{p.img
?
: }
))}
);
}
/* ============ HOME ============ */
function Home() {
const c = D.clinic;
const doc = D.doctors[0];
return (
{/* HERO */}
Your journey to starts with honest care
Chandigarh’s most trusted IVF & fertility centre. Advanced technology, transparent
pricing, and a team that walks every step with you - warmly and honestly.
{D.stats.slice(0,3).map(s=>(
{s.label}
))}
{c.rating}
{c.reviews} Google reviews See all reviews ↗
window.scrollBy({top:window.innerHeight*0.8,behavior:'smooth'})} aria-label="Scroll down">
{/* MARQUEE */}
{[...Array(2)].map((_,r)=>(
{['1,500+ Babies Born','Trusted Fertility Care','20+ Years Experience','ART Certified Lab','ISAR Member','Transparent Pricing','No-Cost EMI','Care in Your Language'].map((m,i)=>(
{m}
))}
))}
{/* TAGLINE BAND (real EVAA promise) */}
Our promise
“It’s hard to wait around for something you know might never happen - but it’s even harder to give up when you know it’s everything you want.”
- The EVAA family, Chandigarh
{/* FINDER */}
Where do I start?
Not sure which treatment is right?
Take a guess out of it. Tell us where you are, and we’ll point you to a sensible first step.
{/* WHY */}
Why families choose EVAA
Honest, warm, world-class care
{D.whyUs.map((w,i)=>(
{w.title}
{w.text}
))}
{/* TREATMENTS EXPLORER */}
Our treatments
Complete fertility care, one team
Tap any treatment to explore it - then dive into the full details whenever you’re ready.
{/* PROCESS TIMELINE */}
How IVF works at EVAA
Your path, step by step
Click through each stage. No confusion, no surprises - just a clear, caring process.
{/* STATS */}
Success rates vary by age and diagnosis. Consult our team for a personalised assessment.
{/* DOCTOR FEATURE */}
{doc.years} years {doc.procedures} procedures
Your doctor
Meet Dr. Sakshi Sharma
{doc.qual}
{doc.bio}
{doc.spec.map(s=>{s} )}
Consultations in {doc.langs.join(', ')}
{/* IMMERSIVE GALLERY */}
Inside EVAA
Step inside our world
A calm, modern space in the heart of Manimajra - and the families who have walked out of it with their dreams in their arms.
{/* STORIES CAROUSEL */}
{/* VISIT */}
Visit our centre
Right in the heart of Chandigarh
Our centre in NAC Manimajra brings everything under one roof - consultations, our ART-certified
embryology lab, day-care theatre and recovery suites. {c.serves}.
Opening hours {c.hours} {c.sunday}
Call us {c.phones.join(' · ')}
{/* BLOG */}
);
}
Object.assign(window, { Home });