# martin226/v3 architecture

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

- Interactive diagram: https://gitdiagram.com/martin226/v3
- Repository: https://github.com/martin226/v3

## Overview

This is a Next.js personal website presenting Martin Sit’s experience, projects, and writing. Visitors enter the portfolio or writing routes; the portfolio selects experience or project content and renders interactive image tiles, while writing routes provide articles and a generated social preview image. Shared layouts supply navigation, footer, cursor effects, and site styling. The sampled source supports the portfolio’s component calls and the social-image generation’s file reads; writing-page internals and some route wiring are represented only at their tree-supported paths, so those links are omitted or marked unverified.

Main entry points: [`src/app/(home)/Showcase.js`](https://github.com/martin226/v3/blob/main/src/app/(home)/Showcase.js) (Experience and projects), [`src/app/(site)/layout.js`](https://github.com/martin226/v3/blob/main/src/app/(site)/layout.js) (Writing site layout), [`src/app/(home)/layout.js`](https://github.com/martin226/v3/blob/main/src/app/(home)/layout.js) (Portfolio layout), [`src/app/(home)`](https://github.com/martin226/v3/tree/main/src/app/(home)) (Home routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio"]
  node_home_routes["Home routes"]
  node_showcase["Experience and projects<br/>[Showcase.js]"]
  node_portfolio_content["Portfolio content<br/>[content.js]"]
  node_project_media["Project videos"]
end

subgraph group_writing["Writing"]
  node_writing_routes["Writing routes"]
  node_article_content["Article content<br/>[page.mdx]"]
  node_social_preview["Social preview image"]
end

subgraph group_shared["Shared presentation"]
  node_site_layout["Writing site layout<br/>[layout.js]"]
  node_home_layout["Portfolio layout<br/>[layout.js]"]
  node_masthead["Navigation masthead<br/>[Masthead.js]"]
  node_footer["Footer links<br/>[Footer.js]"]
  node_bitmap_effect["Bitmap reveal effect<br/>[Bits.js]"]
  node_cursor["Custom cursor<br/>[Cursor.js]"]
  node_link_component["Link behavior<br/>[A.js]"]
end

subgraph group_platform["Site platform"]
  node_analytics{{"Analytics services"}}
  node_site_metadata["Robots and sitemap"]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens portfolio"| node_home_routes
node_visitor -.->|"opens writing"| node_writing_routes
node_home_routes -->|"renders view"| node_showcase
node_showcase -->|"reads data"| node_portfolio_content
node_showcase -->|"renders tiles"| node_bitmap_effect
node_showcase -->|"renders navigation"| node_masthead
node_showcase -->|"renders footer"| node_footer
node_showcase -->|"renders links"| node_link_component
node_portfolio_content -->|"references videos"| node_project_media
node_writing_routes -.->|"serves articles"| node_article_content
node_site_layout -->|"renders navigation"| node_masthead
node_site_layout -->|"renders footer"| node_footer
node_site_layout -->|"renders cursor"| node_cursor
node_home_layout -->|"renders cursor"| node_cursor
node_site_layout -->|"configures analytics"| node_analytics
node_home_layout -->|"configures analytics"| node_analytics
node_social_preview -->|"reads article"| node_article_content

click node_home_routes "https://github.com/martin226/v3/tree/main/src/app/(home)"
click node_showcase "https://github.com/martin226/v3/blob/main/src/app/(home)/Showcase.js"
click node_portfolio_content "https://github.com/martin226/v3/blob/main/src/app/(home)/content.js"
click node_project_media "https://github.com/martin226/v3/tree/main/public/videos"
click node_writing_routes "https://github.com/martin226/v3/tree/main/src/app/(site)/writing"
click node_article_content "https://github.com/martin226/v3/blob/main/src/app/(site)/writing/lessons-from-2025/page.mdx"
click node_social_preview "https://github.com/martin226/v3/blob/main/src/app/(site)/writing/lessons-from-2025/opengraph-image.jsx"
click node_site_layout "https://github.com/martin226/v3/blob/main/src/app/(site)/layout.js"
click node_home_layout "https://github.com/martin226/v3/blob/main/src/app/(home)/layout.js"
click node_masthead "https://github.com/martin226/v3/blob/main/src/app/components/Masthead.js"
click node_footer "https://github.com/martin226/v3/blob/main/src/app/components/Footer.js"
click node_bitmap_effect "https://github.com/martin226/v3/blob/main/src/app/components/Bits.js"
click node_cursor "https://github.com/martin226/v3/blob/main/src/app/components/Cursor.js"
click node_link_component "https://github.com/martin226/v3/blob/main/src/app/components/A.js"
click node_site_metadata "https://github.com/martin226/v3/tree/main/src/app"

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_home_routes,node_showcase,node_portfolio_content,node_project_media toneBlue
class node_writing_routes,node_article_content,node_social_preview toneAmber
class node_site_layout,node_home_layout,node_masthead,node_footer,node_bitmap_effect,node_cursor,node_link_component toneMint
class node_analytics,node_site_metadata toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio

- [Home routes](https://github.com/martin226/v3/tree/main/src/app/(home)): `src/app/(home)`
- [Experience and projects](https://github.com/martin226/v3/blob/main/src/app/(home)/Showcase.js): `src/app/(home)/Showcase.js`
- [Portfolio content](https://github.com/martin226/v3/blob/main/src/app/(home)/content.js): `src/app/(home)/content.js`
- [Project videos](https://github.com/martin226/v3/tree/main/public/videos): `public/videos`

### Writing

- [Writing routes](https://github.com/martin226/v3/tree/main/src/app/(site)/writing): `src/app/(site)/writing`
- [Article content](https://github.com/martin226/v3/blob/main/src/app/(site)/writing/lessons-from-2025/page.mdx): `src/app/(site)/writing/lessons-from-2025/page.mdx`
- [Social preview image](https://github.com/martin226/v3/blob/main/src/app/(site)/writing/lessons-from-2025/opengraph-image.jsx): `src/app/(site)/writing/lessons-from-2025/opengraph-image.jsx`

### Shared presentation

- [Writing site layout](https://github.com/martin226/v3/blob/main/src/app/(site)/layout.js): `src/app/(site)/layout.js`
- [Portfolio layout](https://github.com/martin226/v3/blob/main/src/app/(home)/layout.js): `src/app/(home)/layout.js`
- [Navigation masthead](https://github.com/martin226/v3/blob/main/src/app/components/Masthead.js): `src/app/components/Masthead.js`
- [Footer links](https://github.com/martin226/v3/blob/main/src/app/components/Footer.js): `src/app/components/Footer.js`
- [Bitmap reveal effect](https://github.com/martin226/v3/blob/main/src/app/components/Bits.js): `src/app/components/Bits.js`
- [Custom cursor](https://github.com/martin226/v3/blob/main/src/app/components/Cursor.js): `src/app/components/Cursor.js`
- [Link behavior](https://github.com/martin226/v3/blob/main/src/app/components/A.js): `src/app/components/A.js`

### Site platform

- **Analytics services**
- [Robots and sitemap](https://github.com/martin226/v3/tree/main/src/app): `src/app`

### Other components

- **Visitor**

## Connections

- Visitor → Home routes: opens portfolio
- Visitor → Writing routes: opens writing
- Home routes → Experience and projects: renders view (evidence: `src/app/(home)/projects/page.js`)
- Experience and projects → Portfolio content: reads data (evidence: `src/app/(home)/Showcase.js`)
- Experience and projects → Bitmap reveal effect: renders tiles (evidence: `src/app/(home)/Showcase.js`)
- Experience and projects → Navigation masthead: renders navigation (evidence: `src/app/(home)/Showcase.js`)
- Experience and projects → Footer links: renders footer (evidence: `src/app/(home)/Showcase.js`)
- Experience and projects → Link behavior: renders links (evidence: `src/app/(home)/Showcase.js`)
- Portfolio content → Project videos: references videos (evidence: `src/app/(home)/content.js`)
- Writing routes → Article content: serves articles
- Writing site layout → Navigation masthead: renders navigation (evidence: `src/app/(site)/layout.js`)
- Writing site layout → Footer links: renders footer (evidence: `src/app/(site)/layout.js`)
- Writing site layout → Custom cursor: renders cursor (evidence: `src/app/(site)/layout.js`)
- Portfolio layout → Custom cursor: renders cursor (evidence: `src/app/(home)/layout.js`)
- Writing site layout → Analytics services: configures analytics (evidence: `src/app/(site)/layout.js`)
- Portfolio layout → Analytics services: configures analytics (evidence: `src/app/(home)/layout.js`)
- Social preview image → Article content: reads article (evidence: `src/app/(site)/writing/lessons-from-2025/opengraph-image.jsx`)
