A premium, multi-page React application conceptualized for an elite gym and fitness facility. Built with Vite for blazing fast performance, it features a highly dynamic, user-centric interface across multiple landing pages representing fitness plans, services, and pricing models.
[https://gym-promo-website.vercel.app/]
Local Dev Server: [http://localhost:5173]
- Framework: React 18
- Routing: React Router DOM (v6.15+)
- Build Tool: Vite
- Styling: Vanilla CSS with dynamic CSS variables, Flexbox/Grid patterns
- Tooling: TypeScript (strict settings) with standard JS/JSX
- Multi-Page Architecture:
/personal-training,/group-classes,/modern-equipment,/cardio-health,/pricing. - Dark/Light Mode: Global toggle via navigation bar.
- Integrated Program Search: Real-time filtering with scroll-to results.
- Intersection Observer Animations:
useInViewcustom hooks for elegant fade-up animations. - Simulated API Form Handling: Contact form with validation, loading states, and fetch to mock API (
jsonplaceholder). - Anchor Smooth Scrolling: Seamless navigation to internal anchors.
Ensure Node.js is installed (includes NPM).
git clone https://github.com/your user name/gym-promo-website
cd gym-promo-website
npm installnpm run devVisit http://localhost:5173 in your browser.
npm run build
npm run preview- Production build will be in
/dist.
npm run dev– Runs Vite dev server with HMRnpm run build– Production build in/distnpm run preview– Preview production build locally
Issues, features, and pull requests are welcome. Feel free to contribute!