# amar-cmd/portfolio architecture

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

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

## Overview

Amar Jyoti Portfolio is a personal portfolio and résumé site. Visitors enter through the portfolio homepage, browse work and profile sections, and can navigate to the résumé or contact page; a lightweight landing page is also available. The résumé presents experience, education, skills, certifications, and projects. The graph follows documented page imports and the sampled component references; the README gives only the product name, so unsampled implementation details and undocumented interactions are not inferred.

Main entry points: [`app/resume/page.tsx`](https://github.com/amar-cmd/portfolio/blob/main/app/resume/page.tsx) (Resume Route), [`lib/motion.ts`](https://github.com/amar-cmd/portfolio/blob/main/lib/motion.ts) (Motion Presets), [`components/Header.tsx`](https://github.com/amar-cmd/portfolio/blob/main/components/Header.tsx) (Site Header), [`data/siteData.ts`](https://github.com/amar-cmd/portfolio/blob/main/data/siteData.ts) (Site Navigation Data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["Page Routes"]
  node_home_route["Portfolio Route<br/>[page.tsx]"]
  node_resume_route["Resume Route<br/>[page.tsx]"]
  node_contact_route["Contact Route<br/>[page.tsx]"]
  node_lite_route["Lite Route<br/>[page.tsx]"]
end

subgraph group_portfolio["Portfolio Content"]
  node_portfolio_home["Portfolio Sections<br/>[PortfolioHome.tsx]"]
  node_portfolio_data["Portfolio Profile Data<br/>[portfolioData.ts]"]
end

subgraph group_resume["Resume Content"]
  node_resume_data["Resume Data<br/>[resumeData.ts]"]
  node_resume_intro["Resume Introduction"]
  node_timeline["Experience and Education<br/>[CardSection.tsx]"]
  node_timeline_item["Timeline Item<br/>[CardItem.tsx]"]
  node_skills["Skills<br/>[SkillsSection.tsx]"]
  node_skill_chip["Skill Chip<br/>[SkillChip.tsx]"]
  node_certifications["Certifications"]
  node_certification_card["Certification Card"]
  node_projects["Selected Projects"]
  node_project_card["Project Card<br/>[ProjectCard.tsx]"]
end

subgraph group_shared["Shared Presentation"]
  node_rich_text["Inline Rich Text<br/>[InlineRichText.tsx]"]
  node_contact_section["Contact Details<br/>[ContactSection.tsx]"]
  node_site_data["Site Navigation Data<br/>[siteData.ts]"]
  node_header["Site Header<br/>[Header.tsx]"]
  node_motion["Motion Presets<br/>[motion.ts]"]
  node_lite_hero["Lite Landing Hero<br/>[LiteHero.tsx]"]
  node_section_heading["Section Heading<br/>[SectionHeading.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home_route
node_visitor -->|"opens"| node_resume_route
node_visitor -->|"opens"| node_contact_route
node_visitor -->|"opens"| node_lite_route
node_home_route -->|"renders"| node_header
node_home_route -->|"renders"| node_portfolio_home
node_home_route -->|"reads navigation"| node_site_data
node_portfolio_home -->|"reads"| node_portfolio_data
node_resume_route -->|"renders"| node_header
node_resume_route -->|"reads"| node_resume_data
node_resume_route -->|"renders"| node_resume_intro
node_resume_route -->|"renders"| node_timeline
node_resume_route -->|"renders"| node_skills
node_resume_route -->|"renders"| node_certifications
node_resume_route -->|"renders"| node_projects
node_resume_route -->|"reads navigation"| node_site_data
node_timeline -->|"renders"| node_timeline_item
node_timeline -->|"renders"| node_section_heading
node_timeline_item -->|"renders"| node_rich_text
node_skills -->|"renders"| node_skill_chip
node_skills -->|"renders"| node_section_heading
node_certifications -->|"renders"| node_certification_card
node_certifications -->|"renders"| node_section_heading
node_projects -->|"renders"| node_project_card
node_projects -->|"renders"| node_section_heading
node_project_card -->|"renders"| node_rich_text
node_contact_route -->|"renders"| node_header
node_contact_route -->|"renders"| node_contact_section
node_contact_route -->|"reads contact data"| node_site_data
node_lite_route -->|"renders"| node_lite_hero
node_lite_route -->|"reads landing data"| node_site_data
node_header -->|"uses navigation types"| node_site_data
node_header -->|"uses presets"| node_motion
node_contact_section -->|"uses presets"| node_motion
node_lite_hero -->|"uses presets"| node_motion
node_timeline_item -->|"uses presets"| node_motion
node_timeline -->|"uses presets"| node_motion
node_skill_chip -->|"uses presets"| node_motion
node_certification_card -->|"uses presets"| node_motion
node_certifications -->|"uses presets"| node_motion
node_projects -->|"uses presets"| node_motion
node_project_card -->|"uses presets"| node_motion

click node_home_route "https://github.com/amar-cmd/portfolio/blob/main/app/page.tsx"
click node_resume_route "https://github.com/amar-cmd/portfolio/blob/main/app/resume/page.tsx"
click node_contact_route "https://github.com/amar-cmd/portfolio/blob/main/app/contact/page.tsx"
click node_lite_route "https://github.com/amar-cmd/portfolio/blob/main/app/lite/page.tsx"
click node_portfolio_home "https://github.com/amar-cmd/portfolio/blob/main/components/PortfolioHome.tsx"
click node_portfolio_data "https://github.com/amar-cmd/portfolio/blob/main/data/portfolioData.ts"
click node_resume_data "https://github.com/amar-cmd/portfolio/blob/main/data/resumeData.ts"
click node_resume_intro "https://github.com/amar-cmd/portfolio/blob/main/components/ResumeIntroCard.tsx"
click node_timeline "https://github.com/amar-cmd/portfolio/blob/main/components/CardSection.tsx"
click node_timeline_item "https://github.com/amar-cmd/portfolio/blob/main/components/CardItem.tsx"
click node_skills "https://github.com/amar-cmd/portfolio/blob/main/components/SkillsSection.tsx"
click node_skill_chip "https://github.com/amar-cmd/portfolio/blob/main/components/SkillChip.tsx"
click node_certifications "https://github.com/amar-cmd/portfolio/blob/main/components/CertificationSection.tsx"
click node_certification_card "https://github.com/amar-cmd/portfolio/blob/main/components/CertificationCard.tsx"
click node_projects "https://github.com/amar-cmd/portfolio/blob/main/components/ProjectsSection.tsx"
click node_project_card "https://github.com/amar-cmd/portfolio/blob/main/components/ProjectCard.tsx"
click node_rich_text "https://github.com/amar-cmd/portfolio/blob/main/components/InlineRichText.tsx"
click node_contact_section "https://github.com/amar-cmd/portfolio/blob/main/components/ContactSection.tsx"
click node_site_data "https://github.com/amar-cmd/portfolio/blob/main/data/siteData.ts"
click node_header "https://github.com/amar-cmd/portfolio/blob/main/components/Header.tsx"
click node_motion "https://github.com/amar-cmd/portfolio/blob/main/lib/motion.ts"
click node_lite_hero "https://github.com/amar-cmd/portfolio/blob/main/components/LiteHero.tsx"
click node_section_heading "https://github.com/amar-cmd/portfolio/blob/main/components/SectionHeading.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_route,node_resume_route,node_contact_route,node_lite_route toneBlue
class node_portfolio_home,node_portfolio_data toneAmber
class node_resume_data,node_resume_intro,node_timeline,node_timeline_item,node_skills,node_skill_chip,node_certifications,node_certification_card,node_projects,node_project_card toneMint
class node_rich_text,node_contact_section,node_site_data,node_header,node_motion,node_lite_hero,node_section_heading toneRose
class node_visitor toneIndigo
```

## Components

### Page Routes

- [Portfolio Route](https://github.com/amar-cmd/portfolio/blob/main/app/page.tsx): `app/page.tsx`
- [Resume Route](https://github.com/amar-cmd/portfolio/blob/main/app/resume/page.tsx): `app/resume/page.tsx`
- [Contact Route](https://github.com/amar-cmd/portfolio/blob/main/app/contact/page.tsx): `app/contact/page.tsx`
- [Lite Route](https://github.com/amar-cmd/portfolio/blob/main/app/lite/page.tsx): `app/lite/page.tsx`

### Portfolio Content

- [Portfolio Sections](https://github.com/amar-cmd/portfolio/blob/main/components/PortfolioHome.tsx): `components/PortfolioHome.tsx`
- [Portfolio Profile Data](https://github.com/amar-cmd/portfolio/blob/main/data/portfolioData.ts): `data/portfolioData.ts`

### Resume Content

- [Resume Data](https://github.com/amar-cmd/portfolio/blob/main/data/resumeData.ts): `data/resumeData.ts`
- [Resume Introduction](https://github.com/amar-cmd/portfolio/blob/main/components/ResumeIntroCard.tsx): `components/ResumeIntroCard.tsx`
- [Experience and Education](https://github.com/amar-cmd/portfolio/blob/main/components/CardSection.tsx): `components/CardSection.tsx`
- [Timeline Item](https://github.com/amar-cmd/portfolio/blob/main/components/CardItem.tsx): `components/CardItem.tsx`
- [Skills](https://github.com/amar-cmd/portfolio/blob/main/components/SkillsSection.tsx): `components/SkillsSection.tsx`
- [Skill Chip](https://github.com/amar-cmd/portfolio/blob/main/components/SkillChip.tsx): `components/SkillChip.tsx`
- [Certifications](https://github.com/amar-cmd/portfolio/blob/main/components/CertificationSection.tsx): `components/CertificationSection.tsx`
- [Certification Card](https://github.com/amar-cmd/portfolio/blob/main/components/CertificationCard.tsx): `components/CertificationCard.tsx`
- [Selected Projects](https://github.com/amar-cmd/portfolio/blob/main/components/ProjectsSection.tsx): `components/ProjectsSection.tsx`
- [Project Card](https://github.com/amar-cmd/portfolio/blob/main/components/ProjectCard.tsx): `components/ProjectCard.tsx`

### Shared Presentation

- [Inline Rich Text](https://github.com/amar-cmd/portfolio/blob/main/components/InlineRichText.tsx): `components/InlineRichText.tsx`
- [Contact Details](https://github.com/amar-cmd/portfolio/blob/main/components/ContactSection.tsx): `components/ContactSection.tsx`
- [Site Navigation Data](https://github.com/amar-cmd/portfolio/blob/main/data/siteData.ts): `data/siteData.ts`
- [Site Header](https://github.com/amar-cmd/portfolio/blob/main/components/Header.tsx): `components/Header.tsx`
- [Motion Presets](https://github.com/amar-cmd/portfolio/blob/main/lib/motion.ts): `lib/motion.ts`
- [Lite Landing Hero](https://github.com/amar-cmd/portfolio/blob/main/components/LiteHero.tsx): `components/LiteHero.tsx`
- [Section Heading](https://github.com/amar-cmd/portfolio/blob/main/components/SectionHeading.tsx): `components/SectionHeading.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio Route: opens (evidence: `app/page.tsx`)
- Visitor → Resume Route: opens (evidence: `app/resume/page.tsx`)
- Visitor → Contact Route: opens (evidence: `app/contact/page.tsx`)
- Visitor → Lite Route: opens (evidence: `app/lite/page.tsx`)
- Portfolio Route → Site Header: renders (evidence: `app/page.tsx`)
- Portfolio Route → Portfolio Sections: renders (evidence: `app/page.tsx`)
- Portfolio Route → Site Navigation Data: reads navigation (evidence: `app/page.tsx`)
- Portfolio Sections → Portfolio Profile Data: reads (evidence: `components/PortfolioHome.tsx`)
- Resume Route → Site Header: renders (evidence: `app/resume/page.tsx`)
- Resume Route → Resume Data: reads (evidence: `app/resume/page.tsx`)
- Resume Route → Resume Introduction: renders (evidence: `app/resume/page.tsx`)
- Resume Route → Experience and Education: renders (evidence: `app/resume/page.tsx`)
- Resume Route → Skills: renders (evidence: `app/resume/page.tsx`)
- Resume Route → Certifications: renders (evidence: `app/resume/page.tsx`)
- Resume Route → Selected Projects: renders (evidence: `app/resume/page.tsx`)
- Resume Route → Site Navigation Data: reads navigation (evidence: `app/resume/page.tsx`)
- Experience and Education → Timeline Item: renders (evidence: `components/CardSection.tsx`)
- Experience and Education → Section Heading: renders (evidence: `components/CardSection.tsx`)
- Timeline Item → Inline Rich Text: renders (evidence: `components/CardItem.tsx`)
- Skills → Skill Chip: renders (evidence: `components/SkillsSection.tsx`)
- Skills → Section Heading: renders (evidence: `components/SkillsSection.tsx`)
- Certifications → Certification Card: renders (evidence: `components/CertificationSection.tsx`)
- Certifications → Section Heading: renders (evidence: `components/CertificationSection.tsx`)
- Selected Projects → Project Card: renders (evidence: `components/ProjectsSection.tsx`)
- Selected Projects → Section Heading: renders (evidence: `components/ProjectsSection.tsx`)
- Project Card → Inline Rich Text: renders (evidence: `components/ProjectCard.tsx`)
- Contact Route → Site Header: renders (evidence: `app/contact/page.tsx`)
- Contact Route → Contact Details: renders (evidence: `app/contact/page.tsx`)
- Contact Route → Site Navigation Data: reads contact data (evidence: `app/contact/page.tsx`)
- Lite Route → Lite Landing Hero: renders (evidence: `app/lite/page.tsx`)
- Lite Route → Site Navigation Data: reads landing data (evidence: `app/lite/page.tsx`)
- Site Header → Site Navigation Data: uses navigation types (evidence: `components/Header.tsx`)
- Site Header → Motion Presets: uses presets (evidence: `components/Header.tsx`)
- Contact Details → Motion Presets: uses presets (evidence: `components/ContactSection.tsx`)
- Lite Landing Hero → Motion Presets: uses presets (evidence: `components/LiteHero.tsx`)
- Timeline Item → Motion Presets: uses presets (evidence: `components/CardItem.tsx`)
- Experience and Education → Motion Presets: uses presets (evidence: `components/CardSection.tsx`)
- Skill Chip → Motion Presets: uses presets (evidence: `components/SkillChip.tsx`)
- Certification Card → Motion Presets: uses presets (evidence: `components/CertificationCard.tsx`)
- Certifications → Motion Presets: uses presets (evidence: `components/CertificationSection.tsx`)
- Selected Projects → Motion Presets: uses presets (evidence: `components/ProjectsSection.tsx`)
- Project Card → Motion Presets: uses presets (evidence: `components/ProjectCard.tsx`)
