# prince-of-morocco/my-react-portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/prince-of-morocco/my-react-portfolio
- Repository: https://github.com/prince-of-morocco/my-react-portfolio

## Overview

This repository is a single-page personal portfolio built with React. The user-facing flow is a visitor opening the page, navigating its profile and work sections, and optionally submitting a contact message. The graph focuses on runtime rendering and the contact submission; section components whose implementation is visible are shown individually. The README describes only a Vite template, so it adds no product capabilities. Source excerpts do not show behavior for the mounted About, Skills, and Footer components beyond their rendered content.

Main entry points: [`src/App.jsx`](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/App.jsx) (Page assembly), [`src/components/Contact.jsx`](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Contact.jsx) (Contact form), [`src/main.jsx`](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/main.jsx) (React entry), [`src/components/Navbar.jsx`](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Navbar.jsx) (Section navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Page composition"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app_view["Page assembly<br/>[App.jsx]"]
end

subgraph group_content["Portfolio content"]
  node_navbar["Section navigation<br/>[Navbar.jsx]"]
  node_home["Introduction<br/>[Home.jsx]"]
  node_about["Profile and education<br/>[About.jsx]"]
  node_portfolio["Projects showcase<br/>[Portfolio.jsx]"]
  node_skills["Skills display<br/>[Skills.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_contact["Contact messaging"]
  node_contact_form["Contact form<br/>[Contact.jsx]"]
  node_toast["Submission feedback<br/>[App.jsx]"]
end

node_visitor(("Visitor"))
node_getform{{"Getform service"}}

node_visitor -->|"opens page"| node_entry
node_entry -->|"renders"| node_app_view
node_app_view -->|"renders"| node_navbar
node_app_view -->|"renders"| node_home
node_app_view -->|"renders"| node_about
node_app_view -->|"renders"| node_portfolio
node_app_view -->|"renders"| node_skills
node_app_view -->|"renders"| node_contact_form
node_app_view -->|"renders"| node_footer
node_visitor -->|"selects sections"| node_navbar
node_visitor -->|"submits message"| node_contact_form
node_contact_form -->|"posts message"| node_getform
node_contact_form -->|"triggers feedback"| node_toast

click node_entry "https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/main.jsx"
click node_app_view "https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/App.jsx"
click node_navbar "https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Navbar.jsx"
click node_home "https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Home.jsx"
click node_about "https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/About.jsx"
click node_portfolio "https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Portfolio.jsx"
click node_skills "https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Skills.jsx"
click node_contact_form "https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Contact.jsx"
click node_toast "https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/App.jsx"
click node_footer "https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Footer.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_entry,node_app_view toneBlue
class node_navbar,node_home,node_about,node_portfolio,node_skills,node_footer toneAmber
class node_contact_form,node_toast toneMint
class node_visitor,node_getform toneIndigo
```

## Components

### Page composition

- [React entry](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/main.jsx): `src/main.jsx`
- [Page assembly](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/App.jsx): `src/App.jsx`

### Portfolio content

- [Section navigation](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Introduction](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Home.jsx): `src/components/Home.jsx`
- [Profile and education](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/About.jsx): `src/components/About.jsx`
- [Projects showcase](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Portfolio.jsx): `src/components/Portfolio.jsx`
- [Skills display](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Skills.jsx): `src/components/Skills.jsx`
- [Footer](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Contact messaging

- [Contact form](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/components/Contact.jsx): `src/components/Contact.jsx`
- [Submission feedback](https://github.com/prince-of-morocco/my-react-portfolio/blob/main/src/App.jsx): `src/App.jsx`

### Other components

- **Visitor**
- **Getform service**

## Connections

- Visitor → React entry: opens page
- React entry → Page assembly: renders (evidence: `src/main.jsx`)
- Page assembly → Section navigation: renders (evidence: `src/App.jsx`)
- Page assembly → Introduction: renders (evidence: `src/App.jsx`)
- Page assembly → Profile and education: renders (evidence: `src/App.jsx`)
- Page assembly → Projects showcase: renders (evidence: `src/App.jsx`)
- Page assembly → Skills display: renders (evidence: `src/App.jsx`)
- Page assembly → Contact form: renders (evidence: `src/App.jsx`)
- Page assembly → Footer: renders (evidence: `src/App.jsx`)
- Visitor → Section navigation: selects sections (evidence: `src/components/Navbar.jsx`)
- Visitor → Contact form: submits message (evidence: `src/components/Contact.jsx`)
- Contact form → Getform service: posts message (evidence: `src/components/Contact.jsx`)
- Contact form → Submission feedback: triggers feedback (evidence: `src/components/Contact.jsx`)
