# portobanco51/marcelo3dportfolio architecture

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

- Interactive diagram: https://gitdiagram.com/portobanco51/marcelo3dportfolio
- Repository: https://github.com/portobanco51/marcelo3dportfolio

## Overview

1. **Overall shape**
   - This is a **single-page React portfolio** built with **Vite** and deployed as a static site.
   - The app runs entirely in the browser, with interactivity coming from React UI, 3D scenes, and calls to external services for projects metadata and contact email delivery.

2. **Entry and app bootstrap**
   - `src/main.jsx` is the client entry point.
   - `src/App.jsx` and `src/App.css` define the top-level composition and styling for the portfolio experience.
   - `index.html` and `vite.config.js` indicate a standard Vite build pipeline that bundles the app into static assets.

3. **Page-level composition**
   - The `src/pages` folder contains the main sections of the portfolio: `Hero`, `Projects`, `SkillsBanner`, `Contact`, and `Loading`.
   - These pages appear to be the main vertical slices of the SPA, likely rendered as sections rather than separate routes.
   - `src/pages/index.js` centralizes page exports for cleaner imports.

4. **Reusable UI layer**
   - `src/components` holds reusable presentation components such as `NavBar`, `Links`, `ProjectCard`, `SkillCard`, and `SkillsContainer`.
   - These components form the non-3D UI layer and are likely used across multiple pages to keep the layout consistent.

5. **3D / canvas subsystem**
   - `src/components/canvas` contains the 3D-backed visual elements: `Hero3D`, `Space`, `Meteorites`, `Experience`, `Titles`, and `ContactBg`.
   - This subsystem is where the Three.js-style portfolio presentation lives, providing animated scene backgrounds and section-specific visual effects.
   - `src/components/canvas/index.js` acts as the export boundary for the canvas modules.

6. **3D model wrappers**
   - `src/components/models` contains React wrappers for the imported GLB assets: `Earth`, `Rocket`, `AntarcticMet`, `GoldMet`, `LunarApollo`, and `LunarMet`.
   - These wrappers likely encapsulate loading/rendering logic for each model, keeping the scene components separate from asset details.
   - The actual model files live in `public/Models`, along with textures and an HDR environment map (`sky.hdr`).

7. **Static asset layer**
   - `public/` holds all browser-served assets: 3D models, textures, fonts, images, icons, and PWA metadata files.
   - Fonts are prepackaged as JSON definitions in `public/fonts`, which suggests custom typography used in the 3D/canvas or styled UI.
   - `src/assets/resume.pdf` is a downloadable portfolio artifact exposed through the React app.

8. **Data and integration utilities**
   - `src/utils/DataFetch.js` is the likely integration point for retrieving project metadata from an external source.
   - `src/utils/projectsUrls.js` provides the project URL catalog used by the projects section.
   - `src/utils/skillList.json` is the static data source for skills displayed in the UI.

9. **Contact and email flow**
   - `src/utils/email.js` handles the contact form email submission path.
   - The README indicates this uses **EmailJS** with validated form input, so the browser submits a message to an external email service rather than a custom backend.
   - This keeps the app frontend-only while still enabling user contact functionality.

10. **External services and architecture boundaries**
   - The portfolio depends on external APIs for two main purposes:
     - **Project metadata retrieval** via RapidAPI-backed GET requests.
     - **Contact delivery** via EmailJS POST/PUT interactions.
   - This means the app’s architecture is mostly client-side, with thin service boundaries rather than a traditional server layer.

11. **Deployment and delivery**
   - `netlify.toml` and `.github/workflows/main.yml` show the repo is set up for **static deployment and CI/CD**.
   - GitHub Actions automates build/deploy steps, and Netlify is the hosting target or deployment environment.
   - The repo is therefore optimized for repeated content updates without maintaining server infrastructure.

12. **What an architecture diagram should emphasize**
   - Draw the browser as the primary runtime.
   - Show React pages in the center, with UI components and 3D canvas components as two parallel presentation layers.
   - Connect the Projects and Contact sections to their external services.
   - Place the model/texture/HDR assets and fonts as a static content source feeding the canvas layer.
   - Place GitHub Actions and Netlify outside the app as delivery infrastructure, not runtime dependencies.

