A fast, mobile-first marketing site for Prime IVF Centre (Gurgaon · Dwarka, Delhi · Rewari), built as a React single-page app on a Hono backend.
| Section | File | Purpose |
|---|---|---|
| Hero + trust stats | frontend/components/Hero.tsx | Headline, 4.8★ Google rating, 10,000+ babies, centre list |
| About | frontend/components/About.tsx | Clinic story, credentials, tagline |
| Why choose Prime | frontend/components/WhyChoose.tsx | The six reasons, with inline SVG icons |
| Treatments | frontend/components/Treatments.tsx | 27 treatments in 5 filterable categories |
| Your journey | frontend/components/Journey.tsx | 7-step walkthrough of treatment |
| Doctors | frontend/components/Doctors.tsx | Dr. Nishi Singh, Dr. Surbhi Singh |
| Centres | frontend/components/Locations.tsx | Three addresses + international patients |
| Success stories | frontend/components/Stories.tsx | Links to testimonials, doctor speak, gallery, calculators |
| FAQs | frontend/components/Faq.tsx | Accordion, also emitted as FAQ schema for search |
| Appointment form | frontend/components/AppointmentForm.tsx | Lead capture, saved to SQLite |
| Footer | frontend/components/Footer.tsx | Contact, social, PCPNDT disclaimer |
All copy lives in one file: frontend/data/clinic.ts.
Phone numbers, addresses, treatments, FAQs, doctors, locations and the disclaimer are plain data —
edit them there and no component needs to change.
Rendering mermaid diagram...
index.ts ← Hono server: page shell, API, admin inbox
db.ts ← SQLite schema + queries for appointment requests
admin.tsx ← server-rendered lead inbox (token protected)
frontend/
root.tsx ← HTML shell: meta tags, MedicalClinic schema, asset stamping
index.tsx ← mounts <App />
data/clinic.ts ← ALL clinic content
components/ ← one component per page section
Frontend files are served at version-addressed, immutably-cached URLs, so repeat visits are fast and publishing busts the cache automatically.
The booking form posts to POST /api/appointments and each request is stored in this val's SQLite
database (appointments table). Required fields: full name and mobile number.
To read the leads, set an ADMIN_TOKEN and open:
/admin/appointments?token=YOUR_TOKEN
Without the token the page returns 503 (not configured) or 401 (wrong token). The page is
noindex and is not linked from the public site.
👉 Add ADMIN_TOKEN here: https://www.val.town/x/primeivfcentre007/prime-ivf-centre/environment-variables?key=ADMIN_TOKEN
- Real testimonials — the Success Stories section links out to your existing pages. Add 3–5
real patient quotes to
frontend/data/clinic.tsto show them inline. - Photographs — the design currently uses no images, so it loads instantly. Swap in real clinic and team photos when you have them.
- Email notification — have each new appointment request emailed to the care team.
- Individual treatment pages — the current site is one page; each treatment could become its own SEO-indexed page.
Every val is public. The footer links to /source, which redirects to the code.