# coderblack25/stans-portfolio architecture

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

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

## Overview

This is a personal product-design portfolio built with Next.js. A visitor enters through the shared site shell, then browses the home, about, journal, playground, and work pages; project routes present detailed case studies backed by project-specific content. The graph preserves these distinct content areas and the navigation, theme, animation, and case-study presentation layers. Edges follow imports and component use listed in the supplied excerpts or SOURCE INDEX; unsampled components are included where the index identifies them, but their internal behavior is not inferred.

Main entry points: [`components/case-study/case-study.tsx`](https://github.com/coderblack25/stans-portfolio/blob/master/components/case-study/case-study.tsx) (Case study view), [`components/ui/motion-reveal.tsx`](https://github.com/coderblack25/stans-portfolio/blob/master/components/ui/motion-reveal.tsx) (Motion reveal), [`components/case-study/case-study-image.tsx`](https://github.com/coderblack25/stans-portfolio/blob/master/components/case-study/case-study-image.tsx) (Case study image), [`app/layout.tsx`](https://github.com/coderblack25/stans-portfolio/blob/master/app/layout.tsx) (Root layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Site shell"]
  node_root["Root layout<br/>[layout.tsx]"]
  node_bottom_layout["Bottom-nav layout<br/>[layout.tsx]"]
  node_footer_layout["Footer layout<br/>[layout.tsx]"]
  node_navbar["Navbar<br/>[navbar.tsx]"]
  node_theme_provider["Theme provider<br/>[theme-provider.tsx]"]
  node_bottom_nav["Bottom navigation"]
  node_footer["Footer<br/>[footer.tsx]"]
end

subgraph group_pages["Portfolio pages"]
  node_home["Home page<br/>[home.tsx]"]
  node_about["About page<br/>[about.tsx]"]
  node_journal["Journal page"]
  node_works["Works listing<br/>[works.tsx]"]
  node_playground["Playground<br/>[playground.tsx]"]
  node_case_study["Case study view<br/>[case-study.tsx]"]
  node_clime_data["Clime content<br/>[clime.ts]"]
  node_fairmoney_data["Fairmoney content<br/>[fairmoney.ts]"]
  node_prune_data["Prune content<br/>[prune.ts]"]
end

subgraph group_presentation["Presentation components"]
  node_theme_toggle["Theme toggle<br/>[theme-toggle.tsx]"]
  node_tech_drawer["Tech stack drawer"]
  node_tech_tools["Tech stack tools"]
  node_works_folder["Work cards<br/>[works-folder.tsx]"]
  node_tilt_card["Tilt card"]
  node_case_image["Case study image"]
  node_case_text["Case study text"]
  node_case_gallery["Case study gallery"]
  node_motion["Motion reveal<br/>[motion-reveal.tsx]"]
  node_button["Button<br/>[button.tsx]"]
  node_pill["Pill<br/>[pill.tsx]"]
  node_nav_menu["Navigation menu"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_root
node_root -->|"renders"| node_navbar
node_root -->|"wraps content"| node_theme_provider
node_visitor -.->|"opens route"| node_bottom_layout
node_bottom_layout -->|"renders"| node_bottom_nav
node_visitor -.->|"opens route"| node_footer_layout
node_footer_layout -->|"renders"| node_footer
node_navbar -->|"renders"| node_theme_toggle
node_bottom_nav -->|"opens"| node_tech_drawer
node_bottom_nav -->|"uses"| node_nav_menu
node_tech_drawer -->|"renders"| node_tech_tools
node_visitor -->|"views"| node_home
node_visitor -->|"views"| node_playground
node_visitor -->|"views"| node_works
node_visitor -->|"views"| node_about
node_visitor -->|"views"| node_journal
node_visitor -->|"views"| node_case_study
node_visitor -->|"views"| node_case_study
node_visitor -->|"views"| node_case_study
node_works -->|"renders"| node_works_folder
node_works_folder -->|"uses"| node_tilt_card
node_case_study -->|"renders"| node_case_image
node_case_study -->|"renders"| node_case_text
node_case_study -->|"imports"| node_case_gallery
node_clime_data -->|"embeds"| node_case_image
node_fairmoney_data -->|"embeds"| node_case_image
node_prune_data -->|"embeds"| node_case_image
node_home -->|"uses"| node_motion
node_home -->|"uses"| node_button
node_about -->|"uses"| node_motion
node_about -->|"uses"| node_button
node_journal -->|"uses"| node_motion
node_playground -->|"uses"| node_motion
node_case_study -->|"uses"| node_motion
node_case_study -->|"uses"| node_pill

click node_root "https://github.com/coderblack25/stans-portfolio/blob/master/app/layout.tsx"
click node_bottom_layout "https://github.com/coderblack25/stans-portfolio/blob/master/app/(with-bottom-navigation)/layout.tsx"
click node_footer_layout "https://github.com/coderblack25/stans-portfolio/blob/master/app/(with-footer)/layout.tsx"
click node_navbar "https://github.com/coderblack25/stans-portfolio/blob/master/components/navbar.tsx"
click node_theme_provider "https://github.com/coderblack25/stans-portfolio/blob/master/components/theme-provider.tsx"
click node_bottom_nav "https://github.com/coderblack25/stans-portfolio/blob/master/components/bottom-navigation.tsx"
click node_footer "https://github.com/coderblack25/stans-portfolio/blob/master/components/footer.tsx"
click node_home "https://github.com/coderblack25/stans-portfolio/blob/master/components/home.tsx"
click node_about "https://github.com/coderblack25/stans-portfolio/blob/master/components/about.tsx"
click node_journal "https://github.com/coderblack25/stans-portfolio/blob/master/components/articles-section.tsx"
click node_works "https://github.com/coderblack25/stans-portfolio/blob/master/components/works.tsx"
click node_playground "https://github.com/coderblack25/stans-portfolio/blob/master/components/playground.tsx"
click node_case_study "https://github.com/coderblack25/stans-portfolio/blob/master/components/case-study/case-study.tsx"
click node_clime_data "https://github.com/coderblack25/stans-portfolio/blob/master/data/case-studies/clime.ts"
click node_fairmoney_data "https://github.com/coderblack25/stans-portfolio/blob/master/data/case-studies/fairmoney.ts"
click node_prune_data "https://github.com/coderblack25/stans-portfolio/blob/master/data/case-studies/prune.ts"
click node_theme_toggle "https://github.com/coderblack25/stans-portfolio/blob/master/components/theme-toggle.tsx"
click node_tech_drawer "https://github.com/coderblack25/stans-portfolio/blob/master/components/tech-stack-drawer.tsx"
click node_tech_tools "https://github.com/coderblack25/stans-portfolio/blob/master/components/tech-stack-tools.tsx"
click node_works_folder "https://github.com/coderblack25/stans-portfolio/blob/master/components/works-folder.tsx"
click node_tilt_card "https://github.com/coderblack25/stans-portfolio/blob/master/components/ui/optimized-tilt-card.tsx"
click node_case_image "https://github.com/coderblack25/stans-portfolio/blob/master/components/case-study/case-study-image.tsx"
click node_case_text "https://github.com/coderblack25/stans-portfolio/blob/master/components/case-study/case-study-text.tsx"
click node_case_gallery "https://github.com/coderblack25/stans-portfolio/blob/master/components/case-study/case-study-gallery.tsx"
click node_motion "https://github.com/coderblack25/stans-portfolio/blob/master/components/ui/motion-reveal.tsx"
click node_button "https://github.com/coderblack25/stans-portfolio/blob/master/components/ui/button.tsx"
click node_pill "https://github.com/coderblack25/stans-portfolio/blob/master/components/ui/pill.tsx"
click node_nav_menu "https://github.com/coderblack25/stans-portfolio/blob/master/components/ui/navigation-menu.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,node_bottom_layout,node_footer_layout,node_navbar,node_theme_provider,node_bottom_nav,node_footer toneBlue
class node_home,node_about,node_journal,node_works,node_playground,node_case_study,node_clime_data,node_fairmoney_data,node_prune_data toneAmber
class node_theme_toggle,node_tech_drawer,node_tech_tools,node_works_folder,node_tilt_card,node_case_image,node_case_text,node_case_gallery,node_motion,node_button,node_pill,node_nav_menu toneMint
class node_visitor toneIndigo
```

## Components

### Site shell

- [Root layout](https://github.com/coderblack25/stans-portfolio/blob/master/app/layout.tsx): `app/layout.tsx`
- [Bottom-nav layout](https://github.com/coderblack25/stans-portfolio/blob/master/app/(with-bottom-navigation)/layout.tsx): `app/(with-bottom-navigation)/layout.tsx`
- [Footer layout](https://github.com/coderblack25/stans-portfolio/blob/master/app/(with-footer)/layout.tsx): `app/(with-footer)/layout.tsx`
- [Navbar](https://github.com/coderblack25/stans-portfolio/blob/master/components/navbar.tsx): `components/navbar.tsx`
- [Theme provider](https://github.com/coderblack25/stans-portfolio/blob/master/components/theme-provider.tsx): `components/theme-provider.tsx`
- [Bottom navigation](https://github.com/coderblack25/stans-portfolio/blob/master/components/bottom-navigation.tsx): `components/bottom-navigation.tsx`
- [Footer](https://github.com/coderblack25/stans-portfolio/blob/master/components/footer.tsx): `components/footer.tsx`

### Portfolio pages

- [Home page](https://github.com/coderblack25/stans-portfolio/blob/master/components/home.tsx): `components/home.tsx`
- [About page](https://github.com/coderblack25/stans-portfolio/blob/master/components/about.tsx): `components/about.tsx`
- [Journal page](https://github.com/coderblack25/stans-portfolio/blob/master/components/articles-section.tsx): `components/articles-section.tsx`
- [Works listing](https://github.com/coderblack25/stans-portfolio/blob/master/components/works.tsx): `components/works.tsx`
- [Playground](https://github.com/coderblack25/stans-portfolio/blob/master/components/playground.tsx): `components/playground.tsx`
- [Case study view](https://github.com/coderblack25/stans-portfolio/blob/master/components/case-study/case-study.tsx): `components/case-study/case-study.tsx`
- [Clime content](https://github.com/coderblack25/stans-portfolio/blob/master/data/case-studies/clime.ts): `data/case-studies/clime.ts`
- [Fairmoney content](https://github.com/coderblack25/stans-portfolio/blob/master/data/case-studies/fairmoney.ts): `data/case-studies/fairmoney.ts`
- [Prune content](https://github.com/coderblack25/stans-portfolio/blob/master/data/case-studies/prune.ts): `data/case-studies/prune.ts`

### Presentation components

- [Theme toggle](https://github.com/coderblack25/stans-portfolio/blob/master/components/theme-toggle.tsx): `components/theme-toggle.tsx`
- [Tech stack drawer](https://github.com/coderblack25/stans-portfolio/blob/master/components/tech-stack-drawer.tsx): `components/tech-stack-drawer.tsx`
- [Tech stack tools](https://github.com/coderblack25/stans-portfolio/blob/master/components/tech-stack-tools.tsx): `components/tech-stack-tools.tsx`
- [Work cards](https://github.com/coderblack25/stans-portfolio/blob/master/components/works-folder.tsx): `components/works-folder.tsx`
- [Tilt card](https://github.com/coderblack25/stans-portfolio/blob/master/components/ui/optimized-tilt-card.tsx): `components/ui/optimized-tilt-card.tsx`
- [Case study image](https://github.com/coderblack25/stans-portfolio/blob/master/components/case-study/case-study-image.tsx): `components/case-study/case-study-image.tsx`
- [Case study text](https://github.com/coderblack25/stans-portfolio/blob/master/components/case-study/case-study-text.tsx): `components/case-study/case-study-text.tsx`
- [Case study gallery](https://github.com/coderblack25/stans-portfolio/blob/master/components/case-study/case-study-gallery.tsx): `components/case-study/case-study-gallery.tsx`
- [Motion reveal](https://github.com/coderblack25/stans-portfolio/blob/master/components/ui/motion-reveal.tsx): `components/ui/motion-reveal.tsx`
- [Button](https://github.com/coderblack25/stans-portfolio/blob/master/components/ui/button.tsx): `components/ui/button.tsx`
- [Pill](https://github.com/coderblack25/stans-portfolio/blob/master/components/ui/pill.tsx): `components/ui/pill.tsx`
- [Navigation menu](https://github.com/coderblack25/stans-portfolio/blob/master/components/ui/navigation-menu.tsx): `components/ui/navigation-menu.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Root layout: opens site
- Root layout → Navbar: renders (evidence: `app/layout.tsx`)
- Root layout → Theme provider: wraps content (evidence: `app/layout.tsx`)
- Visitor → Bottom-nav layout: opens route
- Bottom-nav layout → Bottom navigation: renders (evidence: `app/(with-bottom-navigation)/layout.tsx`)
- Visitor → Footer layout: opens route
- Footer layout → Footer: renders (evidence: `app/(with-footer)/layout.tsx`)
- Navbar → Theme toggle: renders (evidence: `components/navbar.tsx`)
- Bottom navigation → Tech stack drawer: opens (evidence: `components/bottom-navigation.tsx`)
- Bottom navigation → Navigation menu: uses (evidence: `components/bottom-navigation.tsx`)
- Tech stack drawer → Tech stack tools: renders (evidence: `components/tech-stack-drawer.tsx`)
- Visitor → Home page: views
- Visitor → Playground: views
- Visitor → Works listing: views
- Visitor → About page: views
- Visitor → Journal page: views
- Visitor → Case study view: views
- Visitor → Case study view: views
- Visitor → Case study view: views
- Works listing → Work cards: renders (evidence: `components/works.tsx`)
- Work cards → Tilt card: uses (evidence: `components/works-folder.tsx`)
- Case study view → Case study image: renders (evidence: `components/case-study/case-study.tsx`)
- Case study view → Case study text: renders (evidence: `components/case-study/case-study.tsx`)
- Case study view → Case study gallery: imports (evidence: `components/case-study/case-study.tsx`)
- Clime content → Case study image: embeds (evidence: `data/case-studies/clime.ts`)
- Fairmoney content → Case study image: embeds (evidence: `data/case-studies/fairmoney.ts`)
- Prune content → Case study image: embeds (evidence: `data/case-studies/prune.ts`)
- Home page → Motion reveal: uses (evidence: `components/home.tsx`)
- Home page → Button: uses (evidence: `components/home.tsx`)
- About page → Motion reveal: uses (evidence: `components/about.tsx`)
- About page → Button: uses (evidence: `components/about.tsx`)
- Journal page → Motion reveal: uses (evidence: `components/articles-section.tsx`)
- Playground → Motion reveal: uses (evidence: `components/playground.tsx`)
- Case study view → Motion reveal: uses (evidence: `components/case-study/case-study.tsx`)
- Case study view → Pill: uses (evidence: `components/case-study/case-study.tsx`)
