How yashvardhantrivedi/cocktail-gsap works
This is a React cocktail-bar showcase: visitors move through an animated landing page, browse cocktail and mocktail listings, explore the bar’s story and craft, use a cocktail carousel, and find visit and contact details. App composes the page sections; each section owns its presentation and animations, while shared constants supply navigation and display content. The README documents responsive, scroll-driven effects; sampled components show SplitText, parallax, pinned masking, and video playback synced to scrolling. The graph reflects sampled calls and documented features, not unsampled implementation details.
Main entry points: App.jsx Page composition · index.js Display content · Navbar.jsx Navigation · Hero.jsx Animated hero
Components 11
Page composition
- React entry
src/main.jsx - Page composition
src/App.jsx
Brand experience
- Navigation
src/components/Navbar.jsx - Animated hero
src/components/Hero.jsx - Scroll video
public/videos/output.mp4 - Bar story
src/components/About.jsx - Craft showcase
src/components/Art.jsx - Visit and contact
src/components/Contact.jsx
Drink browsing
- Drink listings
src/components/Cocktails.jsx - Cocktail carousel
src/components/Menu.jsx
Shared content
- Display content
constants/index.js
Connections 14
- React entry → Page composition: renders
src/main.jsx - Page composition → Navigation: renders
src/App.jsx - Page composition → Animated hero: renders
src/App.jsx - Page composition → Drink listings: renders
src/App.jsx - Page composition → Bar story: renders
src/App.jsx - Page composition → Craft showcase: renders
src/App.jsx - Page composition → Cocktail carousel: renders
src/App.jsx - Page composition → Visit and contact: renders
src/App.jsx - Animated hero → Scroll video: loads
src/components/Hero.jsx - Navigation → Display content: reads links
src/components/Navbar.jsx - Drink listings → Display content: reads listings
src/components/Cocktails.jsx - Craft showcase → Display content: reads highlights
src/components/Art.jsx - Cocktail carousel → Display content: reads cocktails
src/components/Menu.jsx - Visit and contact → Display content: reads hours and socials
src/components/Contact.jsx