# jose-oliveirac/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/jose-oliveirac/portfolio
- Repository: https://github.com/jose-oliveirac/portfolio

## Overview

This is a bilingual personal portfolio site. Visitors arrive at a locale route, read the hero and portfolio sections, and can follow project, résumé, and contact links; a lightweight text alternative presents the same facts. The graph also preserves the documented language redirect, theme and motion controls, cinematic scene, and SEO/share surfaces. Edges are limited to relationships shown in excerpts, source-index references, or README statements; unsampled implementations are represented only where the tree or README supports them.

Main entry points: [`app/[locale]/page.tsx`](https://github.com/jose-oliveirac/portfolio/blob/main/app/%5Blocale%5D/page.tsx) (Portfolio home), [`components/sections/Hero.tsx`](https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/Hero.tsx) (Hero introduction), [`app/[locale]/simple/page.tsx`](https://github.com/jose-oliveirac/portfolio/blob/main/app/%5Blocale%5D/simple/page.tsx) (Text alternative), [`lib/dictionaries.ts`](https://github.com/jose-oliveirac/portfolio/blob/main/lib/dictionaries.ts) (Locale dictionaries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Routing and presentation"]
  node_language_proxy["Language redirect<br/>[proxy.ts]"]
  node_locale_layout["Locale layout<br/>[layout.tsx]"]
  node_home["Portfolio home<br/>[page.tsx]"]
  node_simple["Text alternative<br/>[page.tsx]"]
  node_not_found["Not found page"]
  node_footer["Site footer<br/>[Footer.tsx]"]
end

subgraph group_portfolio["Portfolio content"]
  node_hero["Hero introduction<br/>[Hero.tsx]"]
  node_about["About section<br/>[About.tsx]"]
  node_experience["Experience section<br/>[Experience.tsx]"]
  node_projects["Project showcase<br/>[Projects.tsx]"]
  node_recommendations["Recommendations"]
  node_contact["Contact section<br/>[Contact.tsx]"]
end

subgraph group_visual["Scene and controls"]
  node_scene_provider["Scene provider<br/>[SceneProvider.tsx]"]
  node_star_layer["Star field<br/>[StarLayer.tsx]"]
  node_ascii_scene["Scene rendering<br/>[AsciiScene.tsx]"]
  node_scene_controls["Scene controls<br/>[SceneControls.tsx]"]
  node_motion_toggle["Motion preference<br/>[motion.ts]"]
  node_instrument_keys["Instrument controls<br/>[Key.tsx]"]
end

subgraph group_content["Localized content"]
  node_experience_data["Experience records<br/>[experience.ts]"]
  node_project_data["Project records<br/>[projects.ts]"]
  node_recommendation_data["Recommendation records<br/>[recommendations.ts]"]
  node_social_data["Social links<br/>[socials.ts]"]
  node_dictionary["Locale dictionaries<br/>[dictionaries.ts]"]
end

subgraph group_metadata["Site metadata"]
  node_sitemap["Sitemap<br/>[sitemap.ts]"]
  node_share_image["Share image"]
  node_site_config["Site address<br/>[site.ts]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"requests root"| node_language_proxy
node_language_proxy -->|"redirects locale"| node_locale_layout
node_visitor -->|"opens portfolio"| node_home
node_locale_layout -->|"renders"| node_footer
node_locale_layout -->|"loads translations"| node_dictionary
node_home -->|"wraps page"| node_scene_provider
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_experience
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_recommendations
node_home -->|"renders"| node_contact
node_home -->|"builds scene items"| node_project_data
node_hero -->|"loads translations"| node_dictionary
node_hero -->|"reads social links"| node_social_data
node_hero -->|"renders controls"| node_scene_controls
node_hero -->|"renders toggle"| node_motion_toggle
node_hero -->|"renders navigation keys"| node_instrument_keys
node_about -->|"loads translations"| node_dictionary
node_experience -->|"reads records"| node_experience_data
node_experience -->|"loads translations"| node_dictionary
node_projects -->|"reads records"| node_project_data
node_recommendations -->|"reads records"| node_recommendation_data
node_contact -->|"reads links"| node_social_data
node_contact -->|"loads translations"| node_dictionary
node_scene_provider -->|"renders"| node_star_layer
node_scene_provider -->|"renders"| node_ascii_scene
node_scene_controls -->|"controls scene"| node_scene_provider
node_scene_controls -->|"uses glyphs"| node_instrument_keys
node_motion_toggle -->|"renders key"| node_instrument_keys
node_simple -->|"reads records"| node_experience_data
node_simple -->|"reads records"| node_project_data
node_simple -->|"reads records"| node_recommendation_data
node_simple -->|"reads links"| node_social_data
node_simple -->|"loads translations"| node_dictionary
node_sitemap -->|"uses site address"| node_site_config
node_share_image -.->|"uses site address"| node_site_config

click node_language_proxy "https://github.com/jose-oliveirac/portfolio/blob/main/proxy.ts"
click node_locale_layout "https://github.com/jose-oliveirac/portfolio/blob/main/app/%5Blocale%5D/layout.tsx"
click node_home "https://github.com/jose-oliveirac/portfolio/blob/main/app/%5Blocale%5D/page.tsx"
click node_simple "https://github.com/jose-oliveirac/portfolio/blob/main/app/%5Blocale%5D/simple/page.tsx"
click node_not_found "https://github.com/jose-oliveirac/portfolio/blob/main/app/global-not-found.tsx"
click node_hero "https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/Hero.tsx"
click node_about "https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/About.tsx"
click node_experience "https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/Experience.tsx"
click node_projects "https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/Projects.tsx"
click node_recommendations "https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/Recommendations.tsx"
click node_contact "https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/Contact.tsx"
click node_experience_data "https://github.com/jose-oliveirac/portfolio/blob/main/data/experience.ts"
click node_project_data "https://github.com/jose-oliveirac/portfolio/blob/main/data/projects.ts"
click node_recommendation_data "https://github.com/jose-oliveirac/portfolio/blob/main/data/recommendations.ts"
click node_social_data "https://github.com/jose-oliveirac/portfolio/blob/main/data/socials.ts"
click node_dictionary "https://github.com/jose-oliveirac/portfolio/blob/main/lib/dictionaries.ts"
click node_scene_provider "https://github.com/jose-oliveirac/portfolio/blob/main/components/scene/SceneProvider.tsx"
click node_star_layer "https://github.com/jose-oliveirac/portfolio/blob/main/components/scene/StarLayer.tsx"
click node_ascii_scene "https://github.com/jose-oliveirac/portfolio/blob/main/components/instrument/AsciiScene.tsx"
click node_scene_controls "https://github.com/jose-oliveirac/portfolio/blob/main/components/scene/SceneControls.tsx"
click node_motion_toggle "https://github.com/jose-oliveirac/portfolio/blob/main/lib/motion.ts"
click node_instrument_keys "https://github.com/jose-oliveirac/portfolio/blob/main/components/instrument/Key.tsx"
click node_footer "https://github.com/jose-oliveirac/portfolio/blob/main/components/layout/Footer.tsx"
click node_sitemap "https://github.com/jose-oliveirac/portfolio/blob/main/app/sitemap.ts"
click node_share_image "https://github.com/jose-oliveirac/portfolio/blob/main/app/%5Blocale%5D/opengraph-image.tsx"
click node_site_config "https://github.com/jose-oliveirac/portfolio/blob/main/lib/site.ts"

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_language_proxy,node_locale_layout,node_home,node_simple,node_not_found,node_footer toneBlue
class node_hero,node_about,node_experience,node_projects,node_recommendations,node_contact toneAmber
class node_scene_provider,node_star_layer,node_ascii_scene,node_scene_controls,node_motion_toggle,node_instrument_keys toneMint
class node_experience_data,node_project_data,node_recommendation_data,node_social_data,node_dictionary toneRose
class node_sitemap,node_share_image,node_site_config,node_visitor toneIndigo
```

## Components

### Routing and presentation

- [Language redirect](https://github.com/jose-oliveirac/portfolio/blob/main/proxy.ts): `proxy.ts`
- [Locale layout](https://github.com/jose-oliveirac/portfolio/blob/main/app/%5Blocale%5D/layout.tsx): `app/[locale]/layout.tsx`
- [Portfolio home](https://github.com/jose-oliveirac/portfolio/blob/main/app/%5Blocale%5D/page.tsx): `app/[locale]/page.tsx`
- [Text alternative](https://github.com/jose-oliveirac/portfolio/blob/main/app/%5Blocale%5D/simple/page.tsx): `app/[locale]/simple/page.tsx`
- [Not found page](https://github.com/jose-oliveirac/portfolio/blob/main/app/global-not-found.tsx): `app/global-not-found.tsx`
- [Site footer](https://github.com/jose-oliveirac/portfolio/blob/main/components/layout/Footer.tsx): `components/layout/Footer.tsx`

### Portfolio content

- [Hero introduction](https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/Hero.tsx): `components/sections/Hero.tsx`
- [About section](https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/About.tsx): `components/sections/About.tsx`
- [Experience section](https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/Experience.tsx): `components/sections/Experience.tsx`
- [Project showcase](https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/Projects.tsx): `components/sections/Projects.tsx`
- [Recommendations](https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/Recommendations.tsx): `components/sections/Recommendations.tsx`
- [Contact section](https://github.com/jose-oliveirac/portfolio/blob/main/components/sections/Contact.tsx): `components/sections/Contact.tsx`

### Scene and controls

- [Scene provider](https://github.com/jose-oliveirac/portfolio/blob/main/components/scene/SceneProvider.tsx): `components/scene/SceneProvider.tsx`
- [Star field](https://github.com/jose-oliveirac/portfolio/blob/main/components/scene/StarLayer.tsx): `components/scene/StarLayer.tsx`
- [Scene rendering](https://github.com/jose-oliveirac/portfolio/blob/main/components/instrument/AsciiScene.tsx): `components/instrument/AsciiScene.tsx`
- [Scene controls](https://github.com/jose-oliveirac/portfolio/blob/main/components/scene/SceneControls.tsx): `components/scene/SceneControls.tsx`
- [Motion preference](https://github.com/jose-oliveirac/portfolio/blob/main/lib/motion.ts): `lib/motion.ts`
- [Instrument controls](https://github.com/jose-oliveirac/portfolio/blob/main/components/instrument/Key.tsx): `components/instrument/Key.tsx`

### Localized content

- [Experience records](https://github.com/jose-oliveirac/portfolio/blob/main/data/experience.ts): `data/experience.ts`
- [Project records](https://github.com/jose-oliveirac/portfolio/blob/main/data/projects.ts): `data/projects.ts`
- [Recommendation records](https://github.com/jose-oliveirac/portfolio/blob/main/data/recommendations.ts): `data/recommendations.ts`
- [Social links](https://github.com/jose-oliveirac/portfolio/blob/main/data/socials.ts): `data/socials.ts`
- [Locale dictionaries](https://github.com/jose-oliveirac/portfolio/blob/main/lib/dictionaries.ts): `lib/dictionaries.ts`

### Site metadata

- [Sitemap](https://github.com/jose-oliveirac/portfolio/blob/main/app/sitemap.ts): `app/sitemap.ts`
- [Share image](https://github.com/jose-oliveirac/portfolio/blob/main/app/%5Blocale%5D/opengraph-image.tsx): `app/[locale]/opengraph-image.tsx`
- [Site address](https://github.com/jose-oliveirac/portfolio/blob/main/lib/site.ts): `lib/site.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → Language redirect: requests root
- Language redirect → Locale layout: redirects locale
- Site visitor → Portfolio home: opens portfolio (evidence: `app/[locale]/page.tsx`)
- Locale layout → Site footer: renders (evidence: `app/[locale]/layout.tsx`)
- Locale layout → Locale dictionaries: loads translations (evidence: `app/[locale]/layout.tsx`)
- Portfolio home → Scene provider: wraps page (evidence: `app/[locale]/page.tsx`)
- Portfolio home → Hero introduction: renders (evidence: `app/[locale]/page.tsx`)
- Portfolio home → About section: renders (evidence: `app/[locale]/page.tsx`)
- Portfolio home → Experience section: renders (evidence: `app/[locale]/page.tsx`)
- Portfolio home → Project showcase: renders (evidence: `app/[locale]/page.tsx`)
- Portfolio home → Recommendations: renders (evidence: `app/[locale]/page.tsx`)
- Portfolio home → Contact section: renders (evidence: `app/[locale]/page.tsx`)
- Portfolio home → Project records: builds scene items (evidence: `app/[locale]/page.tsx`)
- Hero introduction → Locale dictionaries: loads translations (evidence: `components/sections/Hero.tsx`)
- Hero introduction → Social links: reads social links (evidence: `components/sections/Hero.tsx`)
- Hero introduction → Scene controls: renders controls (evidence: `components/sections/Hero.tsx`)
- Hero introduction → Motion preference: renders toggle (evidence: `components/sections/Hero.tsx`)
- Hero introduction → Instrument controls: renders navigation keys (evidence: `components/sections/Hero.tsx`)
- About section → Locale dictionaries: loads translations (evidence: `components/sections/About.tsx`)
- Experience section → Experience records: reads records (evidence: `components/sections/Experience.tsx`)
- Experience section → Locale dictionaries: loads translations (evidence: `components/sections/Experience.tsx`)
- Project showcase → Project records: reads records (evidence: `app/[locale]/page.tsx`)
- Recommendations → Recommendation records: reads records (evidence: `components/sections/Recommendations.tsx`)
- Contact section → Social links: reads links (evidence: `components/sections/Contact.tsx`)
- Contact section → Locale dictionaries: loads translations (evidence: `components/sections/Contact.tsx`)
- Scene provider → Star field: renders (evidence: `components/scene/SceneProvider.tsx`)
- Scene provider → Scene rendering: renders (evidence: `components/scene/SceneProvider.tsx`)
- Scene controls → Scene provider: controls scene (evidence: `components/scene/SceneControls.tsx`)
- Scene controls → Instrument controls: uses glyphs (evidence: `components/scene/SceneControls.tsx`)
- Motion preference → Instrument controls: renders key (evidence: `components/ui/MotionToggle.tsx`)
- Text alternative → Experience records: reads records (evidence: `app/[locale]/simple/page.tsx`)
- Text alternative → Project records: reads records (evidence: `app/[locale]/simple/page.tsx`)
- Text alternative → Recommendation records: reads records (evidence: `app/[locale]/simple/page.tsx`)
- Text alternative → Social links: reads links (evidence: `app/[locale]/simple/page.tsx`)
- Text alternative → Locale dictionaries: loads translations (evidence: `app/[locale]/simple/page.tsx`)
- Sitemap → Site address: uses site address (evidence: `app/sitemap.ts`)
- Share image → Site address: uses site address
