# dn79ggc/landpage architecture

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

- Interactive diagram: https://gitdiagram.com/dn79ggc/landpage
- Repository: https://github.com/dn79ggc/landpage

## Overview

This repository is a single-page portfolio landing page. A visitor opens the page, browses its About, Projects, and Contact sections, and can switch themes; the page also animates code-rain and network-graph canvas effects. The sampled entry point shows it creating and controlling these effects and selecting header transitions. The README documents hash-routed sections and debug controls, but the excerpts do not show their full implementation, so those details are represented only where supported.

Main entry points: [`src/main.js`](https://github.com/dn79ggc/landpage/blob/main/src/main.js) (Page controller), [`src/graph.js`](https://github.com/dn79ggc/landpage/blob/main/src/graph.js) (Network graphs), [`src/rain.js`](https://github.com/dn79ggc/landpage/blob/main/src/rain.js) (Code rain), [`src/constellation.js`](https://github.com/dn79ggc/landpage/blob/main/src/constellation.js) (Header transitions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Page experience"]
  node_entry["Page controller<br/>[main.js]"]
  node_content["Section content<br/>[sections.js]"]
  node_browser["Browser UI"]
end

subgraph group_effects["Visual effects"]
  node_rain["Code rain<br/>[rain.js]"]
  node_graphs["Network graphs<br/>[graph.js]"]
  node_header["Header transitions<br/>[constellation.js]"]
  node_textmorph["Text morph<br/>[morph.js]"]
end

subgraph group_geometry["Effect internals"]
  node_shapes["Graph geometry<br/>[shapes.js]"]
  node_random["Seeded random<br/>[rng.js]"]
end

node_visitor(("Visitor"))
node_anime["Anime.js"]

node_visitor -->|"opens and interacts"| node_entry
node_entry -->|"selects sections"| node_content
node_entry -->|"creates and controls"| node_rain
node_entry -->|"creates and controls"| node_graphs
node_entry -->|"runs light transition"| node_header
node_entry -->|"runs text transition"| node_textmorph
node_entry -->|"updates page UI"| node_browser
node_graphs -->|"uses random generator"| node_random
node_graphs -->|"builds graph shapes"| node_shapes
node_rain -->|"uses random generator"| node_random
node_entry -->|"animates transitions"| node_anime
node_header -->|"animates drawing"| node_anime
node_textmorph -->|"animates text"| node_anime

click node_entry "https://github.com/dn79ggc/landpage/blob/main/src/main.js"
click node_content "https://github.com/dn79ggc/landpage/blob/main/src/sections.js"
click node_rain "https://github.com/dn79ggc/landpage/blob/main/src/rain.js"
click node_graphs "https://github.com/dn79ggc/landpage/blob/main/src/graph.js"
click node_header "https://github.com/dn79ggc/landpage/blob/main/src/constellation.js"
click node_textmorph "https://github.com/dn79ggc/landpage/blob/main/src/morph.js"
click node_shapes "https://github.com/dn79ggc/landpage/blob/main/src/shapes.js"
click node_random "https://github.com/dn79ggc/landpage/blob/main/src/rng.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_entry,node_content,node_browser toneBlue
class node_rain,node_graphs,node_header,node_textmorph toneAmber
class node_shapes,node_random toneMint
class node_visitor,node_anime toneIndigo
```

## Components

### Page experience

- [Page controller](https://github.com/dn79ggc/landpage/blob/main/src/main.js): `src/main.js`
- [Section content](https://github.com/dn79ggc/landpage/blob/main/src/sections.js): `src/sections.js`
- **Browser UI**

### Visual effects

- [Code rain](https://github.com/dn79ggc/landpage/blob/main/src/rain.js): `src/rain.js`
- [Network graphs](https://github.com/dn79ggc/landpage/blob/main/src/graph.js): `src/graph.js`
- [Header transitions](https://github.com/dn79ggc/landpage/blob/main/src/constellation.js): `src/constellation.js`
- [Text morph](https://github.com/dn79ggc/landpage/blob/main/src/morph.js): `src/morph.js`

### Effect internals

- [Graph geometry](https://github.com/dn79ggc/landpage/blob/main/src/shapes.js): `src/shapes.js`
- [Seeded random](https://github.com/dn79ggc/landpage/blob/main/src/rng.js): `src/rng.js`

### Other components

- **Visitor**
- **Anime.js**

## Connections

- Visitor → Page controller: opens and interacts (evidence: `README.md`)
- Page controller → Section content: selects sections (evidence: `src/main.js`)
- Page controller → Code rain: creates and controls (evidence: `src/main.js`)
- Page controller → Network graphs: creates and controls (evidence: `src/main.js`)
- Page controller → Header transitions: runs light transition (evidence: `src/main.js`)
- Page controller → Text morph: runs text transition (evidence: `src/main.js`)
- Page controller → Browser UI: updates page UI (evidence: `src/main.js`)
- Network graphs → Seeded random: uses random generator (evidence: `src/graph.js`)
- Network graphs → Graph geometry: builds graph shapes (evidence: `src/graph.js`)
- Code rain → Seeded random: uses random generator (evidence: `src/rain.js`)
- Page controller → Anime.js: animates transitions (evidence: `src/main.js`)
- Header transitions → Anime.js: animates drawing (evidence: `src/constellation.js`)
- Text morph → Anime.js: animates text (evidence: `src/morph.js`)
