Website for Flourish Women's Clinic, a specialist gynaecological and obstetric practice in Pretoria, South Africa, led by Dr Bob Mupier (MBChB, FCOG SA, MMED O&G). Built as a professional, performant, and SEO-optimised React SPA with a focus on user experience and accessibility.
- Service Pages — Hysteroscopy, Laparoscopy, Infertility & IUI with FAQs, benefits, and step-by-step process sections
- Gallery — Masonry grid with category filtering, skeleton loaders, and full-screen lightbox with keyboard navigation
- Booking Form — Real form submission via Formspree with validation, loading states, and success/error feedback
- Scroll-Aware Navbar — Active section tracking via IntersectionObserver with cross-page section navigation
- Back To Top — SVG scroll progress ring with spring-physics animation
- SEO — Structured JSON-LD (MedicalBusiness + Physician schema), Open Graph, Twitter Cards, geo meta tags
- Custom Hooks —
useScrolled,useCursor,useFadeIn,useContactForm,useTestimonials - Fully Responsive — Mobile-first across all pages and components
| Layer | Technology |
|---|---|
| Framework | React 18 |
| Build Tool | Vite 5 |
| Styling | SCSS (BEM architecture) |
| Routing | React Router 6 |
| Icons | FontAwesome 6 (SVG core) |
| Forms | Formspree |
| Fonts | Playfair Display, Cormorant Garamond, DM Sans |
src/
├── assets/
│ └── images/
│ └── gallery/ # 15 gallery images
├── components/
│ ├── layout/
│ │ ├── Navbar/
│ │ ├── TopBar/
│ │ └── Footer/
│ ├── sections/
│ │ ├── Hero/
│ │ ├── About/
│ │ ├── Services/
│ │ ├── AdditionalServices/
│ │ ├── WhyUs/
│ │ ├── Testimonials/
│ │ └── Contact/
│ └── ui/
│ └── BackToTop/
├── hooks/
│ ├── useScrolled.js
│ ├── useCursor.js
│ ├── useFadeIn.js
│ ├── useContactForm.js
│ └── useTestimonials.js
└── pages/
├── HomePage/
├── TheDoctorPage/
├── ClinicPage/
├── GalleryPage/
├── HysteroscopyPage/
├── LaparoscopyPage/
└── InfertilityIUIPage/
- Node.js 18+
- npm 9+
# Clone the repo
git clone https://github.com/your-username/flourish-womens-clinic.git
cd flourish-womens-clinic
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Add your Formspree ID to .env
# Start dev server
npm run devnpm run build
npm run preview| Variable | Description | Required |
|---|---|---|
VITE_FORMSPREE_ID |
Formspree form ID for contact form | Yes |
Get a free Formspree ID at formspree.io.
| Route | Page |
|---|---|
/ |
Home |
/the-doctor |
Dr Bob Mupier Profile |
/clinic |
About the Clinic |
/gallery |
Photo Gallery |
/services/hysteroscopy |
Hysteroscopy |
/services/laparoscopy |
Laparoscopy |
/services/infertility-iui |
Infertility & IUI |
- Design & Development — Built with React + Vite
- Clinical Content — Flourish Women's Clinic, Dr Bob Mupier
- Icons — FontAwesome
- Form Handling — Formspree
MIT © Flourish Women's Clinic
---
**`LICENSE`**
MIT License
Copyright (c) 2026 Flourish Women's Clinic
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
