# mahmudulhasanmaruf78/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/mahmudulhasanmaruf78/portfolio
- Repository: https://github.com/mahmudulhasanmaruf78/portfolio

## Overview

This is a Next.js portfolio site: visitors browse the home, about, project, resume, and video-CV pages, with portfolio content sourced from typed data modules. A separate contact workflow submits the form to an API route, which validates and sends email through SMTP. The graph preserves the documented portfolio sections and contact capabilities; edges are limited to relationships shown in the README or SOURCE INDEX, so unsampled page internals are not inferred.

Main entry points: [`app/page.tsx`](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/page.tsx) (Home Page), [`app/resume/page.tsx`](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/resume/page.tsx) (Resume Page), [`app/layout.tsx`](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/layout.tsx) (Root Layout), [`app/projects/ProjectsClient.tsx`](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/projects/ProjectsClient.tsx) (Project Listings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Portfolio Pages"]
  node_home["Home Page<br/>[page.tsx]"]
  node_about["About Page<br/>[AboutClient.tsx]"]
  node_project_list["Project Listings<br/>[ProjectsClient.tsx]"]
  node_project_detail["Project Detail<br/>[page.tsx]"]
  node_resume["Resume Page<br/>[page.tsx]"]
  node_video["Video CV<br/>[page.tsx]"]
end

subgraph group_content["Portfolio Content"]
  node_profile_data["Profile Data<br/>[profile.ts]"]
  node_projects_data["Project Data<br/>[projects.ts]"]
  node_skills_data["Skills Data<br/>[skills.ts]"]
  node_education_data["Education Data<br/>[education.ts]"]
  node_certificates_data["Certificates Data<br/>[certificates.ts]"]
  node_learning_data["Learning Data<br/>[learning.ts]"]
end

subgraph group_contact["Contact Delivery"]
  node_contact_page["Contact Form<br/>[page.tsx]"]
  node_contact_api["Contact API<br/>[route.ts]"]
  node_contact_service["Email Service<br/>[contact.ts]"]
  node_smtp(("SMTP Provider"))
end

subgraph group_shell["Site Shell"]
  node_site_layout["Root Layout<br/>[layout.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_theme["Theme Provider<br/>[ThemeContext.tsx]"]
end

subgraph group_ui["Shared UI"]
  node_hero["Hero Section<br/>[HeroSection.tsx]"]
  node_section["Section Layout<br/>[Section.tsx]"]
  node_animations["Animations<br/>[Animations.tsx]"]
  node_buttons["Buttons<br/>[Button.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_home
node_visitor -->|"browses"| node_about
node_visitor -->|"browses"| node_project_list
node_visitor -->|"opens"| node_project_detail
node_visitor -->|"views"| node_resume
node_visitor -->|"views"| node_video
node_home -->|"renders"| node_hero
node_home -->|"reads"| node_profile_data
node_home -->|"reads"| node_projects_data
node_home -->|"reads"| node_skills_data
node_home -->|"reads"| node_education_data
node_home -->|"reads"| node_certificates_data
node_home -->|"reads"| node_learning_data
node_about -->|"reads"| node_profile_data
node_project_list -->|"reads"| node_projects_data
node_project_detail -->|"reads"| node_projects_data
node_resume -->|"reads"| node_profile_data
node_resume -->|"reads"| node_skills_data
node_resume -->|"reads"| node_projects_data
node_resume -->|"reads"| node_education_data
node_contact_page -->|"posts to"| node_contact_api
node_contact_api -->|"calls"| node_contact_service
node_contact_service -->|"sends email"| node_smtp
node_site_layout -->|"renders"| node_navbar
node_site_layout -->|"renders"| node_footer
node_site_layout -->|"provides"| node_theme
node_site_layout -.->|"hosts"| node_home
node_theme -->|"controls toggle"| node_navbar
node_home -->|"uses"| node_section
node_home -->|"uses"| node_animations
node_project_list -->|"uses"| node_section
node_project_list -->|"uses"| node_animations
node_contact_page -->|"uses"| node_buttons

click node_home "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/page.tsx"
click node_about "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/about/AboutClient.tsx"
click node_project_list "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/projects/ProjectsClient.tsx"
click node_project_detail "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/projects/%5Bid%5D/page.tsx"
click node_resume "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/resume/page.tsx"
click node_video "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/video/page.tsx"
click node_profile_data "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/profile.ts"
click node_projects_data "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/projects.ts"
click node_skills_data "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/skills.ts"
click node_education_data "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/education.ts"
click node_certificates_data "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/certificates.ts"
click node_learning_data "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/learning.ts"
click node_contact_page "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/page.tsx"
click node_contact_api "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/api/contact/route.ts"
click node_contact_service "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/contact.ts"
click node_site_layout "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/layout.tsx"
click node_navbar "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/layout/Navbar.tsx"
click node_footer "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/layout/Footer.tsx"
click node_theme "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/contexts/ThemeContext.tsx"
click node_hero "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/ui/HeroSection.tsx"
click node_section "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/layout/Section.tsx"
click node_animations "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/ui/Animations.tsx"
click node_buttons "https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/ui/Button.tsx"

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_about,node_project_list,node_project_detail,node_resume,node_video toneBlue
class node_profile_data,node_projects_data,node_skills_data,node_education_data,node_certificates_data,node_learning_data toneAmber
class node_contact_page,node_contact_api,node_contact_service,node_smtp toneMint
class node_site_layout,node_navbar,node_footer,node_theme toneRose
class node_hero,node_section,node_animations,node_buttons,node_visitor toneIndigo
```

## Components

### Portfolio Pages

- [Home Page](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/page.tsx): `app/page.tsx`
- [About Page](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/about/AboutClient.tsx): `app/about/AboutClient.tsx`
- [Project Listings](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/projects/ProjectsClient.tsx): `app/projects/ProjectsClient.tsx`
- [Project Detail](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/projects/%5Bid%5D/page.tsx): `app/projects/[id]/page.tsx`
- [Resume Page](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/resume/page.tsx): `app/resume/page.tsx`
- [Video CV](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/video/page.tsx): `app/video/page.tsx`

### Portfolio Content

- [Profile Data](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/profile.ts): `lib/data/profile.ts`
- [Project Data](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/projects.ts): `lib/data/projects.ts`
- [Skills Data](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/skills.ts): `lib/data/skills.ts`
- [Education Data](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/education.ts): `lib/data/education.ts`
- [Certificates Data](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/certificates.ts): `lib/data/certificates.ts`
- [Learning Data](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/data/learning.ts): `lib/data/learning.ts`

### Contact Delivery

- [Contact Form](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/page.tsx): `app/page.tsx`
- [Contact API](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/api/contact/route.ts): `app/api/contact/route.ts`
- [Email Service](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/lib/contact.ts): `lib/contact.ts`
- **SMTP Provider**

### Site Shell

- [Root Layout](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/app/layout.tsx): `app/layout.tsx`
- [Navigation](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/layout/Navbar.tsx): `components/layout/Navbar.tsx`
- [Footer](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/layout/Footer.tsx): `components/layout/Footer.tsx`
- [Theme Provider](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/contexts/ThemeContext.tsx): `contexts/ThemeContext.tsx`

### Shared UI

- [Hero Section](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/ui/HeroSection.tsx): `components/ui/HeroSection.tsx`
- [Section Layout](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/layout/Section.tsx): `components/layout/Section.tsx`
- [Animations](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/ui/Animations.tsx): `components/ui/Animations.tsx`
- [Buttons](https://github.com/mahmudulhasanmaruf78/portfolio/blob/main/components/ui/Button.tsx): `components/ui/Button.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Home Page: browses
- Visitor → About Page: browses
- Visitor → Project Listings: browses
- Visitor → Project Detail: opens
- Visitor → Resume Page: views
- Visitor → Video CV: views
- Home Page → Hero Section: renders (evidence: `app/page.tsx`)
- Home Page → Profile Data: reads (evidence: `app/page.tsx`)
- Home Page → Project Data: reads (evidence: `app/page.tsx`)
- Home Page → Skills Data: reads (evidence: `app/page.tsx`)
- Home Page → Education Data: reads (evidence: `app/page.tsx`)
- Home Page → Certificates Data: reads (evidence: `app/page.tsx`)
- Home Page → Learning Data: reads (evidence: `app/page.tsx`)
- About Page → Profile Data: reads (evidence: `app/about/AboutClient.tsx`)
- Project Listings → Project Data: reads (evidence: `app/projects/ProjectsClient.tsx`)
- Project Detail → Project Data: reads (evidence: `app/projects/[id]/page.tsx`)
- Resume Page → Profile Data: reads (evidence: `app/resume/page.tsx`)
- Resume Page → Skills Data: reads (evidence: `app/resume/page.tsx`)
- Resume Page → Project Data: reads (evidence: `app/resume/page.tsx`)
- Resume Page → Education Data: reads (evidence: `app/resume/page.tsx`)
- Contact Form → Contact API: posts to (evidence: `README.md`)
- Contact API → Email Service: calls (evidence: `app/api/contact/route.ts`)
- Email Service → SMTP Provider: sends email (evidence: `README.md`)
- Root Layout → Navigation: renders (evidence: `app/layout.tsx`)
- Root Layout → Footer: renders (evidence: `app/layout.tsx`)
- Root Layout → Theme Provider: provides (evidence: `app/layout.tsx`)
- Root Layout → Home Page: hosts
- Theme Provider → Navigation: controls toggle (evidence: `components/layout/Navbar.tsx`)
- Home Page → Section Layout: uses (evidence: `app/page.tsx`)
- Home Page → Animations: uses (evidence: `app/page.tsx`)
- Project Listings → Section Layout: uses (evidence: `app/projects/ProjectsClient.tsx`)
- Project Listings → Animations: uses (evidence: `app/projects/ProjectsClient.tsx`)
- Contact Form → Buttons: uses (evidence: `app/page.tsx`)
