# patrick-g-gif/portfolio-github-template architecture

> Architecture diagram of the GitHub repository patrick-g-gif/portfolio-github-template, 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/patrick-g-gif/portfolio-github-template
- Repository: https://github.com/patrick-g-gif/portfolio-github-template

## Overview

This is a backend-free React portfolio site. A visitor enters the single-page experience, navigates its portfolio sections, explores project details, and can try the Cisco-style terminal; the sections draw from one portfolio-data module. The graph also includes the documented build-time SEO transformation. Relationships are limited to imports, rendering, and data use shown in the excerpts or SOURCE INDEX; unsampled component internals are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/App.jsx) (Page composition), [`src/data/portfolio.js`](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/data/portfolio.js) (Portfolio content data), [`src/components/Projects.jsx`](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Projects.jsx) (Projects), [`src/components/Contact.jsx`](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Contact.jsx) (Contact)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Page shell"]
  node_app["Page composition<br/>[App.jsx]"]
  node_theme["Theme provider<br/>[ThemeContext.jsx]"]
  node_navbar["Section navigation<br/>[Navbar.jsx]"]
  node_pillnav["Animated pill nav<br/>[PillNav.jsx]"]
end

subgraph group_content["Portfolio content"]
  node_hero["Hero<br/>[Hero.jsx]"]
  node_about["About<br/>[About.jsx]"]
  node_skills["Skills<br/>[Skills.jsx]"]
  node_projects["Projects<br/>[Projects.jsx]"]
  node_projectmodal["Project details<br/>[ProjectModal.jsx]"]
  node_topology["Topology diagram"]
  node_timeline["Timeline and certifications<br/>[Timeline.jsx]"]
  node_contact["Contact<br/>[Contact.jsx]"]
end

subgraph group_interactive["Interactive features"]
  node_ping["Ping widget<br/>[PingWidget.jsx]"]
  node_terminal["CLI interface<br/>[Terminal.jsx]"]
  node_terminalengine["CLI engine<br/>[terminal.js]"]
  node_networkbg["Network backdrop"]
  node_networkcanvas["Network canvas<br/>[NetworkCanvas.jsx]"]
  node_canvasnodes["Canvas node logic<br/>[canvasNodes.js]"]
end

subgraph group_shared["Shared data and utilities"]
  node_portfolio["Portfolio content data<br/>[portfolio.js]"]
  node_mediahooks["Media and viewport hooks<br/>[useMedia.js]"]
  node_format["Formatting helpers<br/>[format.js]"]
end

subgraph group_seo["SEO generation"]
  node_seo["HTML SEO transform<br/>[transformHtml.js]"]
end

node_visitor(("Visitor"))
node_browserstorage[("Browser local storage")]

node_visitor -->|"opens"| node_app
node_app -->|"provides theme"| node_theme
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_terminal
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_timeline
node_app -->|"renders"| node_contact
node_navbar -->|"uses"| node_pillnav
node_hero -->|"reads content"| node_portfolio
node_about -->|"reads content"| node_portfolio
node_skills -->|"reads content"| node_portfolio
node_projects -->|"reads content"| node_portfolio
node_projects -->|"opens details"| node_projectmodal
node_projectmodal -->|"renders diagram"| node_topology
node_timeline -->|"reads content"| node_portfolio
node_contact -->|"reads content"| node_portfolio
node_contact -->|"renders widget"| node_ping
node_terminal -->|"executes commands"| node_terminalengine
node_terminal -->|"supplies data"| node_portfolio
node_terminalengine -->|"formats uptime"| node_format
node_ping -->|"formats statistics"| node_format
node_networkbg -->|"renders"| node_networkcanvas
node_networkcanvas -->|"uses node logic"| node_canvasnodes
node_theme -->|"stores theme"| node_browserstorage
node_seo -->|"loads content"| node_portfolio

