How portobanco51/marcelo3dportfolio works
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: pages/index.js Sections · App.jsx App shell · main.jsx Entry · canvas/index.js Canvas layer
Components 19
Browser app
Client-side React portfolio runtime
- Browser · Primary execution environment for the SPA
- Entry · Vite client entry point
src/main.jsx - App shell · Top-level portfolio layout and styling
src/App.jsx - App styles · Global app presentation rules
src/App.css - Sections · Main portfolio sections rendered in the SPA
src/pages/index.js - NavBar · Primary navigation and header UI
src/components/NavBar.jsx - Cards · Reusable project and skill presentation components
src/components/index.js - Canvas layer · Animated 3D and scene-backed presentation layer
src/components/canvas/index.js - Model wrappers · React wrappers around imported GLB assets
src/components/models/index.js - Project data · Project metadata and URL catalog
src/utils/DataFetch.js - Email flow · Browser-side contact form submission to external email service
src/utils/email.js - Skill data · Skills list used by the portfolio UI
src/utils/skillList.json
Static content
Bundled assets, models, and fonts
- Resume PDF · Downloadable portfolio document
src/assets/resume.pdf - 3D assets · GLB models, textures, and HDR environment files
public/Models/sky.hdr - Fonts · Prebuilt font definitions for the site
public/fonts/B612Mono.json - Images · Browser-served images and icons
public/images
Delivery
Build and deployment automation
- Vite build · Static asset bundling and app compilation
vite.config.js - CI workflow · GitHub Actions build and deploy pipeline
.github/workflows/main.yml - Netlify · Static deployment target configuration
netlify.toml
Connections 18
- 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