# rtwone/v3-webportofolio architecture

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

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

## Overview

This is a Next.js personal portfolio: visitors browse an immersive, bilingual homepage and can open a fuller project catalogue or follow contact and social links. Static content and project records supply the presentation; the root layout provides site metadata, structured data, and theme context. The README documents the visual, responsive, SEO, and outreach goals. Source excerpts show the main page-to-data and layout-to-theme wiring; unsampled details are not inferred.

Main entry points: [`app/page.tsx`](https://github.com/rtwone/v3-webportofolio/blob/main/app/page.tsx) (Homepage), [`app/projects/page.tsx`](https://github.com/rtwone/v3-webportofolio/blob/main/app/projects/page.tsx) (Project listing), [`lib/projects.ts`](https://github.com/rtwone/v3-webportofolio/blob/main/lib/projects.ts) (Project records), [`app/layout.tsx`](https://github.com/rtwone/v3-webportofolio/blob/main/app/layout.tsx) (Root layout and metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Visitor experience"]
  node_home["Homepage<br/>[page.tsx]"]
  node_project_listing["Project listing<br/>[page.tsx]"]
  node_outreach["Contact and social links<br/>[page.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_home_copy["Bilingual home content<br/>[home-content.ts]"]
  node_project_records["Project records<br/>[projects.ts]"]
end

subgraph group_shared["Shared presentation"]
  node_root_layout["Root layout and metadata<br/>[layout.tsx]"]
  node_theme_provider["Theme provider<br/>[theme-provider.tsx]"]
  node_theme_toggle["Theme toggle<br/>[theme-toggle.tsx]"]
end

node_visitor(("Visitor"))
node_external_contacts(("Contact destinations"))

node_visitor -->|"visits"| node_home
node_visitor -->|"opens"| node_project_listing
node_home -->|"reads copy"| node_home_copy
node_home -->|"reads projects"| node_project_records
node_project_listing -->|"reads projects"| node_project_records
node_home -->|"renders"| node_theme_toggle
node_root_layout -->|"wraps pages"| node_theme_provider
node_outreach -->|"links to"| node_external_contacts
node_home -->|"presents links"| node_outreach

click node_home "https://github.com/rtwone/v3-webportofolio/blob/main/app/page.tsx"
click node_project_listing "https://github.com/rtwone/v3-webportofolio/blob/main/app/projects/page.tsx"
click node_outreach "https://github.com/rtwone/v3-webportofolio/blob/main/app/page.tsx"
click node_home_copy "https://github.com/rtwone/v3-webportofolio/blob/main/lib/home-content.ts"
click node_project_records "https://github.com/rtwone/v3-webportofolio/blob/main/lib/projects.ts"
click node_root_layout "https://github.com/rtwone/v3-webportofolio/blob/main/app/layout.tsx"
click node_theme_provider "https://github.com/rtwone/v3-webportofolio/blob/main/components/theme-provider.tsx"
click node_theme_toggle "https://github.com/rtwone/v3-webportofolio/blob/main/components/theme-toggle.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_home,node_project_listing,node_outreach toneBlue
class node_home_copy,node_project_records toneAmber
class node_root_layout,node_theme_provider,node_theme_toggle toneMint
class node_visitor,node_external_contacts toneIndigo
```

## Components

### Visitor experience

- [Homepage](https://github.com/rtwone/v3-webportofolio/blob/main/app/page.tsx): `app/page.tsx`
- [Project listing](https://github.com/rtwone/v3-webportofolio/blob/main/app/projects/page.tsx): `app/projects/page.tsx`
- [Contact and social links](https://github.com/rtwone/v3-webportofolio/blob/main/app/page.tsx): `app/page.tsx`

### Portfolio content

- [Bilingual home content](https://github.com/rtwone/v3-webportofolio/blob/main/lib/home-content.ts): `lib/home-content.ts`
- [Project records](https://github.com/rtwone/v3-webportofolio/blob/main/lib/projects.ts): `lib/projects.ts`

### Shared presentation

- [Root layout and metadata](https://github.com/rtwone/v3-webportofolio/blob/main/app/layout.tsx): `app/layout.tsx`
- [Theme provider](https://github.com/rtwone/v3-webportofolio/blob/main/components/theme-provider.tsx): `components/theme-provider.tsx`
- [Theme toggle](https://github.com/rtwone/v3-webportofolio/blob/main/components/theme-toggle.tsx): `components/theme-toggle.tsx`

### Other components

- **Visitor**
- **Contact destinations**

## Connections

- Visitor → Homepage: visits (evidence: `README.md`)
- Visitor → Project listing: opens (evidence: `README.md`)
- Homepage → Bilingual home content: reads copy (evidence: `app/page.tsx`)
- Homepage → Project records: reads projects (evidence: `app/page.tsx`)
- Project listing → Project records: reads projects (evidence: `app/projects/page.tsx`)
- Homepage → Theme toggle: renders (evidence: `app/page.tsx`)
- Root layout and metadata → Theme provider: wraps pages (evidence: `app/layout.tsx`)
- Contact and social links → Contact destinations: links to (evidence: `app/page.tsx`)
- Homepage → Contact and social links: presents links (evidence: `app/page.tsx`)
