# codewithjayesh/3d_joy architecture

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

- Interactive diagram: https://gitdiagram.com/codewithjayesh/3d_joy
- Repository: https://github.com/codewithjayesh/3d_joy

## Overview

This is a React single-page 3D product showcase. Visitors navigate informational and showcase pages while a persistent WebGL scene displays an interactive Porsche model; scrolling drives its rotation. The graph separates application routing, the 3D experience, and page content. Source evidence confirms the shell and scene wiring; unsampled pages are included as routed capabilities, but their internal behavior is not inferred.

Main entry points: [`src/App.jsx`](https://github.com/codewithjayesh/3d_joy/blob/main/src/App.jsx) (Routes and shell), [`src/components/GlassPanel.jsx`](https://github.com/codewithjayesh/3d_joy/blob/main/src/components/GlassPanel.jsx) (Glass panels), [`src/components/Scene.jsx`](https://github.com/codewithjayesh/3d_joy/blob/main/src/components/Scene.jsx) (3D scene), [`src/main.jsx`](https://github.com/codewithjayesh/3d_joy/blob/main/src/main.jsx) (React bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_bootstrap["React bootstrap<br/>[main.jsx]"]
  node_app["Routes and shell<br/>[App.jsx]"]
  node_header["Header<br/>[Header.jsx]"]
  node_navigation["Navigation menu<br/>[NavMenu.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_visual["3D experience"]
  node_scene["3D scene<br/>[Scene.jsx]"]
  node_scroll["Scroll progress"]
  node_model["Porsche model"]
end

subgraph group_content["Showcase content"]
  node_home["Home page<br/>[Home.jsx]"]
  node_about["About page<br/>[About.jsx]"]
  node_models["Models page<br/>[Models.jsx]"]
  node_gallery["Gallery page<br/>[Gallery.jsx]"]
  node_services["Services page<br/>[Services.jsx]"]
  node_team["Team page<br/>[Team.jsx]"]
  node_contact["Contact page<br/>[Contact.jsx]"]
  node_panels["Glass panels<br/>[GlassPanel.jsx]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens site"| node_bootstrap
node_bootstrap -->|"renders"| node_app
node_app -->|"renders"| node_scene
node_app -->|"renders"| node_header
node_app -->|"renders"| node_footer
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_models
node_app -->|"routes to"| node_gallery
node_app -->|"routes to"| node_services
node_app -->|"routes to"| node_team
node_app -->|"routes to"| node_contact
node_header -->|"renders"| node_navigation
node_scene -->|"reads progress"| node_scroll
node_scene -->|"loads asset"| node_model
node_home -->|"renders"| node_panels
node_about -->|"renders"| node_panels
node_services -->|"renders"| node_panels
node_team -->|"renders"| node_panels
node_contact -->|"renders"| node_panels
node_models -->|"renders"| node_panels
node_gallery -->|"renders"| node_panels

click node_bootstrap "https://github.com/codewithjayesh/3d_joy/blob/main/src/main.jsx"
click node_app "https://github.com/codewithjayesh/3d_joy/blob/main/src/App.jsx"
click node_header "https://github.com/codewithjayesh/3d_joy/blob/main/src/components/Header.jsx"
click node_navigation "https://github.com/codewithjayesh/3d_joy/blob/main/src/components/NavMenu.jsx"
click node_footer "https://github.com/codewithjayesh/3d_joy/blob/main/src/components/Footer.jsx"
click node_scene "https://github.com/codewithjayesh/3d_joy/blob/main/src/components/Scene.jsx"
click node_scroll "https://github.com/codewithjayesh/3d_joy/blob/main/src/hooks/useScrollProgress.js"
click node_model "https://github.com/codewithjayesh/3d_joy/blob/main/public/model/free_porsche_911_carrera_4s.glb"
click node_home "https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Home.jsx"
click node_about "https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/About.jsx"
click node_models "https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Models.jsx"
click node_gallery "https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Gallery.jsx"
click node_services "https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Services.jsx"
click node_team "https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Team.jsx"
click node_contact "https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Contact.jsx"
click node_panels "https://github.com/codewithjayesh/3d_joy/blob/main/src/components/GlassPanel.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_bootstrap,node_app,node_header,node_navigation,node_footer toneBlue
class node_scene,node_scroll,node_model toneAmber
class node_home,node_about,node_models,node_gallery,node_services,node_team,node_contact,node_panels toneMint
class node_visitor toneIndigo
```

## Components

### Application shell

- [React bootstrap](https://github.com/codewithjayesh/3d_joy/blob/main/src/main.jsx): `src/main.jsx`
- [Routes and shell](https://github.com/codewithjayesh/3d_joy/blob/main/src/App.jsx): `src/App.jsx`
- [Header](https://github.com/codewithjayesh/3d_joy/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Navigation menu](https://github.com/codewithjayesh/3d_joy/blob/main/src/components/NavMenu.jsx): `src/components/NavMenu.jsx`
- [Footer](https://github.com/codewithjayesh/3d_joy/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### 3D experience

- [3D scene](https://github.com/codewithjayesh/3d_joy/blob/main/src/components/Scene.jsx): `src/components/Scene.jsx`
- [Scroll progress](https://github.com/codewithjayesh/3d_joy/blob/main/src/hooks/useScrollProgress.js): `src/hooks/useScrollProgress.js`
- [Porsche model](https://github.com/codewithjayesh/3d_joy/blob/main/public/model/free_porsche_911_carrera_4s.glb): `public/model/free_porsche_911_carrera_4s.glb`

### Showcase content

- [Home page](https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [About page](https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/About.jsx): `src/pages/About.jsx`
- [Models page](https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Models.jsx): `src/pages/Models.jsx`
- [Gallery page](https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Gallery.jsx): `src/pages/Gallery.jsx`
- [Services page](https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Services.jsx): `src/pages/Services.jsx`
- [Team page](https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Team.jsx): `src/pages/Team.jsx`
- [Contact page](https://github.com/codewithjayesh/3d_joy/blob/main/src/pages/Contact.jsx): `src/pages/Contact.jsx`
- [Glass panels](https://github.com/codewithjayesh/3d_joy/blob/main/src/components/GlassPanel.jsx): `src/components/GlassPanel.jsx`

### Other components

- **Site visitor**

## Connections

- Site visitor → React bootstrap: opens site (evidence: `src/main.jsx`)
- React bootstrap → Routes and shell: renders (evidence: `src/main.jsx`)
- Routes and shell → 3D scene: renders (evidence: `src/App.jsx`)
- Routes and shell → Header: renders (evidence: `src/App.jsx`)
- Routes and shell → Footer: renders (evidence: `src/App.jsx`)
- Routes and shell → Home page: routes to (evidence: `src/App.jsx`)
- Routes and shell → About page: routes to (evidence: `src/App.jsx`)
- Routes and shell → Models page: routes to (evidence: `src/App.jsx`)
- Routes and shell → Gallery page: routes to (evidence: `src/App.jsx`)
- Routes and shell → Services page: routes to (evidence: `src/App.jsx`)
- Routes and shell → Team page: routes to (evidence: `src/App.jsx`)
- Routes and shell → Contact page: routes to (evidence: `src/App.jsx`)
- Header → Navigation menu: renders (evidence: `src/components/Header.jsx`)
- 3D scene → Scroll progress: reads progress (evidence: `src/components/Scene.jsx`)
- 3D scene → Porsche model: loads asset (evidence: `src/components/Scene.jsx`)
- Home page → Glass panels: renders (evidence: `src/pages/Home.jsx`)
- About page → Glass panels: renders (evidence: `src/pages/About.jsx`)
- Services page → Glass panels: renders (evidence: `src/pages/Services.jsx`)
- Team page → Glass panels: renders (evidence: `src/pages/Team.jsx`)
- Contact page → Glass panels: renders (evidence: `src/pages/Contact.jsx`)
- Models page → Glass panels: renders (evidence: `src/pages/Models.jsx`)
- Gallery page → Glass panels: renders (evidence: `src/pages/Gallery.jsx`)