click node_app "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/App.jsx"
click node_theme "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/ThemeContext.jsx"
click node_navbar "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Navbar.jsx"
click node_pillnav "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/PillNav.jsx"
click node_hero "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Hero.jsx"
click node_about "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/About.jsx"
click node_skills "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Skills.jsx"
click node_projects "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Projects.jsx"
click node_projectmodal "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/ProjectModal.jsx"
click node_topology "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/TopologyDiagram.jsx"
click node_timeline "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Timeline.jsx"
click node_contact "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Contact.jsx"
click node_ping "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/PingWidget.jsx"
click node_terminal "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Terminal.jsx"
click node_terminalengine "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/lib/terminal.js"
click node_networkbg "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/NetworkBackground.jsx"
click node_networkcanvas "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/NetworkCanvas.jsx"
click node_canvasnodes "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/lib/canvasNodes.js"
click node_portfolio "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/data/portfolio.js"
click node_mediahooks "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/hooks/useMedia.js"
click node_format "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/lib/format.js"
click node_seo "https://github.com/patrick-g-gif/portfolio-github-template/blob/main/vite/transformHtml.js"

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_app,node_theme,node_navbar,node_pillnav toneBlue
class node_hero,node_about,node_skills,node_projects,node_projectmodal,node_topology,node_timeline,node_contact,node_browserstorage toneAmber
class node_ping,node_terminal,node_terminalengine,node_networkbg,node_networkcanvas,node_canvasnodes toneMint
class node_portfolio,node_mediahooks,node_format toneRose
class node_seo,node_visitor toneIndigo
```

## Components

### Page shell

- [Page composition](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/App.jsx): `src/App.jsx`
- [Theme provider](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/ThemeContext.jsx): `src/components/ThemeContext.jsx`
- [Section navigation](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Animated pill nav](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/PillNav.jsx): `src/components/PillNav.jsx`

### Portfolio content

- [Hero](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Hero.jsx): `src/components/Hero.jsx`
- [About](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/About.jsx): `src/components/About.jsx`
- [Skills](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Skills.jsx): `src/components/Skills.jsx`
- [Projects](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Projects.jsx): `src/components/Projects.jsx`
- [Project details](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/ProjectModal.jsx): `src/components/ProjectModal.jsx`
- [Topology diagram](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/TopologyDiagram.jsx): `src/components/TopologyDiagram.jsx`
- [Timeline and certifications](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Timeline.jsx): `src/components/Timeline.jsx`
- [Contact](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Contact.jsx): `src/components/Contact.jsx`

### Interactive features

- [Ping widget](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/PingWidget.jsx): `src/components/PingWidget.jsx`
- [CLI interface](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/Terminal.jsx): `src/components/Terminal.jsx`
- [CLI engine](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/lib/terminal.js): `src/lib/terminal.js`
- [Network backdrop](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/NetworkBackground.jsx): `src/components/NetworkBackground.jsx`
- [Network canvas](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/components/NetworkCanvas.jsx): `src/components/NetworkCanvas.jsx`
- [Canvas node logic](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/lib/canvasNodes.js): `src/lib/canvasNodes.js`

### Shared data and utilities

- [Portfolio content data](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/data/portfolio.js): `src/data/portfolio.js`
- [Media and viewport hooks](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/hooks/useMedia.js): `src/hooks/useMedia.js`
- [Formatting helpers](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/src/lib/format.js): `src/lib/format.js`

### SEO generation

- [HTML SEO transform](https://github.com/patrick-g-gif/portfolio-github-template/blob/main/vite/transformHtml.js): `vite/transformHtml.js`

### Other components

- **Visitor**
- **Browser local storage**

## Connections

- Visitor → Page composition: opens
- Page composition → Theme provider: provides theme (evidence: `src/App.jsx`)
- Page composition → Section navigation: renders (evidence: `src/App.jsx`)
- Page composition → Hero: renders (evidence: `src/App.jsx`)
- Page composition → About: renders (evidence: `src/App.jsx`)
- Page composition → Skills: renders (evidence: `src/App.jsx`)
- Page composition → CLI interface: renders (evidence: `src/App.jsx`)
- Page composition → Projects: renders (evidence: `src/App.jsx`)
- Page composition → Timeline and certifications: renders (evidence: `src/App.jsx`)
- Page composition → Contact: renders (evidence: `src/App.jsx`)
- Section navigation → Animated pill nav: uses (evidence: `src/components/Navbar.jsx`)
- Hero → Portfolio content data: reads content (evidence: `src/components/Hero.jsx`)
- About → Portfolio content data: reads content (evidence: `src/components/About.jsx`)
- Skills → Portfolio content data: reads content (evidence: `src/components/Skills.jsx`)
- Projects → Portfolio content data: reads content (evidence: `src/components/Projects.jsx`)
- Projects → Project details: opens details (evidence: `src/components/Projects.jsx`)
- Project details → Topology diagram: renders diagram (evidence: `src/components/ProjectModal.jsx`)
- Timeline and certifications → Portfolio content data: reads content (evidence: `src/components/Timeline.jsx`)
- Contact → Portfolio content data: reads content (evidence: `src/components/Contact.jsx`)
- Contact → Ping widget: renders widget (evidence: `src/components/Contact.jsx`)
- CLI interface → CLI engine: executes commands (evidence: `src/components/Terminal.jsx`)
- CLI interface → Portfolio content data: supplies data (evidence: `src/components/Terminal.jsx`)
- CLI engine → Formatting helpers: formats uptime (evidence: `src/lib/terminal.js`)
- Ping widget → Formatting helpers: formats statistics (evidence: `src/components/PingWidget.jsx`)
- Network backdrop → Network canvas: renders (evidence: `src/components/NetworkBackground.jsx`)
- Network canvas → Canvas node logic: uses node logic (evidence: `src/components/NetworkCanvas.jsx`)
- Theme provider → Browser local storage: stores theme (evidence: `src/components/ThemeContext.jsx`)
- HTML SEO transform → Portfolio content data: loads content (evidence: `vite/transformHtml.js`)
