# mohamed-afzal0/mohamed_afzal architecture

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

- Interactive diagram: https://gitdiagram.com/mohamed-afzal0/mohamed_afzal
- Repository: https://github.com/mohamed-afzal0/mohamed_afzal

## Overview

This is a personal developer portfolio: visitors browse the home, biography, skills and certificates, project showcase, and contact sections, then follow project/social links or request contact and download the CV. The application shell composes these sections, applies the selected color theme, and adds responsive motion and the tire background. The README documents EmailJS delivery and project links; those integrations are shown at the documented boundary. Several page implementations were not sampled, so their internal calls are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/App.jsx) (Application shell), [`src/components/header.jsx`](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/header.jsx) (Navigation header), [`src/components/animated/GTRTireBackground.jsx`](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/animated/GTRTireBackground.jsx) (Tire background), [`src/Pages/Project.jsx`](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/Pages/Project.jsx) (Project showcase)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio experience"]
  node_app["Application shell<br/>[App.jsx]"]
  node_header["Navigation header<br/>[header.jsx]"]
  node_home["Home section<br/>[Home.jsx]"]
  node_about["About and skills<br/>[About.jsx]"]
  node_projects["Project showcase<br/>[Project.jsx]"]
  node_footer["Social footer<br/>[footer.jsx]"]
  node_cv["CV download"]
  node_cvfile["CV document"]
end

subgraph group_visual["Theme and motion"]
  node_colorcontext["Color mode context"]
  node_theme["Theme definitions<br/>[theme.js]"]
  node_loader["Page loader<br/>[PageLoader.jsx]"]
  node_tire["Tire background"]
  node_motionhooks["Motion accessibility"]
  node_mobilehook["Mobile performance"]
  node_rotation["Scroll tire rotation"]
end

subgraph group_contact["Contact and links"]
  node_contactpage["Contact section<br/>[Contact.jsx]"]
  node_emailjs["EmailJS service"]
  node_projectlinks["Project destinations"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens portfolio"| node_app
node_app -->|"renders experience"| node_visitor
node_app -->|"renders navigation"| node_header
node_app -->|"renders section"| node_home
node_app -->|"loads section"| node_about
node_app -->|"loads section"| node_projects
node_app -->|"loads section"| node_contactpage
node_app -->|"loads footer"| node_footer
node_app -->|"shows loading state"| node_loader
node_app -->|"renders background"| node_tire
node_app -->|"provides mode toggle"| node_colorcontext
node_header -->|"reads and toggles mode"| node_colorcontext
node_app -->|"applies selected theme"| node_theme
node_app -->|"checks motion preference"| node_motionhooks
node_header -->|"renders download action"| node_cv
node_cv -->|"downloads document"| node_cvfile
node_tire -->|"checks device performance"| node_mobilehook
node_tire -->|"gets scroll rotation"| node_rotation
node_contactpage -.->|"sends contact message"| node_emailjs
node_projects -->|"links to demos and repositories"| node_projectlinks
node_footer -->|"links to social profiles"| node_projectlinks

click node_app "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/App.jsx"
click node_header "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/header.jsx"
click node_home "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/Pages/Home.jsx"
click node_about "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/Pages/About.jsx"
click node_projects "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/Pages/Project.jsx"
click node_contactpage "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/Pages/Contact.jsx"
click node_footer "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/footer.jsx"
click node_cv "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/DownloadCVButton.jsx"
click node_colorcontext "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/context/ColorModeContext.js"
click node_theme "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/theme.js"
click node_loader "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/animated/PageLoader.jsx"
click node_tire "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/animated/GTRTireBackground.jsx"
click node_motionhooks "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/animations/hooks/useReducedMotion.js"
click node_mobilehook "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/animations/hooks/useIsMobilePerformance.js"
click node_rotation "https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/lib/scrollTireRotation.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_header,node_home,node_about,node_projects,node_footer,node_cv,node_cvfile toneBlue
class node_colorcontext,node_theme,node_loader,node_tire,node_motionhooks,node_mobilehook,node_rotation toneAmber
class node_contactpage,node_emailjs,node_projectlinks toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio experience

- [Application shell](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/App.jsx): `src/App.jsx`
- [Navigation header](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/header.jsx): `src/components/header.jsx`
- [Home section](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/Pages/Home.jsx): `src/Pages/Home.jsx`
- [About and skills](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/Pages/About.jsx): `src/Pages/About.jsx`
- [Project showcase](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/Pages/Project.jsx): `src/Pages/Project.jsx`
- [Social footer](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/footer.jsx): `src/components/footer.jsx`
- [CV download](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/DownloadCVButton.jsx): `src/components/DownloadCVButton.jsx`
- **CV document**

### Theme and motion

- [Color mode context](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/context/ColorModeContext.js): `src/context/ColorModeContext.js`
- [Theme definitions](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/theme.js): `src/theme.js`
- [Page loader](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/animated/PageLoader.jsx): `src/components/animated/PageLoader.jsx`
- [Tire background](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/components/animated/GTRTireBackground.jsx): `src/components/animated/GTRTireBackground.jsx`
- [Motion accessibility](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/animations/hooks/useReducedMotion.js): `src/animations/hooks/useReducedMotion.js`
- [Mobile performance](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/animations/hooks/useIsMobilePerformance.js): `src/animations/hooks/useIsMobilePerformance.js`
- [Scroll tire rotation](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/lib/scrollTireRotation.js): `src/lib/scrollTireRotation.js`

### Contact and links

- [Contact section](https://github.com/mohamed-afzal0/mohamed_afzal/blob/main/src/Pages/Contact.jsx): `src/Pages/Contact.jsx`
- **EmailJS service**
- **Project destinations**

### Other components

- **Visitor**

## Connections

- Visitor → Application shell: opens portfolio
- Application shell → Visitor: renders experience
- Application shell → Navigation header: renders navigation
- Application shell → Home section: renders section
- Application shell → About and skills: loads section
- Application shell → Project showcase: loads section
- Application shell → Contact section: loads section
- Application shell → Social footer: loads footer
- Application shell → Page loader: shows loading state
- Application shell → Tire background: renders background
- Application shell → Color mode context: provides mode toggle
- Navigation header → Color mode context: reads and toggles mode
- Application shell → Theme definitions: applies selected theme
- Application shell → Motion accessibility: checks motion preference
- Navigation header → CV download: renders download action
- CV download → CV document: downloads document
- Tire background → Mobile performance: checks device performance
- Tire background → Scroll tire rotation: gets scroll rotation
- Contact section → EmailJS service: sends contact message
- Project showcase → Project destinations: links to demos and repositories
- Social footer → Project destinations: links to social profiles
