# chrysan95/porto architecture

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

- Interactive diagram: https://gitdiagram.com/chrysan95/porto
- Repository: https://github.com/chrysan95/porto

## Overview

This repository is a browser-based personal portfolio. Visitors navigate its sections, explore an animated envelope-and-letter hero, browse experience and project galleries, and open slide decks rendered from PDFs. The runtime is concentrated in main.js, which coordinates DOM interactions, animation, navigation, galleries, and deck viewing; index.html supplies the page structure. The README is empty, and the source excerpt is partial, so unsampled capabilities and relationships are not inferred beyond what the tree and excerpt support.

Main entry points: [`index.html`](https://github.com/chrysan95/porto/blob/main/index.html) (Portfolio Page), [`main.js`](https://github.com/chrysan95/porto/blob/main/main.js) (Envelope Hero)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio Site"]
  node_page["Portfolio Page<br/>[index.html]"]
  node_runtime["Interaction Runtime<br/>[main.js]"]
end

subgraph group_motion["Hero Interaction"]
  node_hero["Envelope Hero<br/>[main.js]"]
  node_letter["Letter Handoff<br/>[main.js]"]
end

subgraph group_browsing["Portfolio Browsing"]
  node_navigation["Section Navigation<br/>[main.js]"]
  node_timeline["Experience Timeline<br/>[main.js]"]
  node_galleries["Photo Galleries<br/>[main.js]"]
end

subgraph group_viewer["Document Viewer"]
  node_deck["Slide Deck Viewer<br/>[main.js]"]
end

node_visitor(("Visitor"))
node_pdf["PDF.js"]

node_visitor -->|"views and interacts"| node_page
node_runtime -->|"updates animation"| node_hero
node_hero -->|"hands off letter"| node_letter
node_navigation -->|"scrolls sections"| node_page
node_timeline -->|"scrolls timeline"| node_page
node_deck -->|"renders PDF pages"| node_pdf

click node_page "https://github.com/chrysan95/porto/blob/main/index.html"
click node_runtime "https://github.com/chrysan95/porto/blob/main/main.js"
click node_hero "https://github.com/chrysan95/porto/blob/main/main.js"
click node_letter "https://github.com/chrysan95/porto/blob/main/main.js"
click node_navigation "https://github.com/chrysan95/porto/blob/main/main.js"
click node_timeline "https://github.com/chrysan95/porto/blob/main/main.js"
click node_galleries "https://github.com/chrysan95/porto/blob/main/main.js"
click node_deck "https://github.com/chrysan95/porto/blob/main/main.js"

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_runtime toneBlue
class node_hero,node_letter toneAmber
class node_navigation,node_timeline,node_galleries toneMint
class node_deck toneRose
class node_visitor,node_pdf toneIndigo
```

## Components

### Portfolio Site

- [Portfolio Page](https://github.com/chrysan95/porto/blob/main/index.html): `index.html`
- [Interaction Runtime](https://github.com/chrysan95/porto/blob/main/main.js): `main.js`

### Hero Interaction

- [Envelope Hero](https://github.com/chrysan95/porto/blob/main/main.js): `main.js`
- [Letter Handoff](https://github.com/chrysan95/porto/blob/main/main.js): `main.js`

### Portfolio Browsing

- [Section Navigation](https://github.com/chrysan95/porto/blob/main/main.js): `main.js`
- [Experience Timeline](https://github.com/chrysan95/porto/blob/main/main.js): `main.js`
- [Photo Galleries](https://github.com/chrysan95/porto/blob/main/main.js): `main.js`

### Document Viewer

- [Slide Deck Viewer](https://github.com/chrysan95/porto/blob/main/main.js): `main.js`

### Other components

- **Visitor**
- **PDF.js**

## Connections

- Visitor → Portfolio Page: views and interacts
- Interaction Runtime → Envelope Hero: updates animation (evidence: `main.js`)
- Envelope Hero → Letter Handoff: hands off letter (evidence: `main.js`)
- Section Navigation → Portfolio Page: scrolls sections (evidence: `main.js`)
- Experience Timeline → Portfolio Page: scrolls timeline (evidence: `main.js`)
- Slide Deck Viewer → PDF.js: renders PDF pages (evidence: `main.js`)
