Screenshots

Click a screenshot to open it full size, or explore everything in the live preview.
Quick start
You need Node.js 20 or newer and npm. Clone the repository, install the dependencies and start the dev server:
git clone https://github.com/codespanda/carewell-clinic.git
cd carewell-clinic
npm install
npm run devThen open http://localhost:5173. Changes reload instantly. You can also download the code as a ZIP from GitHub (Code → Download ZIP).
Scripts
npm run devStart the Vite dev server with hot reloadnpm run buildBuild the production site into dist/npm run previewServe the built dist/ folder locally to check itProject structure
Built with Vite and JavaScript. The parts you'll work in most:
src/
pages/ Home, About, Services, ServiceDetail, DoctorsPage, Packages,
Reports, Faq, Gallery, Careers, Blog, BlogPost, Contact,
Appointment, Legal (privacy & terms), NotFound
components/
layout/ Layout, Navbar and Footer around every page
sections/ Hero, InfoBar, ServicesGrid, WhyChoose, Doctors,
Testimonials, CtaBanner
ui/ shadcn/ui primitives: button, card, accordion, input…
shared.jsx Small shared pieces
data/
site.js Contact details, hours, navigation, services, doctors,
testimonials, blog posts and stats
extra.js Health packages, sample lab reports, gallery, jobs, FAQs
App.jsx Routes
index.css Theme colors and Tailwind v4 setup
public/CNAME Custom domain for GitHub PagesCustomise the content
src/data/site.jsContact details and opening hours, navigation, the 8 services, 8 doctors, 9 testimonials, 6 blog posts, stats and "why choose us" points. Service and blog pages are generated from it.src/data/extra.jsThe 6 health check-up packages and their prices, the sample lab reports, 8 gallery photos, 5 job openings and perks, and the 13 FAQs in 4 groups.src/data/site.js → imagesPhotos are loaded from Unsplash URLs. Put your own photos in public/ and point these entries at them before launch.src/pages/Appointment.jsxThe booking form's fields, services and time slots.src/pages/Reports.jsxThe report lookup. It searches the sample reports in extra.js; point findReports at your lab system's API before launch.index.htmlThe page title, description and favicon.Colors and theme
src/index.cssColors are CSS variables in :root (the teal brand is --primary: #14968f), mapped into Tailwind v4 with @theme inline. The shadcn/ui components in src/components/ui pick them up automatically.Pages and routing
React Router 6: routes are declared in src/App.jsx inside a shared Layout (navbar and footer). /services/:slug and /blog/:slug render from the entries in src/data/site.js, so adding a service or post adds its page.
Deployment
npm run build writes a static site to dist/, so it runs on any static host. The repository is set up for GitHub Pages:
- 1In the repository, open Settings → Pages and set Source to GitHub Actions.
- 2Push to the default branch. The workflow in .github/workflows/ builds the site and publishes it.
- 3public/CNAME holds the custom domain (carewellclinic.codespanda.com). Replace it with your own domain, or delete it to use the default github.io address.
npm run build with output folder dist.Good to know
- The appointment and contact forms validate and show a confirmation but don't send anything. Connect them to a form service, email API or booking system in src/pages/Appointment.jsx and src/pages/Contact.jsx.
- The lab report lookup uses sample data (try report ID CW-24101). Replace findReports in src/pages/Reports.jsx with a call to your lab system before going live.
- Every page shares the title set in index.html. For better SEO, give each page its own title and description, for example with react-helmet-async.
License
CareWell Clinic is free and released under the MIT license. Use it for personal and commercial projects, including client work, with no attribution required beyond keeping the license notice in the code.





