# ritchie16/react-portfolio-website architecture

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

- Interactive diagram: https://gitdiagram.com/ritchie16/react-portfolio-website
- Repository: https://github.com/ritchie16/react-portfolio-website

## Overview

This is a React portfolio site that guides visitors through an introduction, profile, services, skills, projects, and contact form, with a not-found route. The app shell routes and composes the page; section components render the portfolio content, while contact submission delegates to email delivery. The graph follows relationships shown in the excerpts, SOURCE INDEX, or README. Several section implementations were not sampled, so their internal links are omitted where evidence is unavailable.

Main entry points: [`src/App.jsx`](https://github.com/ritchie16/react-portfolio-website/blob/main/src/App.jsx) (App router), [`src/components/About/About.jsx`](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/About/About.jsx) (About profile), [`src/components/Hero/Hero.jsx`](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Hero/Hero.jsx) (Introduction), [`src/components/Services/Services.jsx`](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Services/Services.jsx) (Services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_app["App router<br/>[App.jsx]"]
  node_notfound["Not found<br/>[NotFound.jsx]"]
  node_header["Navigation header<br/>[Header.jsx]"]
end

subgraph group_profile["Portfolio profile"]
  node_hero["Introduction<br/>[Hero.jsx]"]
  node_hero_text["Hero text<br/>[HeroText.jsx]"]
  node_hero_image["Hero media<br/>[HeroImage.jsx]"]
  node_social_links["Social links"]
  node_about["About profile<br/>[About.jsx]"]
  node_education["Education<br/>[EducationCard.jsx]"]
  node_certifications["Certifications"]
  node_location["Location<br/>[LocationCard.jsx]"]
end

subgraph group_capabilities["Work showcase"]
  node_services["Services<br/>[Services.jsx]"]
  node_service_cards["Service cards<br/>[ServiceCard.jsx]"]
  node_skills["Skills<br/>[Skills.jsx]"]
  node_projects["Projects<br/>[Projects.jsx]"]
  node_project_card["Project cards<br/>[ProjectCard.jsx]"]
end

subgraph group_engagement["Visitor engagement"]
  node_contact["Contact section<br/>[Contact.jsx]"]
  node_contact_form["Contact form<br/>[ContactForm.jsx]"]
  node_email_service["Email delivery<br/>[emailService.js]"]
  node_google_script["Google Script"]
  node_formspree["Formspree"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_state["Theme state"]
  node_theme_toggle["Theme toggle<br/>[ThemeToggle.jsx]"]
  node_theme_context["Theme context<br/>[ThemeContext.jsx]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens site"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_services
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_app -->|"routes to"| node_notfound
node_hero -->|"renders"| node_hero_text
node_hero -->|"renders"| node_hero_image
node_hero_image -->|"renders"| node_social_links
node_about -.->|"renders"| node_education
node_about -.->|"renders"| node_certifications
node_about -.->|"renders"| node_location
node_services -->|"renders"| node_service_cards
node_services -->|"uses data"| node_service_cards
node_skills -.->|"uses data"| node_skills
node_projects -->|"renders"| node_project_card
node_projects -->|"uses data"| node_project_card
node_contact -->|"renders"| node_contact_form
node_contact_form -->|"submits to"| node_email_service
node_email_service -->|"sends JSONP"| node_google_script
node_email_service -->|"falls back"| node_formspree
node_header -->|"renders"| node_theme_toggle
node_theme_toggle -->|"reads and toggles"| node_theme_context
node_app -->|"provides state"| node_theme_context

click node_app "https://github.com/ritchie16/react-portfolio-website/blob/main/src/App.jsx"
click node_notfound "https://github.com/ritchie16/react-portfolio-website/blob/main/src/pages/Error/NotFound.jsx"
click node_header "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Header/Header.jsx"
click node_hero "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Hero/Hero.jsx"
click node_hero_text "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Hero/HeroText.jsx"
click node_hero_image "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Hero/HeroImage.jsx"
click node_social_links "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Hero/HeroSocialLinks.jsx"
click node_about "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/About/About.jsx"
click node_education "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/About/EducationCard.jsx"
click node_certifications "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/About/CertificationsCard.jsx"
click node_location "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/About/LocationCard.jsx"
click node_services "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Services/Services.jsx"
click node_service_cards "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Services/ServiceCard.jsx"
click node_skills "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Skills/Skills.jsx"
click node_projects "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Projects/Projects.jsx"
click node_project_card "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Projects/ProjectCard.jsx"
click node_contact "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Contact/Contact.jsx"
click node_contact_form "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Contact/ContactForm.jsx"
click node_email_service "https://github.com/ritchie16/react-portfolio-website/blob/main/src/utils/emailService.js"
click node_footer "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Footer/Footer.jsx"
click node_theme_toggle "https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/ThemeToggle/ThemeToggle.jsx"
click node_theme_context "https://github.com/ritchie16/react-portfolio-website/blob/main/src/contexts/ThemeContext.jsx"

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_notfound,node_header toneBlue
class node_hero,node_hero_text,node_hero_image,node_social_links,node_about,node_education,node_certifications,node_location toneAmber
class node_services,node_service_cards,node_skills,node_projects,node_project_card toneMint
class node_contact,node_contact_form,node_email_service,node_google_script,node_formspree,node_footer toneRose
class node_theme_toggle,node_theme_context,node_visitor toneIndigo
```

## Components

### Application shell

- [App router](https://github.com/ritchie16/react-portfolio-website/blob/main/src/App.jsx): `src/App.jsx`
- [Not found](https://github.com/ritchie16/react-portfolio-website/blob/main/src/pages/Error/NotFound.jsx): `src/pages/Error/NotFound.jsx`
- [Navigation header](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Header/Header.jsx): `src/components/Header/Header.jsx`

### Portfolio profile

- [Introduction](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Hero/Hero.jsx): `src/components/Hero/Hero.jsx`
- [Hero text](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Hero/HeroText.jsx): `src/components/Hero/HeroText.jsx`
- [Hero media](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Hero/HeroImage.jsx): `src/components/Hero/HeroImage.jsx`
- [Social links](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Hero/HeroSocialLinks.jsx): `src/components/Hero/HeroSocialLinks.jsx`
- [About profile](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/About/About.jsx): `src/components/About/About.jsx`
- [Education](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/About/EducationCard.jsx): `src/components/About/EducationCard.jsx`
- [Certifications](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/About/CertificationsCard.jsx): `src/components/About/CertificationsCard.jsx`
- [Location](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/About/LocationCard.jsx): `src/components/About/LocationCard.jsx`

### Work showcase

- [Services](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Services/Services.jsx): `src/components/Services/Services.jsx`
- [Service cards](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Services/ServiceCard.jsx): `src/components/Services/ServiceCard.jsx`
- [Skills](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Skills/Skills.jsx): `src/components/Skills/Skills.jsx`
- [Projects](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Projects/Projects.jsx): `src/components/Projects/Projects.jsx`
- [Project cards](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Projects/ProjectCard.jsx): `src/components/Projects/ProjectCard.jsx`

### Visitor engagement

- [Contact section](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Contact/Contact.jsx): `src/components/Contact/Contact.jsx`
- [Contact form](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Contact/ContactForm.jsx): `src/components/Contact/ContactForm.jsx`
- [Email delivery](https://github.com/ritchie16/react-portfolio-website/blob/main/src/utils/emailService.js): `src/utils/emailService.js`
- **Google Script**
- **Formspree**
- [Footer](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/Footer/Footer.jsx): `src/components/Footer/Footer.jsx`

### Theme state

- [Theme toggle](https://github.com/ritchie16/react-portfolio-website/blob/main/src/components/ThemeToggle/ThemeToggle.jsx): `src/components/ThemeToggle/ThemeToggle.jsx`
- [Theme context](https://github.com/ritchie16/react-portfolio-website/blob/main/src/contexts/ThemeContext.jsx): `src/contexts/ThemeContext.jsx`

### Other components

- **Visitor**

## Connections

- Visitor → App router: opens site
- App router → Navigation header: renders (evidence: `src/App.jsx`)
- App router → Introduction: renders (evidence: `src/App.jsx`)
- App router → About profile: renders (evidence: `src/App.jsx`)
- App router → Services: renders (evidence: `src/App.jsx`)
- App router → Skills: renders (evidence: `src/App.jsx`)
- App router → Projects: renders (evidence: `src/App.jsx`)
- App router → Contact section: renders (evidence: `src/App.jsx`)
- App router → Footer: renders (evidence: `src/App.jsx`)
- App router → Not found: routes to (evidence: `src/App.jsx`)
- Introduction → Hero text: renders (evidence: `src/components/Hero/Hero.jsx`)
- Introduction → Hero media: renders (evidence: `src/components/Hero/Hero.jsx`)
- Hero media → Social links: renders (evidence: `src/components/Hero/HeroImage.jsx`)
- About profile → Education: renders
- About profile → Certifications: renders
- About profile → Location: renders
- Services → Service cards: renders (evidence: `src/components/Services/Services.jsx`)
- Services → Service cards: uses data (evidence: `src/components/Services/Services.jsx`)
- Skills → Skills: uses data (evidence: `src/components/Skills/Skills.jsx`)
- Projects → Project cards: renders (evidence: `src/components/Projects/Projects.jsx`)
- Projects → Project cards: uses data (evidence: `src/components/Projects/Projects.jsx`)
- Contact section → Contact form: renders (evidence: `src/components/Contact/Contact.jsx`)
- Contact form → Email delivery: submits to (evidence: `src/components/Contact/ContactForm.jsx`)
- Email delivery → Google Script: sends JSONP (evidence: `src/utils/emailService.js`)
- Email delivery → Formspree: falls back (evidence: `src/utils/emailService.js`)
- Navigation header → Theme toggle: renders (evidence: `src/components/Header/Header.jsx`)
- Theme toggle → Theme context: reads and toggles (evidence: `src/components/ThemeToggle/ThemeToggle.jsx`)
- App router → Theme context: provides state (evidence: `src/App.jsx`)
