# milan589/milan-chaudhary architecture

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

- Interactive diagram: https://gitdiagram.com/milan589/milan-chaudhary
- Repository: https://github.com/milan589/milan-chaudhary

## Overview

This is a multi-page developer portfolio: visitors browse profile, work history, education, projects and a CV, or submit a contact message. The README identifies profile data as the content source, while the excerpts show pages rendering that data and the contact form validating and posting to an API route. Shared navigation and presentation components form an internal layer. Contact delivery beyond the API boundary is not described in the shown evidence.

Main entry points: [`data/profile.ts`](https://github.com/milan589/milan-chaudhary/blob/main/data/profile.ts) (Profile data), [`components/PageHero.tsx`](https://github.com/milan589/milan-chaudhary/blob/main/components/PageHero.tsx) (Page hero), [`app/page.tsx`](https://github.com/milan589/milan-chaudhary/blob/main/app/page.tsx) (Home), [`app/projects/page.tsx`](https://github.com/milan589/milan-chaudhary/blob/main/app/projects/page.tsx) (Project list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Portfolio pages"]
  node_home["Home<br/>[page.tsx]"]
  node_about["About<br/>[page.tsx]"]
  node_experience["Experience<br/>[page.tsx]"]
  node_projects["Project list<br/>[page.tsx]"]
  node_project_detail["Project detail<br/>[page.tsx]"]
  node_education["Education<br/>[page.tsx]"]
  node_cv["CV<br/>[page.tsx]"]
  node_contact_page["Contact page<br/>[page.tsx]"]
end

subgraph group_shared["Shared interface"]
  node_layout["App layout<br/>[layout.tsx]"]
  node_sidebar["Profile sidebar<br/>[Sidebar.tsx]"]
  node_topnav["Top navigation<br/>[TopNav.tsx]"]
  node_theme["Theme toggle<br/>[ThemeToggle.tsx]"]
  node_pagehero["Page hero<br/>[PageHero.tsx]"]
  node_projectcard["Project card<br/>[ProjectCard.tsx]"]
end

subgraph group_content["Profile content"]
  node_profile_data["Profile data<br/>[profile.ts]"]
  node_project_time["Project timing<br/>[projectTime.ts]"]
end

subgraph group_contact["Contact workflow"]
  node_contact_form["Contact form<br/>[ContactForm.tsx]"]
  node_validation["Form validation"]
  node_contact_api["Contact API<br/>[contact.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_visitor -->|"opens"| node_about
node_visitor -->|"opens"| node_experience
node_visitor -->|"opens"| node_projects
node_visitor -->|"opens"| node_project_detail
node_visitor -->|"opens"| node_education
node_visitor -->|"opens"| node_cv
node_visitor -->|"opens"| node_contact_page
node_layout -->|"renders"| node_sidebar
node_layout -->|"renders"| node_topnav
node_topnav -->|"renders"| node_theme
node_home -->|"reads"| node_profile_data
node_home -->|"renders"| node_projectcard
node_about -->|"reads"| node_profile_data
node_experience -->|"reads"| node_profile_data
node_projects -->|"reads"| node_profile_data
node_projects -->|"renders"| node_projectcard
node_project_detail -->|"reads"| node_profile_data
node_project_detail -->|"calls"| node_project_time
node_education -->|"reads"| node_profile_data
node_cv -->|"reads"| node_profile_data
node_contact_page -->|"reads"| node_profile_data
node_contact_page -->|"renders"| node_contact_form
node_contact_form -->|"validates with"| node_validation
node_contact_form -->|"posts to"| node_contact_api
node_home -.->|"uses"| node_pagehero
node_about -->|"renders"| node_pagehero
node_experience -->|"renders"| node_pagehero
node_projects -->|"renders"| node_pagehero
node_project_detail -->|"renders"| node_pagehero
node_education -->|"renders"| node_pagehero
node_cv -->|"renders"| node_pagehero
node_contact_page -->|"renders"| node_pagehero
node_sidebar -->|"reads"| node_profile_data

click node_home "https://github.com/milan589/milan-chaudhary/blob/main/app/page.tsx"
click node_about "https://github.com/milan589/milan-chaudhary/blob/main/app/about/page.tsx"
click node_experience "https://github.com/milan589/milan-chaudhary/blob/main/app/experience/page.tsx"
click node_projects "https://github.com/milan589/milan-chaudhary/blob/main/app/projects/page.tsx"
click node_project_detail "https://github.com/milan589/milan-chaudhary/blob/main/app/projects/%5Bslug%5D/page.tsx"
click node_education "https://github.com/milan589/milan-chaudhary/blob/main/app/education/page.tsx"
click node_cv "https://github.com/milan589/milan-chaudhary/blob/main/app/cv/page.tsx"
click node_contact_page "https://github.com/milan589/milan-chaudhary/blob/main/app/contact/page.tsx"
click node_layout "https://github.com/milan589/milan-chaudhary/blob/main/app/layout.tsx"
click node_sidebar "https://github.com/milan589/milan-chaudhary/blob/main/components/Sidebar.tsx"
click node_topnav "https://github.com/milan589/milan-chaudhary/blob/main/components/TopNav.tsx"
click node_theme "https://github.com/milan589/milan-chaudhary/blob/main/components/ThemeToggle.tsx"
click node_pagehero "https://github.com/milan589/milan-chaudhary/blob/main/components/PageHero.tsx"
click node_projectcard "https://github.com/milan589/milan-chaudhary/blob/main/components/ProjectCard.tsx"
click node_profile_data "https://github.com/milan589/milan-chaudhary/blob/main/data/profile.ts"
click node_project_time "https://github.com/milan589/milan-chaudhary/blob/main/components/constant/projectTime.ts"
click node_contact_form "https://github.com/milan589/milan-chaudhary/blob/main/components/ContactForm.tsx"
click node_validation "https://github.com/milan589/milan-chaudhary/blob/main/components/contactValidation.ts"
click node_contact_api "https://github.com/milan589/milan-chaudhary/blob/main/functions/api/contact.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_about,node_experience,node_projects,node_project_detail,node_education,node_cv,node_contact_page toneBlue
class node_layout,node_sidebar,node_topnav,node_theme,node_pagehero,node_projectcard toneAmber
class node_profile_data,node_project_time toneMint
class node_contact_form,node_validation,node_contact_api toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio pages

- [Home](https://github.com/milan589/milan-chaudhary/blob/main/app/page.tsx): `app/page.tsx`
- [About](https://github.com/milan589/milan-chaudhary/blob/main/app/about/page.tsx): `app/about/page.tsx`
- [Experience](https://github.com/milan589/milan-chaudhary/blob/main/app/experience/page.tsx): `app/experience/page.tsx`
- [Project list](https://github.com/milan589/milan-chaudhary/blob/main/app/projects/page.tsx): `app/projects/page.tsx`
- [Project detail](https://github.com/milan589/milan-chaudhary/blob/main/app/projects/%5Bslug%5D/page.tsx): `app/projects/[slug]/page.tsx`
- [Education](https://github.com/milan589/milan-chaudhary/blob/main/app/education/page.tsx): `app/education/page.tsx`
- [CV](https://github.com/milan589/milan-chaudhary/blob/main/app/cv/page.tsx): `app/cv/page.tsx`
- [Contact page](https://github.com/milan589/milan-chaudhary/blob/main/app/contact/page.tsx): `app/contact/page.tsx`

### Shared interface

- [App layout](https://github.com/milan589/milan-chaudhary/blob/main/app/layout.tsx): `app/layout.tsx`
- [Profile sidebar](https://github.com/milan589/milan-chaudhary/blob/main/components/Sidebar.tsx): `components/Sidebar.tsx`
- [Top navigation](https://github.com/milan589/milan-chaudhary/blob/main/components/TopNav.tsx): `components/TopNav.tsx`
- [Theme toggle](https://github.com/milan589/milan-chaudhary/blob/main/components/ThemeToggle.tsx): `components/ThemeToggle.tsx`
- [Page hero](https://github.com/milan589/milan-chaudhary/blob/main/components/PageHero.tsx): `components/PageHero.tsx`
- [Project card](https://github.com/milan589/milan-chaudhary/blob/main/components/ProjectCard.tsx): `components/ProjectCard.tsx`

### Profile content

- [Profile data](https://github.com/milan589/milan-chaudhary/blob/main/data/profile.ts): `data/profile.ts`
- [Project timing](https://github.com/milan589/milan-chaudhary/blob/main/components/constant/projectTime.ts): `components/constant/projectTime.ts`

### Contact workflow

- [Contact form](https://github.com/milan589/milan-chaudhary/blob/main/components/ContactForm.tsx): `components/ContactForm.tsx`
- [Form validation](https://github.com/milan589/milan-chaudhary/blob/main/components/contactValidation.ts): `components/contactValidation.ts`
- [Contact API](https://github.com/milan589/milan-chaudhary/blob/main/functions/api/contact.ts): `functions/api/contact.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Home: opens
- Visitor → About: opens
- Visitor → Experience: opens
- Visitor → Project list: opens
- Visitor → Project detail: opens
- Visitor → Education: opens
- Visitor → CV: opens
- Visitor → Contact page: opens
- App layout → Profile sidebar: renders (evidence: `app/layout.tsx`)
- App layout → Top navigation: renders (evidence: `app/layout.tsx`)
- Top navigation → Theme toggle: renders (evidence: `components/TopNav.tsx`)
- Home → Profile data: reads (evidence: `app/page.tsx`)
- Home → Project card: renders (evidence: `app/page.tsx`)
- About → Profile data: reads (evidence: `app/about/page.tsx`)
- Experience → Profile data: reads (evidence: `app/experience/page.tsx`)
- Project list → Profile data: reads (evidence: `app/projects/page.tsx`)
- Project list → Project card: renders (evidence: `app/projects/page.tsx`)
- Project detail → Profile data: reads (evidence: `app/projects/[slug]/page.tsx`)
- Project detail → Project timing: calls (evidence: `app/projects/[slug]/page.tsx`)
- Education → Profile data: reads (evidence: `app/education/page.tsx`)
- CV → Profile data: reads (evidence: `app/cv/page.tsx`)
- Contact page → Profile data: reads (evidence: `app/contact/page.tsx`)
- Contact page → Contact form: renders (evidence: `app/contact/page.tsx`)
- Contact form → Form validation: validates with (evidence: `components/ContactForm.tsx`)
- Contact form → Contact API: posts to (evidence: `components/ContactForm.tsx`)
- Home → Page hero: uses
- About → Page hero: renders (evidence: `app/about/page.tsx`)
- Experience → Page hero: renders (evidence: `app/experience/page.tsx`)
- Project list → Page hero: renders (evidence: `app/projects/page.tsx`)
- Project detail → Page hero: renders (evidence: `app/projects/[slug]/page.tsx`)
- Education → Page hero: renders (evidence: `app/education/page.tsx`)
- CV → Page hero: renders (evidence: `app/cv/page.tsx`)
- Contact page → Page hero: renders (evidence: `app/contact/page.tsx`)
- Profile sidebar → Profile data: reads (evidence: `app/layout.tsx`)
