# abimanyu2515/gsap_landing_apple architecture

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

- Interactive diagram: https://gitdiagram.com/abimanyu2515/gsap_landing_apple
- Repository: https://github.com/abimanyu2515/gsap_landing_apple

## Overview

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: [`src/App.jsx`](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/App.jsx) (Page composition), [`src/constants/index.js`](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/constants/index.js) (Page configuration), [`src/Components/ProductViewer.jsx`](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/ProductViewer.jsx) (Product viewer), [`src/Components/three/ModelSwitcher.jsx`](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/three/ModelSwitcher.jsx) (Model switcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Page experience"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Page composition<br/>[App.jsx]"]
  node_navigation["Navigation<br/>[NavBar.jsx]"]
  node_hero["Hero section<br/>[Hero.jsx]"]
  node_footer["Footer links<br/>[Footer.jsx]"]
end

subgraph group_editorial["Product storytelling"]
  node_showcase["Chip showcase<br/>[Showcase.jsx]"]
  node_performance["Performance story<br/>[Performance.jsx]"]
  node_highlights["Feature highlights<br/>[Highlights.jsx]"]
end

subgraph group_viewer["3D product viewer"]
  node_viewer["Product viewer<br/>[ProductViewer.jsx]"]
  node_state["Viewer state<br/>[index.js]"]
  node_switcher["Model switcher<br/>[ModelSwitcher.jsx]"]
  node_lights["Studio lighting<br/>[StudioLights.jsx]"]
  node_model14["14-inch model<br/>[Macbook-14.jsx]"]
  node_model16["16-inch model<br/>[Macbook-16.jsx]"]
  node_modelbase["MacBook model<br/>[Macbook.jsx]"]
end

subgraph group_shared["Shared configuration"]
  node_config["Page configuration<br/>[index.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"loads"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_navigation
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_viewer
node_app -->|"renders"| node_showcase
node_app -->|"renders"| node_performance
node_app -->|"renders"| node_highlights
node_app -->|"renders"| node_footer
node_viewer -->|"reads and updates"| node_state
node_viewer -->|"renders"| node_switcher
node_viewer -->|"renders"| node_lights
node_switcher -->|"renders"| node_model14
node_switcher -->|"renders"| node_model16
node_model14 -->|"reads color"| node_state
node_model14 -->|"reads part list"| node_config
node_model16 -->|"reads color"| node_state
node_model16 -->|"reads part list"| node_config
node_navigation -->|"reads links"| node_config
node_footer -->|"reads links"| node_config
node_performance -->|"reads imagery"| node_config

click node_entry "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/main.jsx"
click node_app "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/App.jsx"
click node_navigation "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/NavBar.jsx"
click node_hero "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/Hero.jsx"
click node_showcase "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/Showcase.jsx"
click node_performance "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/Performance.jsx"
click node_highlights "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/Highlights.jsx"
click node_footer "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/Footer.jsx"
click node_viewer "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/ProductViewer.jsx"
click node_state "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/store/index.js"
click node_switcher "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/three/ModelSwitcher.jsx"
click node_lights "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/three/StudioLights.jsx"
click node_model14 "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/models/Macbook-14.jsx"
click node_model16 "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/models/Macbook-16.jsx"
click node_modelbase "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/models/Macbook.jsx"
click node_config "https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/constants/index.js"

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_entry,node_app,node_navigation,node_hero,node_footer toneBlue
class node_showcase,node_performance,node_highlights toneAmber
class node_viewer,node_state,node_switcher,node_lights,node_model14,node_model16,node_modelbase toneMint
class node_config toneRose
class node_visitor toneIndigo
```

## Components

### Page experience

- [React entry](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/main.jsx): `src/main.jsx`
- [Page composition](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/App.jsx): `src/App.jsx`
- [Navigation](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/NavBar.jsx): `src/Components/NavBar.jsx`
- [Hero section](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/Hero.jsx): `src/Components/Hero.jsx`
- [Footer links](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/Footer.jsx): `src/Components/Footer.jsx`

### Product storytelling

- [Chip showcase](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/Showcase.jsx): `src/Components/Showcase.jsx`
- [Performance story](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/Performance.jsx): `src/Components/Performance.jsx`
- [Feature highlights](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/Highlights.jsx): `src/Components/Highlights.jsx`

### 3D product viewer

- [Product viewer](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/ProductViewer.jsx): `src/Components/ProductViewer.jsx`
- [Viewer state](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/store/index.js): `src/store/index.js`
- [Model switcher](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/three/ModelSwitcher.jsx): `src/Components/three/ModelSwitcher.jsx`
- [Studio lighting](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/three/StudioLights.jsx): `src/Components/three/StudioLights.jsx`
- [14-inch model](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/models/Macbook-14.jsx): `src/Components/models/Macbook-14.jsx`
- [16-inch model](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/models/Macbook-16.jsx): `src/Components/models/Macbook-16.jsx`
- [MacBook model](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/Components/models/Macbook.jsx): `src/Components/models/Macbook.jsx`

### Shared configuration

- [Page configuration](https://github.com/abimanyu2515/gsap_landing_apple/blob/main/src/constants/index.js): `src/constants/index.js`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: loads (evidence: `src/main.jsx`)
- React entry → Page composition: renders (evidence: `src/main.jsx`)
- Page composition → Navigation: renders (evidence: `src/App.jsx`)
- Page composition → Hero section: renders (evidence: `src/App.jsx`)
- Page composition → Product viewer: renders (evidence: `src/App.jsx`)
- Page composition → Chip showcase: renders (evidence: `src/App.jsx`)
- Page composition → Performance story: renders (evidence: `src/App.jsx`)
- Page composition → Feature highlights: renders (evidence: `src/App.jsx`)
- Page composition → Footer links: renders (evidence: `src/App.jsx`)
- Product viewer → Viewer state: reads and updates (evidence: `src/Components/ProductViewer.jsx`)
- Product viewer → Model switcher: renders (evidence: `src/Components/ProductViewer.jsx`)
- Product viewer → Studio lighting: renders (evidence: `src/Components/ProductViewer.jsx`)
- Model switcher → 14-inch model: renders (evidence: `src/Components/three/ModelSwitcher.jsx`)
- Model switcher → 16-inch model: renders (evidence: `src/Components/three/ModelSwitcher.jsx`)
- 14-inch model → Viewer state: reads color (evidence: `src/Components/models/Macbook-14.jsx`)
- 14-inch model → Page configuration: reads part list (evidence: `src/Components/models/Macbook-14.jsx`)
- 16-inch model → Viewer state: reads color (evidence: `src/Components/models/Macbook-16.jsx`)
- 16-inch model → Page configuration: reads part list (evidence: `src/Components/models/Macbook-16.jsx`)
- Navigation → Page configuration: reads links (evidence: `src/Components/NavBar.jsx`)
- Footer links → Page configuration: reads links (evidence: `src/Components/Footer.jsx`)
- Performance story → Page configuration: reads imagery (evidence: `src/Components/Performance.jsx`)
