How abimanyu2515/gsap_landing_apple works
This is a React product-marketing page for MacBook, not a commerce or device-management backend. A visitor loads the app and moves through navigation, a hero, an interactive 3D product viewer, and editorial feature sections. The viewer selects model size and color through shared Zustand state, then displays the corresponding 3D model with studio lighting. Source excerpts show the app composition and viewer/model wiring; some listed page components were not sampled, so their internal behavior is not inferred.
Main entry points: App.jsx Page composition · index.js Page configuration · ProductViewer.jsx Product viewer · ModelSwitcher.jsx Model switcher
Components 17
Page experience
- React entry
src/main.jsx - Page composition
src/App.jsx - Navigation
src/Components/NavBar.jsx - Hero section
src/Components/Hero.jsx - Footer links
src/Components/Footer.jsx
Product storytelling
- Chip showcase
src/Components/Showcase.jsx - Performance story
src/Components/Performance.jsx - Feature highlights
src/Components/Highlights.jsx
3D product viewer
- Product viewer
src/Components/ProductViewer.jsx - Viewer state
src/store/index.js - Model switcher
src/Components/three/ModelSwitcher.jsx - Studio lighting
src/Components/three/StudioLights.jsx - 14-inch model
src/Components/models/Macbook-14.jsx - 16-inch model
src/Components/models/Macbook-16.jsx - MacBook model
src/Components/models/Macbook.jsx
Shared configuration
- Page configuration
src/constants/index.js
Other components
- Visitor
Connections 21
- Visitor → React entry: loads
src/main.jsx - React entry → Page composition: renders
src/main.jsx - Page composition → Navigation: renders
src/App.jsx - Page composition → Hero section: renders
src/App.jsx - Page composition → Product viewer: renders
src/App.jsx - Page composition → Chip showcase: renders
src/App.jsx - Page composition → Performance story: renders
src/App.jsx - Page composition → Feature highlights: renders
src/App.jsx - Page composition → Footer links: renders
src/App.jsx - Product viewer → Viewer state: reads and updates
src/Components/ProductViewer.jsx - Product viewer → Model switcher: renders
src/Components/ProductViewer.jsx - Product viewer → Studio lighting: renders
src/Components/ProductViewer.jsx - Model switcher → 14-inch model: renders
src/Components/three/ModelSwitcher.jsx - Model switcher → 16-inch model: renders
src/Components/three/ModelSwitcher.jsx - 14-inch model → Viewer state: reads color
src/Components/models/Macbook-14.jsx - 14-inch model → Page configuration: reads part list
src/Components/models/Macbook-14.jsx - 16-inch model → Viewer state: reads color
src/Components/models/Macbook-16.jsx - 16-inch model → Page configuration: reads part list
src/Components/models/Macbook-16.jsx - Navigation → Page configuration: reads links
src/Components/NavBar.jsx - Footer links → Page configuration: reads links
src/Components/Footer.jsx - Performance story → Page configuration: reads imagery
src/Components/Performance.jsx