# theeussx/meuportfolio architecture

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

- Interactive diagram: https://gitdiagram.com/theeussx/meuportfolio
- Repository: https://github.com/theeussx/meuportfolio

## Overview

Theeussx Portfolio 2.0 is a bilingual personal portfolio for presenting Mateus Henrique’s work, services, skills, certificates, and contact options. A visitor opens the browser application, which hydrates the home page or displays a not-found page; the home page assembles the portfolio sections and contact form. Visitors can switch language and theme, and request a project quote: the form validates and prepares a localized email draft for the visitor to send or copy. The README documents the portfolio’s major capabilities; unsampled component internals and their data links are not inferred.

Main entry points: [`client/src/pages/Home.tsx`](https://github.com/theeussx/meuportfolio/blob/main/client/src/pages/Home.tsx) (Home composition), [`client/src/App.tsx`](https://github.com/theeussx/meuportfolio/blob/main/client/src/App.tsx) (App routing), [`client/src/components/Contact.tsx`](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Contact.tsx) (Quote and contact), [`client/src/contexts/LanguageContext.tsx`](https://github.com/theeussx/meuportfolio/blob/main/client/src/contexts/LanguageContext.tsx) (Language preference)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_app_entry["Browser entry<br/>[main.tsx]"]
  node_app_router["App routing<br/>[App.tsx]"]
  node_error_boundary["Error boundary<br/>[ErrorBoundary.tsx]"]
  node_home["Home composition<br/>[Home.tsx]"]
  node_not_found["Not-found page<br/>[NotFound.tsx]"]
end

subgraph group_portfolio["Portfolio"]
  node_header["Site header<br/>[SiteHeader.tsx]"]
  node_hero["Introduction<br/>[Hero.tsx]"]
  node_projects["Project studies<br/>[Projects.tsx]"]
  node_services["Services<br/>[Services.tsx]"]
  node_technologies["Technologies<br/>[Technologies.tsx]"]
  node_certificates["Certificates<br/>[Certificates.tsx]"]
  node_about["About<br/>[About.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_portfolio_content["Bilingual content<br/>[portfolio.ts]"]
end

subgraph group_interaction["Visitor interactions"]
  node_language["Language preference"]
  node_theme["Theme preference<br/>[ThemeContext.tsx]"]
  node_contact["Quote and contact<br/>[Contact.tsx]"]
  node_quote["Quote validation<br/>[quote.ts]"]
end

subgraph group_ui["Shared controls"]
  node_copy_button["Copy control<br/>[copy-button.tsx]"]
  node_copy_feedback["Clipboard feedback"]
  node_arc_button["Arc button<br/>[button.tsx]"]
  node_theme_switch["Theme switch<br/>[theme-switch.tsx]"]
end

node_visitor(("Visitor"))
node_browser(("Browser"))
node_storage[("Browser storage")]
node_email_app["Email application"]

node_visitor -->|"opens"| node_browser
node_browser -->|"loads"| node_app_entry
node_app_entry -->|"renders"| node_app_router
node_app_router -->|"wraps"| node_error_boundary
node_app_router -->|"routes home"| node_home
node_app_router -->|"routes fallback"| node_not_found
node_home -->|"renders"| node_header
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_services
node_home -->|"renders"| node_technologies
node_home -->|"renders"| node_certificates
node_home -->|"renders"| node_about
node_home -->|"renders"| node_contact
node_home -->|"renders"| node_footer
node_app_router -->|"provides"| node_language
node_app_router -->|"provides"| node_theme
node_language -->|"reads translations"| node_portfolio_content
node_language -->|"reads and writes"| node_storage
node_theme -->|"writes preference"| node_storage
node_services -->|"sets quote preset"| node_contact
node_contact -->|"validates and drafts"| node_quote
node_quote -->|"reads translations"| node_portfolio_content
node_quote -->|"prepares email"| node_email_app
node_contact -->|"offers copying"| node_copy_button
node_copy_button -->|"uses feedback"| node_copy_feedback
node_theme_switch -->|"uses"| node_arc_button

click node_app_entry "https://github.com/theeussx/meuportfolio/blob/main/client/src/main.tsx"
click node_app_router "https://github.com/theeussx/meuportfolio/blob/main/client/src/App.tsx"
click node_error_boundary "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/ErrorBoundary.tsx"
click node_home "https://github.com/theeussx/meuportfolio/blob/main/client/src/pages/Home.tsx"
click node_not_found "https://github.com/theeussx/meuportfolio/blob/main/client/src/pages/NotFound.tsx"
click node_header "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/SiteHeader.tsx"
click node_hero "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Hero.tsx"
click node_projects "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Projects.tsx"
click node_services "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Services.tsx"
click node_technologies "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Technologies.tsx"
click node_certificates "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Certificates.tsx"
click node_about "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/About.tsx"
click node_footer "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Footer.tsx"
click node_portfolio_content "https://github.com/theeussx/meuportfolio/blob/main/client/src/content/portfolio.ts"
click node_language "https://github.com/theeussx/meuportfolio/blob/main/client/src/contexts/LanguageContext.tsx"
click node_theme "https://github.com/theeussx/meuportfolio/blob/main/client/src/contexts/ThemeContext.tsx"
click node_contact "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Contact.tsx"
click node_quote "https://github.com/theeussx/meuportfolio/blob/main/client/src/lib/quote.ts"
click node_copy_button "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/arc/copy-button/copy-button.tsx"
click node_copy_feedback "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/arc/lib/use-copy-feedback.ts"
click node_arc_button "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/arc/button/button.tsx"
click node_theme_switch "https://github.com/theeussx/meuportfolio/blob/main/client/src/components/arc/theme-switch/theme-switch.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_entry,node_app_router,node_error_boundary,node_home,node_not_found,node_browser toneBlue
class node_header,node_hero,node_projects,node_services,node_technologies,node_certificates,node_about,node_footer,node_portfolio_content,node_storage toneAmber
class node_language,node_theme,node_contact,node_quote toneMint
class node_copy_button,node_copy_feedback,node_arc_button,node_theme_switch toneRose
class node_visitor,node_email_app toneIndigo
```

## Components

### Application

- [Browser entry](https://github.com/theeussx/meuportfolio/blob/main/client/src/main.tsx): `client/src/main.tsx`
- [App routing](https://github.com/theeussx/meuportfolio/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Error boundary](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/ErrorBoundary.tsx): `client/src/components/ErrorBoundary.tsx`
- [Home composition](https://github.com/theeussx/meuportfolio/blob/main/client/src/pages/Home.tsx): `client/src/pages/Home.tsx`
- [Not-found page](https://github.com/theeussx/meuportfolio/blob/main/client/src/pages/NotFound.tsx): `client/src/pages/NotFound.tsx`

### Portfolio

- [Site header](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/SiteHeader.tsx): `client/src/components/SiteHeader.tsx`
- [Introduction](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Hero.tsx): `client/src/components/Hero.tsx`
- [Project studies](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Projects.tsx): `client/src/components/Projects.tsx`
- [Services](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Services.tsx): `client/src/components/Services.tsx`
- [Technologies](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Technologies.tsx): `client/src/components/Technologies.tsx`
- [Certificates](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Certificates.tsx): `client/src/components/Certificates.tsx`
- [About](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/About.tsx): `client/src/components/About.tsx`
- [Footer](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Footer.tsx): `client/src/components/Footer.tsx`
- [Bilingual content](https://github.com/theeussx/meuportfolio/blob/main/client/src/content/portfolio.ts): `client/src/content/portfolio.ts`

### Visitor interactions

- [Language preference](https://github.com/theeussx/meuportfolio/blob/main/client/src/contexts/LanguageContext.tsx): `client/src/contexts/LanguageContext.tsx`
- [Theme preference](https://github.com/theeussx/meuportfolio/blob/main/client/src/contexts/ThemeContext.tsx): `client/src/contexts/ThemeContext.tsx`
- [Quote and contact](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/Contact.tsx): `client/src/components/Contact.tsx`
- [Quote validation](https://github.com/theeussx/meuportfolio/blob/main/client/src/lib/quote.ts): `client/src/lib/quote.ts`

### Shared controls

- [Copy control](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/arc/copy-button/copy-button.tsx): `client/src/components/arc/copy-button/copy-button.tsx`
- [Clipboard feedback](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/arc/lib/use-copy-feedback.ts): `client/src/components/arc/lib/use-copy-feedback.ts`
- [Arc button](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/arc/button/button.tsx): `client/src/components/arc/button/button.tsx`
- [Theme switch](https://github.com/theeussx/meuportfolio/blob/main/client/src/components/arc/theme-switch/theme-switch.tsx): `client/src/components/arc/theme-switch/theme-switch.tsx`

### Other components

- **Visitor**
- **Browser**
- **Browser storage**
- **Email application**

## Connections

- Visitor → Browser: opens (evidence: `README.md`)
- Browser → Browser entry: loads (evidence: `client/src/main.tsx`)
- Browser entry → App routing: renders (evidence: `client/src/main.tsx`)
- App routing → Error boundary: wraps (evidence: `client/src/App.tsx`)
- App routing → Home composition: routes home (evidence: `client/src/App.tsx`)
- App routing → Not-found page: routes fallback (evidence: `client/src/App.tsx`)
- Home composition → Site header: renders (evidence: `client/src/pages/Home.tsx`)
- Home composition → Introduction: renders (evidence: `client/src/pages/Home.tsx`)
- Home composition → Project studies: renders (evidence: `client/src/pages/Home.tsx`)
- Home composition → Services: renders (evidence: `client/src/pages/Home.tsx`)
- Home composition → Technologies: renders (evidence: `client/src/pages/Home.tsx`)
- Home composition → Certificates: renders (evidence: `client/src/pages/Home.tsx`)
- Home composition → About: renders (evidence: `client/src/pages/Home.tsx`)
- Home composition → Quote and contact: renders (evidence: `client/src/pages/Home.tsx`)
- Home composition → Footer: renders (evidence: `client/src/pages/Home.tsx`)
- App routing → Language preference: provides (evidence: `client/src/App.tsx`)
- App routing → Theme preference: provides (evidence: `client/src/App.tsx`)
- Language preference → Bilingual content: reads translations (evidence: `client/src/contexts/LanguageContext.tsx`)
- Language preference → Browser storage: reads and writes (evidence: `client/src/contexts/LanguageContext.tsx`)
- Theme preference → Browser storage: writes preference (evidence: `client/src/contexts/ThemeContext.tsx`)
- Services → Quote and contact: sets quote preset
- Quote and contact → Quote validation: validates and drafts (evidence: `README.md`)
- Quote validation → Bilingual content: reads translations (evidence: `client/src/lib/quote.ts`)
- Quote validation → Email application: prepares email (evidence: `README.md`)
- Quote and contact → Copy control: offers copying (evidence: `README.md`)
- Copy control → Clipboard feedback: uses feedback (evidence: `client/src/components/arc/copy-button/copy-button.tsx`)
- Theme switch → Arc button: uses (evidence: `client/src/components/arc/theme-switch/theme-switch.tsx`)