Main entry points: [`src/pages/index.js`](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/pages/index.js) (Sections), [`src/App.jsx`](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/App.jsx) (App shell), [`src/main.jsx`](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/main.jsx) (Entry), [`src/components/canvas/index.js`](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/components/canvas/index.js) (Canvas layer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Browser app"]
  node_browser(("Browser<br/>runtime"))
  node_entry["Entry<br/>bootstrap<br/>[main.jsx]"]
  node_app["App shell<br/>composition<br/>[App.jsx]"]
  node_appcss["App styles<br/>[App.css]"]
  node_pages["Sections<br/>page modules<br/>[index.js]"]
  node_navbar["NavBar<br/>ui component<br/>[NavBar.jsx]"]
  node_cards["Cards<br/>ui components<br/>[index.js]"]
  node_canvas["Canvas layer<br/>3D visuals<br/>[index.js]"]
  node_models["Model wrappers<br/>3D models<br/>[index.js]"]
  node_projectsdata["Project data<br/>integration data<br/>[DataFetch.js]"]
  node_email["Email flow<br/>contact service<br/>[email.js]"]
  node_skills["Skill data<br/>static data<br/>[skillList.json]"]
end

subgraph group_content["Static content"]
  node_resume["Resume PDF<br/>asset<br/>[resume.pdf]"]
  node_modelsdir[("3D assets<br/>static assets<br/>[sky.hdr]")]
  node_fonts["Fonts<br/>typography assets<br/>[B612Mono.json]"]
  node_images["Images<br/>media assets"]
end

subgraph group_delivery["Delivery"]
  node_build["Vite build<br/>bundler<br/>[vite.config.js]"]
  node_ci["CI workflow<br/>automation<br/>[main.yml]"]
  node_hosting["Netlify<br/>hosting config<br/>[netlify.toml]"]
end

node_browser -->|"loads"| node_entry
node_entry -->|"mounts"| node_app
node_app -->|"styles"| node_appcss
node_app -->|"renders"| node_pages
node_app -->|"includes"| node_navbar
node_pages -->|"uses"| node_cards
node_pages -->|"pairs with"| node_canvas
node_canvas -->|"loads"| node_models
node_models -->|"reads"| node_modelsdir
node_canvas -->|"uses"| node_fonts
node_pages -->|"reads"| node_skills
node_pages -->|"fetches"| node_projectsdata
node_pages -->|"submits"| node_email
node_app -->|"links"| node_resume
node_entry -->|"bundled by"| node_build
node_build -->|"automates"| node_ci
node_ci -->|"deploys to"| node_hosting
node_hosting -->|"serves"| node_browser

click node_entry "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/main.jsx"
click node_app "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/App.jsx"
click node_appcss "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/App.css"
click node_pages "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/pages/index.js"
click node_navbar "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/components/NavBar.jsx"
click node_cards "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/components/index.js"
click node_canvas "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/components/canvas/index.js"
click node_models "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/components/models/index.js"
click node_projectsdata "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/utils/DataFetch.js"
click node_email "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/utils/email.js"
click node_skills "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/utils/skillList.json"
click node_resume "https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/assets/resume.pdf"
click node_modelsdir "https://github.com/portobanco51/marcelo3dportfolio/blob/master/public/Models/sky.hdr"
click node_fonts "https://github.com/portobanco51/marcelo3dportfolio/blob/master/public/fonts/B612Mono.json"
click node_images "https://github.com/portobanco51/marcelo3dportfolio/tree/master/public/images"
click node_build "https://github.com/portobanco51/marcelo3dportfolio/blob/master/vite.config.js"
click node_ci "https://github.com/portobanco51/marcelo3dportfolio/blob/master/.github/workflows/main.yml"
click node_hosting "https://github.com/portobanco51/marcelo3dportfolio/blob/master/netlify.toml"

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_browser,node_entry,node_app,node_appcss,node_pages,node_navbar,node_cards,node_canvas,node_models,node_projectsdata,node_email,node_skills toneBlue
class node_resume,node_modelsdir,node_fonts,node_images toneAmber
class node_build,node_ci,node_hosting toneMint
```

## Components

### Browser app

Client-side React portfolio runtime

- **Browser**: runtime · Primary execution environment for the SPA
- [Entry](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/main.jsx): bootstrap · Vite client entry point · `src/main.jsx`
- [App shell](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/App.jsx): composition · Top-level portfolio layout and styling · `src/App.jsx`
- [App styles](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/App.css): styles · Global app presentation rules · `src/App.css`
- [Sections](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/pages/index.js): page modules · Main portfolio sections rendered in the SPA · `src/pages/index.js`
- [NavBar](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/components/NavBar.jsx): ui component · Primary navigation and header UI · `src/components/NavBar.jsx`
- [Cards](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/components/index.js): ui components · Reusable project and skill presentation components · `src/components/index.js`
- [Canvas layer](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/components/canvas/index.js): 3D visuals · Animated 3D and scene-backed presentation layer · `src/components/canvas/index.js`
- [Model wrappers](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/components/models/index.js): 3D models · React wrappers around imported GLB assets · `src/components/models/index.js`
- [Project data](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/utils/DataFetch.js): integration data · Project metadata and URL catalog · `src/utils/DataFetch.js`
- [Email flow](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/utils/email.js): contact service · Browser-side contact form submission to external email service · `src/utils/email.js`
- [Skill data](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/utils/skillList.json): static data · Skills list used by the portfolio UI · `src/utils/skillList.json`

### Static content

Bundled assets, models, and fonts

- [Resume PDF](https://github.com/portobanco51/marcelo3dportfolio/blob/master/src/assets/resume.pdf): asset · Downloadable portfolio document · `src/assets/resume.pdf`
- [3D assets](https://github.com/portobanco51/marcelo3dportfolio/blob/master/public/Models/sky.hdr): static assets · GLB models, textures, and HDR environment files · `public/Models/sky.hdr`
- [Fonts](https://github.com/portobanco51/marcelo3dportfolio/blob/master/public/fonts/B612Mono.json): typography assets · Prebuilt font definitions for the site · `public/fonts/B612Mono.json`
- [Images](https://github.com/portobanco51/marcelo3dportfolio/tree/master/public/images): media assets · Browser-served images and icons · `public/images`

### Delivery

Build and deployment automation

- [Vite build](https://github.com/portobanco51/marcelo3dportfolio/blob/master/vite.config.js): bundler · Static asset bundling and app compilation · `vite.config.js`
- [CI workflow](https://github.com/portobanco51/marcelo3dportfolio/blob/master/.github/workflows/main.yml): automation · GitHub Actions build and deploy pipeline · `.github/workflows/main.yml`
- [Netlify](https://github.com/portobanco51/marcelo3dportfolio/blob/master/netlify.toml): hosting config · Static deployment target configuration · `netlify.toml`

## Connections

- Browser → Entry: loads · Browser loads the SPA entry point
- Entry → App shell: mounts · Bootstraps the top-level React app
- App shell → App styles: styles · App shell is styled by the global CSS
- App shell → Sections: renders · Composes the main portfolio sections
- App shell → NavBar: includes · Shared navigation appears across the page
- Sections → Cards: uses · Sections reuse card-based UI components
- Sections → Canvas layer: pairs with · Sections are augmented by 3D visuals
- Canvas layer → Model wrappers: loads · Scene components wrap imported 3D models
- Model wrappers → 3D assets: reads · Model wrappers consume GLB, textures, and HDR assets
- Canvas layer → Fonts: uses · Canvas text rendering depends on bundled font definitions
- Sections → Skill data: reads · Skills banner and cards use static skill data
- Sections → Project data: fetches · Projects section retrieves metadata from external data services
- Sections → Email flow: submits · Contact section sends validated messages through EmailJS
- App shell → Resume PDF: links · Portfolio exposes a downloadable resume artifact
- Entry → Vite build: bundled by · Vite compiles the app into static assets
- Vite build → CI workflow: automates · GitHub Actions runs the build and deployment workflow
- CI workflow → Netlify: deploys to · Pipeline publishes the site through Netlify
- Netlify → Browser: serves · Hosting delivers the static site to users
