# juholiver/portifolioreact architecture

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

- Interactive diagram: https://gitdiagram.com/juholiver/portifolioreact
- Repository: https://github.com/juholiver/portifolioreact

## Overview

This is a React portfolio site presenting the developer’s profile, skills, projects, and contact options. A visitor enters the single-page app, views its cinematic hero and portfolio sections, can explore project links, and can contact the owner through a validated WhatsApp message. The chatbot offers local-memory replies and, when configured, a streamed NVIDIA model response. The README also documents a scroll-animated avatar and responsive/accessibility features. Edges reflect the shown imports and calls; section internals not sampled are not inferred.

Main entry points: [`src/pages/Home.tsx`](https://github.com/juholiver/portifolioreact/blob/main/src/pages/Home.tsx) (Home Page), [`src/components/Contact/Contact.tsx`](https://github.com/juholiver/portifolioreact/blob/main/src/components/Contact/Contact.tsx) (Contact Form), [`src/components/Chatbot/Chatbot.tsx`](https://github.com/juholiver/portifolioreact/blob/main/src/components/Chatbot/Chatbot.tsx) (Gabizinha Chat), [`src/App.tsx`](https://github.com/juholiver/portifolioreact/blob/main/src/App.tsx) (App Router)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_app["App Router<br/>[App.tsx]"]
  node_home["Home Page<br/>[Home.tsx]"]
end

subgraph group_portfolio["Portfolio Sections"]
  node_hero["Hero<br/>[Hero.tsx]"]
  node_cinematic["Cinematic Canvas"]
  node_about["About Profile<br/>[About.tsx]"]
  node_skills["Skills Carousel<br/>[Skills.tsx]"]
  node_projects["Project Gallery"]
  node_projectdata["Project Data<br/>[projects.ts]"]
end

subgraph group_assistant["Chat Assistant"]
  node_chatbot["Gabizinha Chat<br/>[Chatbot.tsx]"]
  node_avatar["Chat Avatar<br/>[ChatbotAvatar.tsx]"]
end

subgraph group_contact["Contact Flow"]
  node_contact["Contact Form<br/>[Contact.tsx]"]
  node_whatsapputil["WhatsApp Builder<br/>[whatsapp.ts]"]
end

subgraph group_shared["Shared UI"]
  node_button["Button<br/>[Button.tsx]"]
  node_field["Form Fields<br/>[Field.tsx]"]
  node_section["Section Layout<br/>[Section.tsx]"]
  node_errorboundary["Error Boundary<br/>[ErrorBoundary.tsx]"]
end

node_visitor(("Visitor"))
node_nvidia{{"NVIDIA API"}}
node_whatsapp{{"WhatsApp"}}

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_home -->|"renders"| node_cinematic
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_chatbot
node_home -->|"renders"| node_contact
node_home -->|"wraps sections"| node_errorboundary
node_projects -->|"reads"| node_projectdata
node_chatbot -->|"renders"| node_avatar
node_chatbot -->|"requests replies"| node_nvidia
node_contact -->|"validates and builds"| node_whatsapputil
node_contact -->|"renders"| node_field
node_contact -->|"renders"| node_section
node_contact -->|"renders"| node_button
node_about -->|"uses"| node_button
node_whatsapputil -->|"builds link for"| node_whatsapp

click node_app "https://github.com/juholiver/portifolioreact/blob/main/src/App.tsx"
click node_home "https://github.com/juholiver/portifolioreact/blob/main/src/pages/Home.tsx"
click node_hero "https://github.com/juholiver/portifolioreact/blob/main/src/components/Hero/Hero.tsx"
click node_cinematic "https://github.com/juholiver/portifolioreact/blob/main/src/components/CinematicScrollCanvas/CinematicScrollCanvas.tsx"
click node_about "https://github.com/juholiver/portifolioreact/blob/main/src/components/About/About.tsx"
click node_skills "https://github.com/juholiver/portifolioreact/blob/main/src/components/Skills/Skills.tsx"
click node_projects "https://github.com/juholiver/portifolioreact/blob/main/src/components/Projects/ProjectsGallery.tsx"
click node_projectdata "https://github.com/juholiver/portifolioreact/blob/main/src/data/projects.ts"
click node_chatbot "https://github.com/juholiver/portifolioreact/blob/main/src/components/Chatbot/Chatbot.tsx"
click node_avatar "https://github.com/juholiver/portifolioreact/blob/main/src/components/Chatbot/ChatbotAvatar.tsx"
click node_contact "https://github.com/juholiver/portifolioreact/blob/main/src/components/Contact/Contact.tsx"
click node_whatsapputil "https://github.com/juholiver/portifolioreact/blob/main/src/utils/whatsapp.ts"
click node_button "https://github.com/juholiver/portifolioreact/blob/main/src/components/ui/Button/Button.tsx"
click node_field "https://github.com/juholiver/portifolioreact/blob/main/src/components/ui/Field/Field.tsx"
click node_section "https://github.com/juholiver/portifolioreact/blob/main/src/components/ui/Section/Section.tsx"
click node_errorboundary "https://github.com/juholiver/portifolioreact/blob/main/src/components/ui/ErrorBoundary/ErrorBoundary.tsx"

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_app,node_home toneBlue
class node_hero,node_cinematic,node_about,node_skills,node_projects,node_projectdata toneAmber
class node_chatbot,node_avatar,node_nvidia toneMint
class node_contact,node_whatsapputil toneRose
class node_button,node_field,node_section,node_errorboundary,node_visitor,node_whatsapp toneIndigo
```

## Components

### Application Shell

- [App Router](https://github.com/juholiver/portifolioreact/blob/main/src/App.tsx): `src/App.tsx`
- [Home Page](https://github.com/juholiver/portifolioreact/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`

### Portfolio Sections

- [Hero](https://github.com/juholiver/portifolioreact/blob/main/src/components/Hero/Hero.tsx): `src/components/Hero/Hero.tsx`
- [Cinematic Canvas](https://github.com/juholiver/portifolioreact/blob/main/src/components/CinematicScrollCanvas/CinematicScrollCanvas.tsx): `src/components/CinematicScrollCanvas/CinematicScrollCanvas.tsx`
- [About Profile](https://github.com/juholiver/portifolioreact/blob/main/src/components/About/About.tsx): `src/components/About/About.tsx`
- [Skills Carousel](https://github.com/juholiver/portifolioreact/blob/main/src/components/Skills/Skills.tsx): `src/components/Skills/Skills.tsx`
- [Project Gallery](https://github.com/juholiver/portifolioreact/blob/main/src/components/Projects/ProjectsGallery.tsx): `src/components/Projects/ProjectsGallery.tsx`
- [Project Data](https://github.com/juholiver/portifolioreact/blob/main/src/data/projects.ts): `src/data/projects.ts`

### Chat Assistant

- [Gabizinha Chat](https://github.com/juholiver/portifolioreact/blob/main/src/components/Chatbot/Chatbot.tsx): `src/components/Chatbot/Chatbot.tsx`
- [Chat Avatar](https://github.com/juholiver/portifolioreact/blob/main/src/components/Chatbot/ChatbotAvatar.tsx): `src/components/Chatbot/ChatbotAvatar.tsx`

### Contact Flow

- [Contact Form](https://github.com/juholiver/portifolioreact/blob/main/src/components/Contact/Contact.tsx): `src/components/Contact/Contact.tsx`
- [WhatsApp Builder](https://github.com/juholiver/portifolioreact/blob/main/src/utils/whatsapp.ts): `src/utils/whatsapp.ts`

### Shared UI

- [Button](https://github.com/juholiver/portifolioreact/blob/main/src/components/ui/Button/Button.tsx): `src/components/ui/Button/Button.tsx`
- [Form Fields](https://github.com/juholiver/portifolioreact/blob/main/src/components/ui/Field/Field.tsx): `src/components/ui/Field/Field.tsx`
- [Section Layout](https://github.com/juholiver/portifolioreact/blob/main/src/components/ui/Section/Section.tsx): `src/components/ui/Section/Section.tsx`
- [Error Boundary](https://github.com/juholiver/portifolioreact/blob/main/src/components/ui/ErrorBoundary/ErrorBoundary.tsx): `src/components/ui/ErrorBoundary/ErrorBoundary.tsx`

### Other components

- **Visitor**
- **NVIDIA API**
- **WhatsApp**

## Connections

- Visitor → App Router: opens
- App Router → Home Page: routes to (evidence: `src/App.tsx`)
- Home Page → Cinematic Canvas: renders (evidence: `src/pages/Home.tsx`)
- Home Page → Hero: renders (evidence: `src/pages/Home.tsx`)
- Home Page → About Profile: renders (evidence: `src/pages/Home.tsx`)
- Home Page → Skills Carousel: renders (evidence: `src/pages/Home.tsx`)
- Home Page → Project Gallery: renders (evidence: `src/pages/Home.tsx`)
- Home Page → Gabizinha Chat: renders (evidence: `src/pages/Home.tsx`)
- Home Page → Contact Form: renders (evidence: `src/pages/Home.tsx`)
- Home Page → Error Boundary: wraps sections (evidence: `src/pages/Home.tsx`)
- Project Gallery → Project Data: reads (evidence: `src/components/Projects/ProjectsGallery.tsx`)
- Gabizinha Chat → Chat Avatar: renders (evidence: `src/components/Chatbot/Chatbot.tsx`)
- Gabizinha Chat → NVIDIA API: requests replies (evidence: `src/components/Chatbot/Chatbot.tsx`)
- Contact Form → WhatsApp Builder: validates and builds (evidence: `src/components/Contact/Contact.tsx`)
- Contact Form → Form Fields: renders (evidence: `src/components/Contact/Contact.tsx`)
- Contact Form → Section Layout: renders (evidence: `src/components/Contact/Contact.tsx`)
- Contact Form → Button: renders (evidence: `src/components/Contact/Contact.tsx`)
- About Profile → Button: uses (evidence: `src/components/About/About.tsx`)
- WhatsApp Builder → WhatsApp: builds link for (evidence: `src/utils/whatsapp.ts`)
