How gireeshkumarreddy/mogu-mogu-website works
This is a React marketing site for Mogu Mogu drinks. Visitors browse flavour and brand-story sections, inspect product reveals, and choose a flavour through a dialog or selector. The App component owns page composition and shared selection/dialog state; motion and asset modules support the experience. The README is empty, so product capabilities are inferred from the sampled source and source index; unsampled component internals are not assumed.
Main entry points: App.tsx Page orchestration · FlavourDialog.tsx Flavour dialog · Picture.tsx Responsive picture · HeroCheers.tsx Cheers hero
Components 22
Page experience
- Page orchestration
src/App.tsx - Site header
src/components/SiteHeader.tsx - Cheers hero
src/components/HeroCheers.tsx - Benefits band
src/components/BenefitsBand.tsx - Tropical story
src/components/TropicalStory.tsx - Site footer
src/components/SiteFooter.tsx
Flavour exploration
- Flavour grid
src/components/FlavourGrid.tsx - Flavour card
src/components/FlavourCard.tsx - Flavour dialog
src/components/FlavourDialog.tsx - Product reveal
src/components/ProductReveal.tsx - Flavour selector
src/components/FlavourSelector.tsx
Content and assets
- Flavour catalog
src/data/flavours.ts - Site copy
src/data/siteContent.ts - Responsive picture
src/components/Picture.tsx - Asset helpers
src/data/assets.ts - Asset manifest
src/data/assetManifest.json
Motion and navigation
- Motion preferences
src/motion/MotionContext.tsx - Anchor navigation
src/motion/navigation.ts - Hero timeline
src/motion/heroTimeline.ts - Reveal animations
src/motion/useReveal.ts - GSAP adapter
src/motion/gsap.ts
Other components
- Site visitor
Connections 43
- Site visitor → Page orchestration: views site
- Page orchestration → Site header: renders
src/App.tsx - Page orchestration → Cheers hero: renders
src/App.tsx - Page orchestration → Benefits band: renders
src/App.tsx - Page orchestration → Flavour grid: renders
src/App.tsx - Page orchestration → Product reveal: renders
src/App.tsx - Page orchestration → Tropical story: renders
src/App.tsx - Page orchestration → Flavour selector: renders
src/App.tsx - Page orchestration → Site footer: renders
src/App.tsx - Page orchestration → Flavour dialog: renders
src/App.tsx - Page orchestration → Motion preferences: provides motion
src/App.tsx - Flavour grid → Flavour card: renders cards
src/components/FlavourGrid.tsx - Flavour grid → Flavour dialog: opens via callback
src/App.tsx - Product reveal → Flavour dialog: opens via callback
src/App.tsx - Flavour selector → Flavour dialog: opens via callback
src/App.tsx - Flavour dialog → Page orchestration: selects flavour
src/App.tsx - Site header → Anchor navigation: navigates anchors
src/components/SiteHeader.tsx - Cheers hero → Anchor navigation: registers finisher
src/components/HeroCheers.tsx - Product reveal → Anchor navigation: listens for navigation
src/components/ProductReveal.tsx - Cheers hero → Hero timeline: builds timeline
src/components/HeroCheers.tsx - Hero timeline → GSAP adapter: uses animation engine
src/motion/heroTimeline.ts - Anchor navigation → GSAP adapter: checks motion state
src/motion/navigation.ts - Motion preferences → Site visitor: persists preference
src/motion/MotionContext.tsx - Benefits band → Reveal animations: reveals on scroll
src/components/BenefitsBand.tsx - Tropical story → Reveal animations: reveals on scroll
src/components/TropicalStory.tsx - Reveal animations → GSAP adapter: animates elements
src/motion/useReveal.ts - Flavour card → Flavour catalog: reads flavour data
src/components/FlavourCard.tsx - Flavour dialog → Flavour catalog: reads flavour data
src/components/FlavourDialog.tsx - Flavour grid → Flavour catalog: reads flavour data
src/components/FlavourGrid.tsx - Flavour selector → Flavour catalog: reads flavour data
src/components/FlavourSelector.tsx - Product reveal → Flavour catalog: reads flavour data
src/components/ProductReveal.tsx - Site header → Site copy: reads navigation copy
src/components/SiteHeader.tsx - Cheers hero → Site copy: reads hero copy
src/components/HeroCheers.tsx - Benefits band → Site copy: reads benefits copy
src/components/BenefitsBand.tsx - Tropical story → Site copy: reads story copy
src/components/TropicalStory.tsx - Site footer → Site copy: reads footer copy
src/components/SiteFooter.tsx - Responsive picture → Asset helpers: selects image sources
src/components/Picture.tsx - Asset helpers → Asset manifest: reads asset metadata
src/data/assets.ts - Cheers hero → Responsive picture: renders imagery
src/components/HeroCheers.tsx - Flavour dialog → Responsive picture: renders imagery
src/components/FlavourDialog.tsx - Product reveal → Responsive picture: renders product imagery
src/components/ProductReveal.tsx - Flavour card → Responsive picture: renders imagery
src/components/FlavourCard.tsx - Flavour selector → Responsive picture: renders imagery
src/components/FlavourSelector.tsx