# bakuyy/portfoliov2 architecture

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

- Interactive diagram: https://gitdiagram.com/bakuyy/portfoliov2
- Repository: https://github.com/bakuyy/portfoliov2

## Overview

This is a React portfolio site: visitors browse a home/profile page, projects, blogs, and a curiosity page, with navigation, a theme toggle, and footer links. The app shell mounts shared navigation, route content, and footer; the projects page renders reusable project cards. The resume PDF is linked from navigation, while a separate resume page exists but is not currently routed. The graph reflects sampled source and the source index; blog cards are imported but commented out, so no rendering relationship is shown.

Main entry points: [`src/components/util/ThemeContext.jsx`](https://github.com/bakuyy/portfoliov2/blob/main/src/components/util/ThemeContext.jsx) (Theme Provider), [`src/components/Routing.jsx`](https://github.com/bakuyy/portfoliov2/blob/main/src/components/Routing.jsx) (Route Dispatch), [`src/App.jsx`](https://github.com/bakuyy/portfoliov2/blob/main/src/App.jsx) (App Shell), [`src/main.jsx`](https://github.com/bakuyy/portfoliov2/blob/main/src/main.jsx) (React Entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App Shell"]
  node_entry["React Entry<br/>[main.jsx]"]
  node_app["App Shell<br/>[App.jsx]"]
  node_routing["Route Dispatch<br/>[Routing.jsx]"]
end

subgraph group_pages["Portfolio Pages"]
  node_home["Home Profile<br/>[Home.jsx]"]
  node_projects["Projects Listing<br/>[Projects.jsx]"]
  node_blogs["Blogs Page<br/>[Blogs.jsx]"]
  node_cove["Cove Page<br/>[Cove.jsx]"]
  node_resume["Resume Page<br/>[Resume.jsx]"]
  node_resumeasset["Resume PDF<br/>[resume.pdf]"]
end

subgraph group_components["UI Components"]
  node_navbar["Navigation Bar<br/>[Navbar.jsx]"]
  node_footer["Footer Links<br/>[Footer.jsx]"]
  node_projectcard["Project Card<br/>[Project.jsx]"]
  node_blogcard["Blog Card<br/>[Blog.jsx]"]
end

subgraph group_theme["Theme State"]
  node_themeprovider["Theme Provider<br/>[ThemeContext.jsx]"]
end

node_visitor(("Site Visitor"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"wraps app"| node_themeprovider
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_routing
node_app -->|"renders"| node_footer
node_routing -->|"routes to"| node_home
node_routing -->|"routes to"| node_blogs
node_routing -->|"routes to"| node_projects
node_routing -->|"routes to"| node_cove
node_home -->|"navigates to"| node_cove
node_projects -->|"renders"| node_projectcard
node_navbar -->|"updates theme"| node_themeprovider
node_home -->|"reads theme"| node_themeprovider
node_projects -->|"reads theme"| node_themeprovider
node_blogs -->|"reads theme"| node_themeprovider
node_cove -->|"reads theme"| node_themeprovider
node_resume -->|"reads theme"| node_themeprovider
node_navbar -->|"links PDF"| node_resumeasset

click node_entry "https://github.com/bakuyy/portfoliov2/blob/main/src/main.jsx"
click node_app "https://github.com/bakuyy/portfoliov2/blob/main/src/App.jsx"
click node_routing "https://github.com/bakuyy/portfoliov2/blob/main/src/components/Routing.jsx"
click node_navbar "https://github.com/bakuyy/portfoliov2/blob/main/src/components/Navbar.jsx"
click node_footer "https://github.com/bakuyy/portfoliov2/blob/main/src/components/Footer.jsx"
click node_home "https://github.com/bakuyy/portfoliov2/blob/main/src/pages/Home.jsx"
click node_projects "https://github.com/bakuyy/portfoliov2/blob/main/src/pages/Projects.jsx"
click node_blogs "https://github.com/bakuyy/portfoliov2/blob/main/src/pages/Blogs.jsx"
click node_cove "https://github.com/bakuyy/portfoliov2/blob/main/src/pages/Cove.jsx"
click node_resume "https://github.com/bakuyy/portfoliov2/blob/main/src/pages/Resume.jsx"
click node_projectcard "https://github.com/bakuyy/portfoliov2/blob/main/src/components/Project.jsx"
click node_blogcard "https://github.com/bakuyy/portfoliov2/blob/main/src/components/Blog.jsx"
click node_themeprovider "https://github.com/bakuyy/portfoliov2/blob/main/src/components/util/ThemeContext.jsx"
click node_resumeasset "https://github.com/bakuyy/portfoliov2/blob/main/src/assets/resume.pdf"

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_app,node_routing toneBlue
class node_home,node_projects,node_blogs,node_cove,node_resume,node_resumeasset toneAmber
class node_navbar,node_footer,node_projectcard,node_blogcard toneMint
class node_themeprovider toneRose
class node_visitor toneIndigo
```

## Components

### App Shell

- [React Entry](https://github.com/bakuyy/portfoliov2/blob/main/src/main.jsx): `src/main.jsx`
- [App Shell](https://github.com/bakuyy/portfoliov2/blob/main/src/App.jsx): `src/App.jsx`
- [Route Dispatch](https://github.com/bakuyy/portfoliov2/blob/main/src/components/Routing.jsx): `src/components/Routing.jsx`

### Portfolio Pages

- [Home Profile](https://github.com/bakuyy/portfoliov2/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Projects Listing](https://github.com/bakuyy/portfoliov2/blob/main/src/pages/Projects.jsx): `src/pages/Projects.jsx`
- [Blogs Page](https://github.com/bakuyy/portfoliov2/blob/main/src/pages/Blogs.jsx): `src/pages/Blogs.jsx`
- [Cove Page](https://github.com/bakuyy/portfoliov2/blob/main/src/pages/Cove.jsx): `src/pages/Cove.jsx`
- [Resume Page](https://github.com/bakuyy/portfoliov2/blob/main/src/pages/Resume.jsx): `src/pages/Resume.jsx`
- [Resume PDF](https://github.com/bakuyy/portfoliov2/blob/main/src/assets/resume.pdf): `src/assets/resume.pdf`

### UI Components

- [Navigation Bar](https://github.com/bakuyy/portfoliov2/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Footer Links](https://github.com/bakuyy/portfoliov2/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- [Project Card](https://github.com/bakuyy/portfoliov2/blob/main/src/components/Project.jsx): `src/components/Project.jsx`
- [Blog Card](https://github.com/bakuyy/portfoliov2/blob/main/src/components/Blog.jsx): `src/components/Blog.jsx`

### Theme State

- [Theme Provider](https://github.com/bakuyy/portfoliov2/blob/main/src/components/util/ThemeContext.jsx): `src/components/util/ThemeContext.jsx`

### Other components

- **Site Visitor**

## Connections

- Site Visitor → React Entry: opens site
- React Entry → Theme Provider: wraps app (evidence: `src/main.jsx`)
- React Entry → App Shell: renders (evidence: `src/main.jsx`)
- App Shell → Navigation Bar: renders (evidence: `src/App.jsx`)
- App Shell → Route Dispatch: renders (evidence: `src/App.jsx`)
- App Shell → Footer Links: renders (evidence: `src/App.jsx`)
- Route Dispatch → Home Profile: routes to (evidence: `src/components/Routing.jsx`)
- Route Dispatch → Blogs Page: routes to (evidence: `src/components/Routing.jsx`)
- Route Dispatch → Projects Listing: routes to (evidence: `src/components/Routing.jsx`)
- Route Dispatch → Cove Page: routes to (evidence: `src/components/Routing.jsx`)
- Home Profile → Cove Page: navigates to (evidence: `src/pages/Home.jsx`)
- Projects Listing → Project Card: renders (evidence: `src/pages/Projects.jsx`)
- Navigation Bar → Theme Provider: updates theme (evidence: `src/components/Navbar.jsx`)
- Home Profile → Theme Provider: reads theme (evidence: `src/pages/Home.jsx`)
- Projects Listing → Theme Provider: reads theme (evidence: `src/pages/Projects.jsx`)
- Blogs Page → Theme Provider: reads theme (evidence: `src/pages/Blogs.jsx`)
- Cove Page → Theme Provider: reads theme (evidence: `src/pages/Cove.jsx`)
- Resume Page → Theme Provider: reads theme (evidence: `src/pages/Resume.jsx`)
- Navigation Bar → Resume PDF: links PDF (evidence: `src/components/Navbar.jsx`)
