# nilspodins/portfolio architecture

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

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

## Overview

This repository is a static personal portfolio site. Visitors browse the developer’s profile, projects, experience, and contact information; client-side JavaScript switches Latvian/English content, updates the CV download, manages the mobile menu, tracks the active section, and reveals cards as they enter view. The README provides only the live-site URL, so the architecture and project claims are based on the provided source excerpts; HTML structure and styling details were not sampled.

Main entry points: [`index.html`](https://github.com/nilspodins/portfolio/blob/main/index.html) (Portfolio page), [`script.js`](https://github.com/nilspodins/portfolio/blob/main/script.js) (Language switching), [`style.css`](https://github.com/nilspodins/portfolio/blob/main/style.css) (Page styling), [`lang.js`](https://github.com/nilspodins/portfolio/blob/main/lang.js) (LV / EN text)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio site"]
  node_page["Portfolio page<br/>[index.html]"]
  node_styles["Page styling<br/>[style.css]"]
end

subgraph group_client["Browser interactions"]
  node_scroll["Section tracking<br/>[script.js]"]
  node_language["Language switching<br/>[script.js]"]
  node_menu["Mobile menu<br/>[script.js]"]
  node_reveals["Scroll reveals<br/>[script.js]"]
end

subgraph group_content["Portfolio content"]
  node_translations["LV / EN text<br/>[lang.js]"]
  node_profile["Profile and skills<br/>[index.html]"]
  node_projects["Project showcase<br/>[index.html]"]
  node_experience["Work and education<br/>[index.html]"]
  node_contacts["Contact section<br/>[index.html]"]
  node_cv["CV downloads"]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_page
node_page -.->|"loads script"| node_scroll
node_page -.->|"uses styling"| node_styles
node_page -.->|"presents"| node_profile
node_page -.->|"presents"| node_projects
node_page -.->|"presents"| node_experience
node_page -.->|"presents"| node_contacts
node_page -.->|"hosts controls"| node_language
node_language -->|"reads strings"| node_translations
node_language -->|"selects download"| node_cv
node_scroll -->|"updates active link"| node_page
node_page -.->|"hosts controls"| node_menu
node_menu -->|"toggles navigation"| node_page
node_reveals -->|"reveals observed items"| node_page

click node_page "https://github.com/nilspodins/portfolio/blob/main/index.html"
click node_styles "https://github.com/nilspodins/portfolio/blob/main/style.css"
click node_scroll "https://github.com/nilspodins/portfolio/blob/main/script.js"
click node_language "https://github.com/nilspodins/portfolio/blob/main/script.js"
click node_menu "https://github.com/nilspodins/portfolio/blob/main/script.js"
click node_reveals "https://github.com/nilspodins/portfolio/blob/main/script.js"
click node_translations "https://github.com/nilspodins/portfolio/blob/main/lang.js"
click node_profile "https://github.com/nilspodins/portfolio/blob/main/index.html"
click node_projects "https://github.com/nilspodins/portfolio/blob/main/index.html"
click node_experience "https://github.com/nilspodins/portfolio/blob/main/index.html"
click node_contacts "https://github.com/nilspodins/portfolio/blob/main/index.html"
click node_cv "https://github.com/nilspodins/portfolio/tree/main/assets"

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_page,node_styles toneBlue
class node_scroll,node_language,node_menu,node_reveals toneAmber
class node_translations,node_profile,node_projects,node_experience,node_contacts,node_cv toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio site

- [Portfolio page](https://github.com/nilspodins/portfolio/blob/main/index.html): `index.html`
- [Page styling](https://github.com/nilspodins/portfolio/blob/main/style.css): `style.css`

### Browser interactions

- [Section tracking](https://github.com/nilspodins/portfolio/blob/main/script.js): `script.js`
- [Language switching](https://github.com/nilspodins/portfolio/blob/main/script.js): `script.js`
- [Mobile menu](https://github.com/nilspodins/portfolio/blob/main/script.js): `script.js`
- [Scroll reveals](https://github.com/nilspodins/portfolio/blob/main/script.js): `script.js`

### Portfolio content

- [LV / EN text](https://github.com/nilspodins/portfolio/blob/main/lang.js): `lang.js`
- [Profile and skills](https://github.com/nilspodins/portfolio/blob/main/index.html): `index.html`
- [Project showcase](https://github.com/nilspodins/portfolio/blob/main/index.html): `index.html`
- [Work and education](https://github.com/nilspodins/portfolio/blob/main/index.html): `index.html`
- [Contact section](https://github.com/nilspodins/portfolio/blob/main/index.html): `index.html`
- [CV downloads](https://github.com/nilspodins/portfolio/tree/main/assets): `assets`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio page: browses (evidence: `README.md`)
- Portfolio page → Section tracking: loads script
- Portfolio page → Page styling: uses styling
- Portfolio page → Profile and skills: presents
- Portfolio page → Project showcase: presents
- Portfolio page → Work and education: presents
- Portfolio page → Contact section: presents
- Portfolio page → Language switching: hosts controls
- Language switching → LV / EN text: reads strings (evidence: `script.js`)
- Language switching → CV downloads: selects download (evidence: `script.js`)
- Section tracking → Portfolio page: updates active link (evidence: `script.js`)
- Portfolio page → Mobile menu: hosts controls
- Mobile menu → Portfolio page: toggles navigation (evidence: `script.js`)
- Scroll reveals → Portfolio page: reveals observed items (evidence: `script.js`)
