# mahmoud-alaa-dev/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/mahmoud-alaa-dev/portfolio
- Repository: https://github.com/mahmoud-alaa-dev/portfolio

## Overview

This is a Next.js personal portfolio: visitors browse the landing page’s Hero, About, Skills, Projects, and Contact sections, then can submit a validated contact form that posts to the contact API and is documented as powered by Resend. The graph includes the shared layout and presentation helpers plus the major content data. The API implementation was not excerpted, so its Resend relationship is based on the README rather than inspected handler code.

Main entry points: [`app/page.tsx`](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/app/page.tsx) (Home composition), [`components/layout/Navbar.tsx`](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/layout/Navbar.tsx) (Navigation), [`components/layout/Container.tsx`](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/layout/Container.tsx) (Content container), [`components/sections/Hero.tsx`](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/sections/Hero.tsx) (Hero)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Portfolio shell"]
  node_home["Home composition<br/>[page.tsx]"]
  node_site_layout["Site layout<br/>[layout.tsx]"]
  node_global_style["Global styling<br/>[globals.css]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_content["Portfolio sections"]
  node_hero["Hero<br/>[Hero.tsx]"]
  node_about["About<br/>[About.tsx]"]
  node_skills["Skills<br/>[Skills.tsx]"]
  node_projects["Projects<br/>[Projects.tsx]"]
end

subgraph group_shared["Shared presentation"]
  node_container["Content container<br/>[Container.tsx]"]
  node_button["Button<br/>[Button.tsx]"]
  node_mobile_hook["Mobile hook<br/>[use-is-mobile.ts]"]
  node_utils["UI utilities<br/>[utils.ts]"]
  node_navbar_style["Navbar styling<br/>[Navbar.css]"]
end

subgraph group_contact["Contact flow"]
  node_contact_form["Contact form<br/>[Contact.tsx]"]
  node_contact_api["Contact API<br/>[route.ts]"]
  node_resend["Resend email service"]
end

subgraph group_content_data["Portfolio data"]
  node_project_data["Projects data<br/>[projects.ts]"]
  node_skill_data["Skills data<br/>[skills.ts]"]
end

node_visitor(("Portfolio visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_contact_form
node_site_layout -->|"renders"| node_navbar
node_site_layout -->|"renders"| node_footer
node_site_layout -->|"loads"| node_global_style
node_navbar -->|"uses"| node_mobile_hook
node_navbar -->|"renders"| node_button
node_navbar -->|"uses"| node_container
node_navbar -->|"calls"| node_utils
node_navbar -->|"loads"| node_navbar_style
node_footer -->|"uses"| node_container
node_hero -->|"renders"| node_button
node_hero -->|"uses"| node_container
node_hero -->|"calls"| node_utils
node_about -->|"uses"| node_container
node_skills -->|"reads"| node_skill_data
node_skills -->|"uses"| node_container
node_skills -->|"calls"| node_utils
node_projects -->|"reads"| node_project_data
node_projects -->|"uses"| node_container
node_contact_form -->|"uses"| node_container
node_contact_form -->|"posts to"| node_contact_api
node_contact_api -->|"sends email"| node_resend
node_button -->|"calls"| node_utils

click node_home "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/app/page.tsx"
click node_site_layout "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/app/layout.tsx"
click node_global_style "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/app/globals.css"
click node_hero "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/sections/Hero.tsx"
click node_about "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/sections/About.tsx"
click node_skills "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/sections/Skills.tsx"
click node_projects "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/sections/Projects.tsx"
click node_contact_form "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/sections/Contact.tsx"
click node_navbar "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/layout/Navbar.tsx"
click node_footer "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/layout/Footer.tsx"
click node_container "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/layout/Container.tsx"
click node_button "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/ui/Button.tsx"
click node_mobile_hook "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/hooks/use-is-mobile.ts"
click node_utils "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/lib/utils.ts"
click node_navbar_style "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/styles/Navbar.css"
click node_project_data "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/data/projects.ts"
click node_skill_data "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/data/skills.ts"
click node_contact_api "https://github.com/mahmoud-alaa-dev/portfolio/blob/main/app/api/contact/route.ts"

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_home,node_site_layout,node_global_style,node_navbar,node_footer toneBlue
class node_hero,node_about,node_skills,node_projects toneAmber
class node_container,node_button,node_mobile_hook,node_utils,node_navbar_style toneMint
class node_contact_form,node_contact_api,node_resend toneRose
class node_project_data,node_skill_data,node_visitor toneIndigo
```

## Components

### Portfolio shell

- [Home composition](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/app/page.tsx): `app/page.tsx`
- [Site layout](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/app/layout.tsx): `app/layout.tsx`
- [Global styling](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/app/globals.css): `app/globals.css`
- [Navigation](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/layout/Navbar.tsx): `components/layout/Navbar.tsx`
- [Footer](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/layout/Footer.tsx): `components/layout/Footer.tsx`

### Portfolio sections

- [Hero](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/sections/Hero.tsx): `components/sections/Hero.tsx`
- [About](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/sections/About.tsx): `components/sections/About.tsx`
- [Skills](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/sections/Skills.tsx): `components/sections/Skills.tsx`
- [Projects](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/sections/Projects.tsx): `components/sections/Projects.tsx`

### Shared presentation

- [Content container](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/layout/Container.tsx): `components/layout/Container.tsx`
- [Button](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/ui/Button.tsx): `components/ui/Button.tsx`
- [Mobile hook](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/hooks/use-is-mobile.ts): `hooks/use-is-mobile.ts`
- [UI utilities](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/lib/utils.ts): `lib/utils.ts`
- [Navbar styling](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/styles/Navbar.css): `styles/Navbar.css`

### Contact flow

- [Contact form](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/components/sections/Contact.tsx): `components/sections/Contact.tsx`
- [Contact API](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/app/api/contact/route.ts): `app/api/contact/route.ts`
- **Resend email service**

### Portfolio data

- [Projects data](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/data/projects.ts): `data/projects.ts`
- [Skills data](https://github.com/mahmoud-alaa-dev/portfolio/blob/main/data/skills.ts): `data/skills.ts`

### Other components

- **Portfolio visitor**

## Connections

- Portfolio visitor → Home composition: opens (evidence: `README.md`)
- Home composition → Hero: renders (evidence: `app/page.tsx`)
- Home composition → About: renders (evidence: `app/page.tsx`)
- Home composition → Skills: renders (evidence: `app/page.tsx`)
- Home composition → Projects: renders (evidence: `app/page.tsx`)
- Home composition → Contact form: renders (evidence: `app/page.tsx`)
- Site layout → Navigation: renders (evidence: `app/layout.tsx`)
- Site layout → Footer: renders (evidence: `app/layout.tsx`)
- Site layout → Global styling: loads (evidence: `app/layout.tsx`)
- Navigation → Mobile hook: uses (evidence: `components/layout/Navbar.tsx`)
- Navigation → Button: renders (evidence: `components/layout/Navbar.tsx`)
- Navigation → Content container: uses (evidence: `components/layout/Navbar.tsx`)
- Navigation → UI utilities: calls (evidence: `components/layout/Navbar.tsx`)
- Navigation → Navbar styling: loads (evidence: `components/layout/Navbar.tsx`)
- Footer → Content container: uses (evidence: `components/layout/Footer.tsx`)
- Hero → Button: renders (evidence: `components/sections/Hero.tsx`)
- Hero → Content container: uses (evidence: `components/sections/Hero.tsx`)
- Hero → UI utilities: calls (evidence: `components/sections/Hero.tsx`)
- About → Content container: uses (evidence: `components/sections/About.tsx`)
- Skills → Skills data: reads (evidence: `components/sections/Skills.tsx`)
- Skills → Content container: uses (evidence: `components/sections/Skills.tsx`)
- Skills → UI utilities: calls (evidence: `components/sections/Skills.tsx`)
- Projects → Projects data: reads (evidence: `components/sections/Projects.tsx`)
- Projects → Content container: uses (evidence: `components/sections/Projects.tsx`)
- Contact form → Content container: uses (evidence: `components/sections/Contact.tsx`)
- Contact form → Contact API: posts to (evidence: `components/sections/Contact.tsx`)
- Contact API → Resend email service: sends email (evidence: `README.md`)
- Button → UI utilities: calls (evidence: `components/ui/Button.tsx`)
