A modern, responsive fitness gym website built with Astro, featuring a clean design and comprehensive information about gym facilities, classes, pricing, and more.
- Modern Design: Clean, responsive UI built with Tailwind CSS
- Fast Performance: Static site generation with Astro for optimal loading speeds
- Comprehensive Content:
- Homepage with hero section, features, statistics, and testimonials
- About page with gym history and trainer profiles
- Classes page with detailed class information and schedules
- Pricing page with membership plans
- Contact page with form and location information
- Responsive Layout: Mobile-first design that works on all devices
- Accessible: Built with accessibility best practices
- SEO Optimized: Proper meta tags and semantic HTML
- Node.js 18+ and npm (or yarn/pnpm)
- Clone the repository:
git clone https://github.com/yourusername/astro-gym-fitness-website.git
cd astro-gym-fitness-website- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and navigate to
http://localhost:4321
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
/
βββ public/
β βββ favicon.svg # Site favicon
βββ src/
β βββ assets/ # Images and static assets
β βββ components/ # Astro components
β β βββ Classes.astro
β β βββ ClassSchedule.astro
β β βββ ContactForm.astro
β β βββ Facilities.astro
β β βββ FAQ.astro
β β βββ Features.astro
β β βββ Footer.astro
β β βββ Header.astro
β β βββ Hero.astro
β β βββ PricingPlans.astro
β β βββ Statistics.astro
β β βββ SuccessStories.astro
β β βββ Testimonials.astro
β βββ data/
β β βββ siteData.ts # Site configuration and data
β βββ layouts/
β β βββ Layout.astro # Main layout component
β βββ pages/ # Route pages
β β βββ index.astro # Homepage
β β βββ about.astro # About page
β β βββ classes.astro # Classes page
β β βββ contact.astro # Contact page
β β βββ pricing.astro # Pricing page
β β βββ 404.astro # 404 error page
β βββ styles/
β βββ global.css # Global styles
βββ astro.config.mjs # Astro configuration
βββ package.json # Project dependencies
βββ tsconfig.json # TypeScript configuration
Edit src/data/siteData.ts to customize:
- Gym name and tagline
- Contact information (address, phone, email)
- Social media links
- Navigation menu
- Features, classes, pricing plans
- Testimonials and success stories
- FAQs and schedules
The project uses Tailwind CSS for styling. You can:
- Modify
src/styles/global.cssfor global styles - Use Tailwind utility classes directly in components
- Customize Tailwind configuration (if needed)
- Create a new
.astrofile insrc/pages/ - The file name becomes the route (e.g.,
services.astroβ/services) - Import and use the
Layoutcomponent fromsrc/layouts/Layout.astro
npm run buildThis creates a dist/ folder with your static site ready for deployment.
Vercel:
npm i -g vercel
vercelNetlify:
- Connect your repository to Netlify
- Set build command:
npm run build - Set publish directory:
dist
GitHub Pages:
- Update
astro.config.mjswith your base URL - Use GitHub Actions or deploy manually
Other Platforms:
- Any static hosting service (Cloudflare Pages, AWS S3, etc.)
- Astro - Web framework for building fast, content-focused websites
- Tailwind CSS - Utility-first CSS framework
- TypeScript - Typed JavaScript
- Remix Icon - Icon library
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please read our Code of Conduct first, then:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
If you discover a security vulnerability, please see our Security Policy for information on how to report it.
For questions or support, please contact:
- Email: info@fitzonegym.com
- Website: [Your Website URL]
- Astro team for the amazing framework
- Tailwind CSS for the utility-first CSS framework
- Remix Icon for the beautiful icons
- All contributors and users of this project
Made with β€οΈ for fitness enthusiasts
