Public
IVF & fertility clinic website for Prime IVF Centre
healthcarereactwebsite
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

Prime IVF Centre — clinic website

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.

Open the live site

What's on the page

SectionFilePurpose
Hero + trust statsfrontend/components/Hero.tsxHeadline, 4.8★ Google rating, 10,000+ babies, centre list
Aboutfrontend/components/About.tsxClinic story, credentials, tagline
Why choose Primefrontend/components/WhyChoose.tsxThe six reasons, with inline SVG icons
Treatmentsfrontend/components/Treatments.tsx27 treatments in 5 filterable categories
Your journeyfrontend/components/Journey.tsx7-step walkthrough of treatment
Doctorsfrontend/components/Doctors.tsxDr. Nishi Singh, Dr. Surbhi Singh
Centresfrontend/components/Locations.tsxThree addresses + international patients
Success storiesfrontend/components/Stories.tsxLinks to testimonials, doctor speak, gallery, calculators
FAQsfrontend/components/Faq.tsxAccordion, also emitted as FAQ schema for search
Appointment formfrontend/components/AppointmentForm.tsxLead capture, saved to SQLite
Footerfrontend/components/Footer.tsxContact, social, PCPNDT disclaimer

Editing content

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.

How it works

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.

Appointment requests

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

Suggested next steps

  • Real testimonials — the Success Stories section links out to your existing pages. Add 3–5 real patient quotes to frontend/data/clinic.ts to 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.

View source

Every val is public. The footer links to /source, which redirects to the code.