# chxxlk/portfolio-web architecture

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

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

## Overview

This is a personal portfolio website built with Next.js. A visitor enters through the shared layout and can navigate the home page’s hero, about, projects, skills, and contact sections; the sampled projects and contact sections currently show placeholder text. The graph captures those evidenced render and navigation relationships, plus shared presentation components. Other portfolio-related modules appear in the file tree, but their behavior and wiring were not sampled, so they are not connected speculatively.

Main entry points: [`src/app/page.tsx`](https://github.com/chxxlk/portfolio-web/blob/main/src/app/page.tsx) (Home page), [`src/components/layout/container.tsx`](https://github.com/chxxlk/portfolio-web/blob/main/src/components/layout/container.tsx) (Content container), [`src/components/sections/homeHero.tsx`](https://github.com/chxxlk/portfolio-web/blob/main/src/components/sections/homeHero.tsx) (Hero section), [`src/components/ui/sectionTitle.tsx`](https://github.com/chxxlk/portfolio-web/blob/main/src/components/ui/sectionTitle.tsx) (Section title)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_root_layout["Root layout<br/>[layout.tsx]"]
  node_navbar["Section navigation<br/>[navbar.tsx]"]
  node_home_page["Home page<br/>[page.tsx]"]
end

subgraph group_sections["Portfolio sections"]
  node_hero["Hero section<br/>[homeHero.tsx]"]
  node_about["About section<br/>[aboutSection.tsx]"]
  node_projects["Projects section"]
  node_skills["Skills section<br/>[skillsSection.tsx]"]
  node_contact["Contact section<br/>[contactSection.tsx]"]
end

subgraph group_presentation["Shared presentation"]
  node_container["Content container<br/>[container.tsx]"]
  node_title["Section title<br/>[sectionTitle.tsx]"]
  node_button["Pixel button<br/>[button.tsx]"]
  node_retro_grid["Retro grid<br/>[retroGrid.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_root_layout
node_root_layout -->|"renders"| node_navbar
node_visitor -.->|"visits"| node_home_page
node_home_page -->|"renders"| node_hero
node_home_page -->|"renders"| node_about
node_home_page -->|"renders"| node_projects
node_home_page -->|"renders"| node_skills
node_home_page -->|"renders"| node_contact
node_navbar -->|"scrolls to sections"| node_home_page
node_hero -->|"renders within"| node_container
node_hero -->|"renders"| node_button
node_hero -->|"renders"| node_retro_grid
node_about -->|"renders within"| node_container
node_about -->|"renders"| node_title
node_projects -->|"renders within"| node_container
node_projects -->|"renders"| node_title
node_skills -->|"renders within"| node_container
node_skills -->|"renders"| node_title
node_contact -->|"renders within"| node_container
node_contact -->|"renders"| node_title

click node_root_layout "https://github.com/chxxlk/portfolio-web/blob/main/src/app/layout.tsx"
click node_navbar "https://github.com/chxxlk/portfolio-web/blob/main/src/components/layout/navbar.tsx"
click node_home_page "https://github.com/chxxlk/portfolio-web/blob/main/src/app/page.tsx"
click node_hero "https://github.com/chxxlk/portfolio-web/blob/main/src/components/sections/homeHero.tsx"
click node_about "https://github.com/chxxlk/portfolio-web/blob/main/src/components/sections/aboutSection.tsx"
click node_projects "https://github.com/chxxlk/portfolio-web/blob/main/src/components/sections/projectsSection.tsx"
click node_skills "https://github.com/chxxlk/portfolio-web/blob/main/src/components/sections/skillsSection.tsx"
click node_contact "https://github.com/chxxlk/portfolio-web/blob/main/src/components/sections/contactSection.tsx"
click node_container "https://github.com/chxxlk/portfolio-web/blob/main/src/components/layout/container.tsx"
click node_title "https://github.com/chxxlk/portfolio-web/blob/main/src/components/ui/sectionTitle.tsx"
click node_button "https://github.com/chxxlk/portfolio-web/blob/main/src/components/ui/button.tsx"
click node_retro_grid "https://github.com/chxxlk/portfolio-web/blob/main/src/components/ui/retroGrid.tsx"

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_root_layout,node_navbar,node_home_page toneBlue
class node_hero,node_about,node_projects,node_skills,node_contact toneAmber
class node_container,node_title,node_button,node_retro_grid toneMint
class node_visitor toneIndigo
```

## Components

### App and navigation

- [Root layout](https://github.com/chxxlk/portfolio-web/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Section navigation](https://github.com/chxxlk/portfolio-web/blob/main/src/components/layout/navbar.tsx): `src/components/layout/navbar.tsx`
- [Home page](https://github.com/chxxlk/portfolio-web/blob/main/src/app/page.tsx): `src/app/page.tsx`

### Portfolio sections

- [Hero section](https://github.com/chxxlk/portfolio-web/blob/main/src/components/sections/homeHero.tsx): `src/components/sections/homeHero.tsx`
- [About section](https://github.com/chxxlk/portfolio-web/blob/main/src/components/sections/aboutSection.tsx): `src/components/sections/aboutSection.tsx`
- [Projects section](https://github.com/chxxlk/portfolio-web/blob/main/src/components/sections/projectsSection.tsx): `src/components/sections/projectsSection.tsx`
- [Skills section](https://github.com/chxxlk/portfolio-web/blob/main/src/components/sections/skillsSection.tsx): `src/components/sections/skillsSection.tsx`
- [Contact section](https://github.com/chxxlk/portfolio-web/blob/main/src/components/sections/contactSection.tsx): `src/components/sections/contactSection.tsx`

### Shared presentation

- [Content container](https://github.com/chxxlk/portfolio-web/blob/main/src/components/layout/container.tsx): `src/components/layout/container.tsx`
- [Section title](https://github.com/chxxlk/portfolio-web/blob/main/src/components/ui/sectionTitle.tsx): `src/components/ui/sectionTitle.tsx`
- [Pixel button](https://github.com/chxxlk/portfolio-web/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Retro grid](https://github.com/chxxlk/portfolio-web/blob/main/src/components/ui/retroGrid.tsx): `src/components/ui/retroGrid.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Root layout: opens site (evidence: `src/app/layout.tsx`)
- Root layout → Section navigation: renders (evidence: `src/app/layout.tsx`)
- Visitor → Home page: visits
- Home page → Hero section: renders (evidence: `src/app/page.tsx`)
- Home page → About section: renders (evidence: `src/app/page.tsx`)
- Home page → Projects section: renders (evidence: `src/app/page.tsx`)
- Home page → Skills section: renders (evidence: `src/app/page.tsx`)
- Home page → Contact section: renders (evidence: `src/app/page.tsx`)
- Section navigation → Home page: scrolls to sections (evidence: `src/components/layout/navbar.tsx`)
- Hero section → Content container: renders within (evidence: `src/components/sections/homeHero.tsx`)
- Hero section → Pixel button: renders (evidence: `src/components/sections/homeHero.tsx`)
- Hero section → Retro grid: renders (evidence: `src/components/sections/homeHero.tsx`)
- About section → Content container: renders within (evidence: `src/components/sections/aboutSection.tsx`)
- About section → Section title: renders (evidence: `src/components/sections/aboutSection.tsx`)
- Projects section → Content container: renders within (evidence: `src/components/sections/projectsSection.tsx`)
- Projects section → Section title: renders (evidence: `src/components/sections/projectsSection.tsx`)
- Skills section → Content container: renders within (evidence: `src/components/sections/skillsSection.tsx`)
- Skills section → Section title: renders (evidence: `src/components/sections/skillsSection.tsx`)
- Contact section → Content container: renders within (evidence: `src/components/sections/contactSection.tsx`)
- Contact section → Section title: renders (evidence: `src/components/sections/contactSection.tsx`)
