# enerworks/portfolio architecture

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

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

## Overview

This is a multilingual React portfolio. Visitors enter through the app shell, navigate among About, Projects, Learning, and Contact pages, and see page-specific content; Projects and Learning use separate data lists. Translation is a cross-cutting capability configured with browser-language detection and a visitor-controlled switcher. The graph follows documented and excerpted calls; Contact and Footer are included as documented shell/page features, though their implementation details were not sampled.

Main entry points: [`src/App.jsx`](https://github.com/enerworks/portfolio/blob/main/src/App.jsx) (Route shell), [`src/i18n.js`](https://github.com/enerworks/portfolio/blob/main/src/i18n.js) (i18n configuration), [`src/pages/About.jsx`](https://github.com/enerworks/portfolio/blob/main/src/pages/About.jsx) (About page), [`src/main.jsx`](https://github.com/enerworks/portfolio/blob/main/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_entry["React entry<br/>[main.jsx]"]
  node_routes["Route shell<br/>[App.jsx]"]
  node_header["Navigation header<br/>[Header.jsx]"]
  node_language["Language switcher"]
  node_footer["Status footer<br/>[Footer.jsx]"]
end

subgraph group_pages["Portfolio pages"]
  node_about["About page<br/>[About.jsx]"]
  node_rotating["Rotating intro<br/>[RotatingText.jsx]"]
  node_infocard["Info card<br/>[InfoCard.jsx]"]
  node_projects["Projects page<br/>[Projects.jsx]"]
  node_learningpage["Learning page<br/>[Learning.jsx]"]
  node_contact["Contact page<br/>[Contact.jsx]"]
end

subgraph group_content["Content data"]
  node_projectdata[("Project list<br/>[projects.js]")]
  node_learningdata[("Learning topics<br/>[learning.js]")]
end

subgraph group_i18n["Translations"]
  node_translation["i18n configuration<br/>[i18n.js]"]
  node_locales[("Locale resources")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_routes
node_routes -->|"renders"| node_header
node_routes -->|"renders"| node_footer
node_routes -->|"routes to"| node_about
node_routes -->|"routes to"| node_projects
node_routes -->|"routes to"| node_learningpage
node_routes -->|"routes to"| node_contact
node_header -->|"renders"| node_language
node_about -->|"renders"| node_rotating
node_about -->|"renders"| node_infocard
node_projects -->|"reads"| node_projectdata
node_learningpage -->|"reads"| node_learningdata
node_entry -->|"loads"| node_translation
node_translation -->|"loads resources"| node_locales
node_language -.->|"changes language"| node_translation
node_about -.->|"reads translations"| node_translation
node_projects -.->|"reads translations"| node_translation
node_learningpage -.->|"reads translations"| node_translation
node_contact -.->|"reads translations"| node_translation

click node_entry "https://github.com/enerworks/portfolio/blob/main/src/main.jsx"
click node_routes "https://github.com/enerworks/portfolio/blob/main/src/App.jsx"
click node_header "https://github.com/enerworks/portfolio/blob/main/src/components/Header.jsx"
click node_language "https://github.com/enerworks/portfolio/blob/main/src/components/LanguageSwitcher.jsx"
click node_footer "https://github.com/enerworks/portfolio/blob/main/src/components/Footer.jsx"
click node_about "https://github.com/enerworks/portfolio/blob/main/src/pages/About.jsx"
click node_rotating "https://github.com/enerworks/portfolio/blob/main/src/components/RotatingText.jsx"
click node_infocard "https://github.com/enerworks/portfolio/blob/main/src/components/InfoCard.jsx"
click node_projects "https://github.com/enerworks/portfolio/blob/main/src/pages/Projects.jsx"
click node_projectdata "https://github.com/enerworks/portfolio/blob/main/src/data/projects.js"
click node_learningpage "https://github.com/enerworks/portfolio/blob/main/src/pages/Learning.jsx"
click node_learningdata "https://github.com/enerworks/portfolio/blob/main/src/data/learning.js"
click node_contact "https://github.com/enerworks/portfolio/blob/main/src/pages/Contact.jsx"
click node_translation "https://github.com/enerworks/portfolio/blob/main/src/i18n.js"
click node_locales "https://github.com/enerworks/portfolio/tree/main/src/locales"

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_entry,node_routes,node_header,node_language,node_footer toneBlue
class node_about,node_rotating,node_infocard,node_projects,node_learningpage,node_contact toneAmber
class node_projectdata,node_learningdata toneMint
class node_translation,node_locales toneRose
class node_visitor toneIndigo
```

## Components

### App shell

- [React entry](https://github.com/enerworks/portfolio/blob/main/src/main.jsx): `src/main.jsx`
- [Route shell](https://github.com/enerworks/portfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Navigation header](https://github.com/enerworks/portfolio/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Language switcher](https://github.com/enerworks/portfolio/blob/main/src/components/LanguageSwitcher.jsx): `src/components/LanguageSwitcher.jsx`
- [Status footer](https://github.com/enerworks/portfolio/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Portfolio pages

- [About page](https://github.com/enerworks/portfolio/blob/main/src/pages/About.jsx): `src/pages/About.jsx`
- [Rotating intro](https://github.com/enerworks/portfolio/blob/main/src/components/RotatingText.jsx): `src/components/RotatingText.jsx`
- [Info card](https://github.com/enerworks/portfolio/blob/main/src/components/InfoCard.jsx): `src/components/InfoCard.jsx`
- [Projects page](https://github.com/enerworks/portfolio/blob/main/src/pages/Projects.jsx): `src/pages/Projects.jsx`
- [Learning page](https://github.com/enerworks/portfolio/blob/main/src/pages/Learning.jsx): `src/pages/Learning.jsx`
- [Contact page](https://github.com/enerworks/portfolio/blob/main/src/pages/Contact.jsx): `src/pages/Contact.jsx`

### Content data

- [Project list](https://github.com/enerworks/portfolio/blob/main/src/data/projects.js): `src/data/projects.js`
- [Learning topics](https://github.com/enerworks/portfolio/blob/main/src/data/learning.js): `src/data/learning.js`

### Translations

- [i18n configuration](https://github.com/enerworks/portfolio/blob/main/src/i18n.js): `src/i18n.js`
- [Locale resources](https://github.com/enerworks/portfolio/tree/main/src/locales): `src/locales`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens site (evidence: `README.md`)
- React entry → Route shell: renders (evidence: `src/main.jsx`)
- Route shell → Navigation header: renders (evidence: `src/App.jsx`)
- Route shell → Status footer: renders (evidence: `src/App.jsx`)
- Route shell → About page: routes to (evidence: `src/App.jsx`)
- Route shell → Projects page: routes to (evidence: `src/App.jsx`)
- Route shell → Learning page: routes to (evidence: `src/App.jsx`)
- Route shell → Contact page: routes to (evidence: `src/App.jsx`)
- Navigation header → Language switcher: renders (evidence: `src/components/Header.jsx`)
- About page → Rotating intro: renders (evidence: `src/pages/About.jsx`)
- About page → Info card: renders (evidence: `src/pages/About.jsx`)
- Projects page → Project list: reads (evidence: `src/pages/Projects.jsx`)
- Learning page → Learning topics: reads (evidence: `src/pages/Learning.jsx`)
- React entry → i18n configuration: loads (evidence: `src/main.jsx`)
- i18n configuration → Locale resources: loads resources (evidence: `src/i18n.js`)
- Language switcher → i18n configuration: changes language
- About page → i18n configuration: reads translations
- Projects page → i18n configuration: reads translations
- Learning page → i18n configuration: reads translations
- Contact page → i18n configuration: reads translations
