# vinayaka2003/gym-website architecture

> Architecture diagram of the GitHub repository vinayaka2003/gym-website, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vinayaka2003/gym-website
- Repository: https://github.com/vinayaka2003/gym-website

## Overview

Goldstone Fitness is a marketing and contact website for its Bengaluru gyms. The home page assembles a visitor journey from promotional hero and branch selection through gym information, facilities, gallery, reviews, etiquette, FAQ and contact. The contact form validates locally and displays a success state; branch and contact actions expose phone, map and social links. The global layout adds site-wide navigation and interaction widgets. Evidence is limited to the supplied excerpts and SOURCE INDEX, so unsampled feature details and external-service behavior are not inferred.

Main entry points: [`app/page.js`](https://github.com/vinayaka2003/gym-website/blob/main/app/page.js) (Home page), [`app/components/sections/Hero/Hero.jsx`](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Hero/Hero.jsx) (Promotional hero), [`app/components/sections/Branches/Branches.jsx`](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Branches/Branches.jsx) (Branch finder), [`app/components/sections/Contact/Contact.jsx`](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Contact/Contact.jsx) (Contact form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site assembly"]
  node_home["Home page<br/>[page.js]"]
  node_layout["Global layout<br/>[layout.js]"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_mobilemenu["Mobile menu<br/>[MobileMenu.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_content["Gym information"]
  node_hero["Promotional hero<br/>[Hero.jsx]"]
  node_about["About gym<br/>[About.jsx]"]
  node_branches["Branch finder<br/>[Branches.jsx]"]
  node_facilities["Facilities<br/>[Facilities.jsx]"]
  node_training["Training guidance"]
  node_etiquette["Gym etiquette<br/>[Etiquette.jsx]"]
  node_gallery["Gallery<br/>[Gallery.jsx]"]
  node_gallerygrid["Gallery grid<br/>[GalleryGrid.jsx]"]
end

subgraph group_engagement["Visitor engagement"]
  node_testimonials["Testimonials<br/>[Testimonials.jsx]"]
  node_carousel["Testimonial carousel"]
  node_reviews["Google reviews<br/>[GoogleReviews.jsx]"]
  node_faq["FAQ<br/>[FAQ.jsx]"]
  node_faqaccordion["FAQ accordion<br/>[FAQAccordion.jsx]"]
  node_contact["Contact form<br/>[Contact.jsx]"]
end

subgraph group_shared["Shared interface"]
  node_analytics["Event tracking<br/>[track.js]"]
  node_countup["Animated counters<br/>[CountUpClient.jsx]"]
  node_container["Content container<br/>[Container.jsx]"]
  node_fadeup["Reveal animation<br/>[FadeUp.jsx]"]
end

node_visitor(("Site visitor"))
node_google(("Google Analytics"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_footer
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_branches
node_home -->|"renders"| node_facilities
node_home -->|"renders"| node_gallery
node_home -->|"loads dynamically"| node_testimonials
node_home -->|"loads dynamically"| node_reviews
node_home -->|"loads dynamically"| node_faq
node_home -->|"renders"| node_etiquette
node_home -->|"renders"| node_contact
node_visitor -->|"receives shell"| node_layout
node_layout -.->|"wraps page content"| node_navbar
node_facilities -->|"renders"| node_training
node_gallery -->|"renders"| node_gallerygrid
node_testimonials -->|"renders"| node_carousel
node_faq -->|"renders"| node_faqaccordion
node_reviews -->|"renders counters"| node_countup
node_branches -->|"tracks actions"| node_analytics
node_contact -->|"tracks submission"| node_analytics
node_hero -->|"tracks booking"| node_analytics
node_analytics -->|"dispatches events"| node_google
node_branches -->|"uses layout"| node_container
node_branches -->|"reveals content"| node_fadeup
node_contact -->|"uses layout"| node_container
node_contact -->|"reveals content"| node_fadeup
node_hero -->|"uses layout"| node_container
node_hero -->|"reveals content"| node_fadeup
node_navbar -->|"renders"| node_mobilemenu

click node_home "https://github.com/vinayaka2003/gym-website/blob/main/app/page.js"
click node_layout "https://github.com/vinayaka2003/gym-website/blob/main/app/layout.js"
click node_navbar "https://github.com/vinayaka2003/gym-website/blob/main/app/components/layout/Navbar/Navbar.jsx"
click node_mobilemenu "https://github.com/vinayaka2003/gym-website/blob/main/app/components/layout/MobileMenu/MobileMenu.jsx"
click node_footer "https://github.com/vinayaka2003/gym-website/blob/main/app/components/layout/Footer/Footer.jsx"
click node_hero "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Hero/Hero.jsx"
click node_about "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/About/About.jsx"
click node_branches "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Branches/Branches.jsx"
click node_facilities "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Facilities/Facilities.jsx"
click node_training "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Facilities/TrainingExperience.jsx"
click node_etiquette "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Etiquette/Etiquette.jsx"
click node_gallery "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Gallery/Gallery.jsx"
click node_gallerygrid "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Gallery/GalleryGrid.jsx"
click node_testimonials "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Testimonials/Testimonials.jsx"
click node_carousel "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Testimonials/TestimonialsCarousel.jsx"
click node_reviews "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/GoogleReviews/GoogleReviews.jsx"
click node_faq "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/FAQ/FAQ.jsx"
click node_faqaccordion "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/FAQ/FAQAccordion.jsx"
click node_contact "https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Contact/Contact.jsx"
click node_analytics "https://github.com/vinayaka2003/gym-website/blob/main/app/components/ui/Analytics/track.js"
click node_countup "https://github.com/vinayaka2003/gym-website/blob/main/app/components/ui/CountUpClient/CountUpClient.jsx"
click node_container "https://github.com/vinayaka2003/gym-website/blob/main/app/components/ui/Container/Container.jsx"
click node_fadeup "https://github.com/vinayaka2003/gym-website/blob/main/app/components/ui/Motion/FadeUp.jsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_layout,node_navbar,node_mobilemenu,node_footer toneBlue
class node_hero,node_about,node_branches,node_facilities,node_training,node_etiquette,node_gallery,node_gallerygrid toneAmber
class node_testimonials,node_carousel,node_reviews,node_faq,node_faqaccordion,node_contact toneMint
class node_analytics,node_countup,node_container,node_fadeup toneRose
class node_visitor,node_google toneIndigo
```

## Components

### Site assembly

- [Home page](https://github.com/vinayaka2003/gym-website/blob/main/app/page.js): `app/page.js`
- [Global layout](https://github.com/vinayaka2003/gym-website/blob/main/app/layout.js): `app/layout.js`
- [Navigation](https://github.com/vinayaka2003/gym-website/blob/main/app/components/layout/Navbar/Navbar.jsx): `app/components/layout/Navbar/Navbar.jsx`
- [Mobile menu](https://github.com/vinayaka2003/gym-website/blob/main/app/components/layout/MobileMenu/MobileMenu.jsx): `app/components/layout/MobileMenu/MobileMenu.jsx`
- [Footer](https://github.com/vinayaka2003/gym-website/blob/main/app/components/layout/Footer/Footer.jsx): `app/components/layout/Footer/Footer.jsx`

### Gym information

- [Promotional hero](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Hero/Hero.jsx): `app/components/sections/Hero/Hero.jsx`
- [About gym](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/About/About.jsx): `app/components/sections/About/About.jsx`
- [Branch finder](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Branches/Branches.jsx): `app/components/sections/Branches/Branches.jsx`
- [Facilities](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Facilities/Facilities.jsx): `app/components/sections/Facilities/Facilities.jsx`
- [Training guidance](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Facilities/TrainingExperience.jsx): `app/components/sections/Facilities/TrainingExperience.jsx`
- [Gym etiquette](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Etiquette/Etiquette.jsx): `app/components/sections/Etiquette/Etiquette.jsx`
- [Gallery](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Gallery/Gallery.jsx): `app/components/sections/Gallery/Gallery.jsx`
- [Gallery grid](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Gallery/GalleryGrid.jsx): `app/components/sections/Gallery/GalleryGrid.jsx`

### Visitor engagement

- [Testimonials](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Testimonials/Testimonials.jsx): `app/components/sections/Testimonials/Testimonials.jsx`
- [Testimonial carousel](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Testimonials/TestimonialsCarousel.jsx): `app/components/sections/Testimonials/TestimonialsCarousel.jsx`
- [Google reviews](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/GoogleReviews/GoogleReviews.jsx): `app/components/sections/GoogleReviews/GoogleReviews.jsx`
- [FAQ](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/FAQ/FAQ.jsx): `app/components/sections/FAQ/FAQ.jsx`
- [FAQ accordion](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/FAQ/FAQAccordion.jsx): `app/components/sections/FAQ/FAQAccordion.jsx`
- [Contact form](https://github.com/vinayaka2003/gym-website/blob/main/app/components/sections/Contact/Contact.jsx): `app/components/sections/Contact/Contact.jsx`

### Shared interface

- [Event tracking](https://github.com/vinayaka2003/gym-website/blob/main/app/components/ui/Analytics/track.js): `app/components/ui/Analytics/track.js`
- [Animated counters](https://github.com/vinayaka2003/gym-website/blob/main/app/components/ui/CountUpClient/CountUpClient.jsx): `app/components/ui/CountUpClient/CountUpClient.jsx`
- [Content container](https://github.com/vinayaka2003/gym-website/blob/main/app/components/ui/Container/Container.jsx): `app/components/ui/Container/Container.jsx`
- [Reveal animation](https://github.com/vinayaka2003/gym-website/blob/main/app/components/ui/Motion/FadeUp.jsx): `app/components/ui/Motion/FadeUp.jsx`

### Other components

- **Site visitor**
- **Google Analytics**

## Connections

- Site visitor → Home page: opens (evidence: `app/page.js`)
- Home page → Navigation: renders (evidence: `app/page.js`)
- Home page → Footer: renders (evidence: `app/page.js`)
- Home page → Promotional hero: renders (evidence: `app/page.js`)
- Home page → About gym: renders (evidence: `app/page.js`)
- Home page → Branch finder: renders (evidence: `app/page.js`)
- Home page → Facilities: renders (evidence: `app/page.js`)
- Home page → Gallery: renders (evidence: `app/page.js`)
- Home page → Testimonials: loads dynamically (evidence: `app/page.js`)
- Home page → Google reviews: loads dynamically (evidence: `app/page.js`)
- Home page → FAQ: loads dynamically (evidence: `app/page.js`)
- Home page → Gym etiquette: renders (evidence: `app/page.js`)
- Home page → Contact form: renders (evidence: `app/page.js`)
- Site visitor → Global layout: receives shell (evidence: `app/layout.js`)
- Global layout → Navigation: wraps page content
- Facilities → Training guidance: renders (evidence: `app/components/sections/Facilities/Facilities.jsx`)
- Gallery → Gallery grid: renders (evidence: `app/components/sections/Gallery/Gallery.jsx`)
- Testimonials → Testimonial carousel: renders (evidence: `app/components/sections/Testimonials/Testimonials.jsx`)
- FAQ → FAQ accordion: renders (evidence: `app/components/sections/FAQ/FAQ.jsx`)
- Google reviews → Animated counters: renders counters (evidence: `app/components/sections/GoogleReviews/GoogleReviews.jsx`)
- Branch finder → Event tracking: tracks actions (evidence: `app/components/sections/Branches/Branches.jsx`)
- Contact form → Event tracking: tracks submission (evidence: `app/components/sections/Contact/Contact.jsx`)
- Promotional hero → Event tracking: tracks booking (evidence: `app/components/sections/Hero/Hero.jsx`)
- Event tracking → Google Analytics: dispatches events (evidence: `app/components/ui/Analytics/track.js`)
- Branch finder → Content container: uses layout (evidence: `app/components/sections/Branches/Branches.jsx`)
- Branch finder → Reveal animation: reveals content (evidence: `app/components/sections/Branches/Branches.jsx`)
- Contact form → Content container: uses layout (evidence: `app/components/sections/Contact/Contact.jsx`)
- Contact form → Reveal animation: reveals content (evidence: `app/components/sections/Contact/Contact.jsx`)
- Promotional hero → Content container: uses layout (evidence: `app/components/sections/Hero/Hero.jsx`)
- Promotional hero → Reveal animation: reveals content (evidence: `app/components/sections/Hero/Hero.jsx`)
- Navigation → Mobile menu: renders (evidence: `app/components/layout/Navbar/Navbar.jsx`)
