# nasimll/portfolio architecture

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

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

## Overview

This is a personal portfolio site: visitors reach a single page presenting the owner’s profile, work history, skills, projects, and contact options. The page composes those sections; they read shared content from the profile data module. The hero and shared reveal components provide animation, while navigation exposes section links and a theme control. Relationships are based on the page and component excerpts plus the SOURCE INDEX import references; unsampled component internals are not inferred.

Main entry points: [`src/app/page.tsx`](https://github.com/nasimll/portfolio/blob/main/src/app/page.tsx) (Home page), [`src/data/profile.ts`](https://github.com/nasimll/portfolio/blob/main/src/data/profile.ts) (Profile content), [`src/components/reveal.tsx`](https://github.com/nasimll/portfolio/blob/main/src/components/reveal.tsx) (Reveal animation), [`src/components/sections/section-heading.tsx`](https://github.com/nasimll/portfolio/blob/main/src/components/sections/section-heading.tsx) (Section heading)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_composition["Page composition"]
  node_home["Home page<br/>[page.tsx]"]
  node_hero["Hero section<br/>[hero-section.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_stats["Stats section<br/>[stats-section.tsx]"]
  node_about["About section<br/>[about-section.tsx]"]
  node_skills["Skills section<br/>[skills-section.tsx]"]
  node_experience["Experience section"]
  node_projects["Projects section"]
  node_contact["Contact section"]
  node_profile["Profile content<br/>[profile.ts]"]
end

subgraph group_motion["Visual behavior"]
  node_mountain["Mountain scene<br/>[mountain-scene.tsx]"]
  node_reveal["Reveal animation<br/>[reveal.tsx]"]
  node_gsap["GSAP helpers<br/>[gsap.ts]"]
end

subgraph group_shared["Shared interface"]
  node_navbar["Navigation bar<br/>[nav-bar.tsx]"]
  node_footer["Site footer<br/>[site-footer.tsx]"]
  node_theme_provider["Theme provider<br/>[theme-provider.tsx]"]
  node_theme_toggle["Theme toggle<br/>[theme-toggle.tsx]"]
  node_heading["Section heading"]
  node_icons["Social icons<br/>[icons.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_stats
node_home -->|"renders"| node_about
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_experience
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_contact
node_home -->|"renders"| node_footer
node_hero -->|"renders"| node_mountain
node_hero -->|"reads"| node_profile
node_hero -->|"uses"| node_gsap
node_mountain -->|"uses"| node_gsap
node_navbar -->|"reads"| node_profile
node_navbar -->|"renders"| node_theme_toggle
node_theme_provider -->|"reads"| node_profile
node_stats -->|"reads"| node_profile
node_stats -->|"uses"| node_gsap
node_about -->|"reads"| node_profile
node_about -->|"renders"| node_heading
node_about -->|"renders"| node_reveal
node_skills -->|"reads"| node_profile
node_skills -->|"renders"| node_heading
node_skills -->|"renders"| node_reveal
node_experience -->|"reads"| node_profile
node_experience -->|"renders"| node_heading
node_experience -->|"renders"| node_reveal
node_projects -->|"reads"| node_profile
node_projects -->|"renders"| node_heading
node_projects -->|"renders"| node_reveal
node_projects -->|"uses"| node_icons
node_contact -->|"reads"| node_profile
node_contact -->|"renders"| node_heading
node_contact -->|"renders"| node_reveal
node_contact -->|"uses"| node_icons
node_footer -->|"reads"| node_profile
node_theme_toggle --> node_gsap
node_reveal -->|"uses"| node_gsap
node_heading -->|"renders"| node_reveal

click node_home "https://github.com/nasimll/portfolio/blob/main/src/app/page.tsx"
click node_hero "https://github.com/nasimll/portfolio/blob/main/src/components/hero/hero-section.tsx"
click node_mountain "https://github.com/nasimll/portfolio/blob/main/src/components/hero/mountain-scene.tsx"
click node_stats "https://github.com/nasimll/portfolio/blob/main/src/components/sections/stats-section.tsx"
click node_about "https://github.com/nasimll/portfolio/blob/main/src/components/sections/about-section.tsx"
click node_skills "https://github.com/nasimll/portfolio/blob/main/src/components/sections/skills-section.tsx"
click node_experience "https://github.com/nasimll/portfolio/blob/main/src/components/sections/experience-section.tsx"
click node_projects "https://github.com/nasimll/portfolio/blob/main/src/components/sections/projects-section.tsx"
click node_contact "https://github.com/nasimll/portfolio/blob/main/src/components/sections/contact-section.tsx"
click node_profile "https://github.com/nasimll/portfolio/blob/main/src/data/profile.ts"
click node_navbar "https://github.com/nasimll/portfolio/blob/main/src/components/nav-bar.tsx"
click node_footer "https://github.com/nasimll/portfolio/blob/main/src/components/site-footer.tsx"
click node_theme_provider "https://github.com/nasimll/portfolio/blob/main/src/components/theme-provider.tsx"
click node_theme_toggle "https://github.com/nasimll/portfolio/blob/main/src/components/theme-toggle.tsx"
click node_heading "https://github.com/nasimll/portfolio/blob/main/src/components/sections/section-heading.tsx"
click node_reveal "https://github.com/nasimll/portfolio/blob/main/src/components/reveal.tsx"
click node_gsap "https://github.com/nasimll/portfolio/blob/main/src/lib/gsap.ts"
click node_icons "https://github.com/nasimll/portfolio/blob/main/src/components/icons.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_hero toneBlue
class node_stats,node_about,node_skills,node_experience,node_projects,node_contact,node_profile toneAmber
class node_mountain,node_reveal,node_gsap toneMint
class node_navbar,node_footer,node_theme_provider,node_theme_toggle,node_heading,node_icons toneRose
class node_visitor toneIndigo
```

## Components

### Page composition

- [Home page](https://github.com/nasimll/portfolio/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Hero section](https://github.com/nasimll/portfolio/blob/main/src/components/hero/hero-section.tsx): `src/components/hero/hero-section.tsx`

### Portfolio content

- [Stats section](https://github.com/nasimll/portfolio/blob/main/src/components/sections/stats-section.tsx): `src/components/sections/stats-section.tsx`
- [About section](https://github.com/nasimll/portfolio/blob/main/src/components/sections/about-section.tsx): `src/components/sections/about-section.tsx`
- [Skills section](https://github.com/nasimll/portfolio/blob/main/src/components/sections/skills-section.tsx): `src/components/sections/skills-section.tsx`
- [Experience section](https://github.com/nasimll/portfolio/blob/main/src/components/sections/experience-section.tsx): `src/components/sections/experience-section.tsx`
- [Projects section](https://github.com/nasimll/portfolio/blob/main/src/components/sections/projects-section.tsx): `src/components/sections/projects-section.tsx`
- [Contact section](https://github.com/nasimll/portfolio/blob/main/src/components/sections/contact-section.tsx): `src/components/sections/contact-section.tsx`
- [Profile content](https://github.com/nasimll/portfolio/blob/main/src/data/profile.ts): `src/data/profile.ts`

### Visual behavior

- [Mountain scene](https://github.com/nasimll/portfolio/blob/main/src/components/hero/mountain-scene.tsx): `src/components/hero/mountain-scene.tsx`
- [Reveal animation](https://github.com/nasimll/portfolio/blob/main/src/components/reveal.tsx): `src/components/reveal.tsx`
- [GSAP helpers](https://github.com/nasimll/portfolio/blob/main/src/lib/gsap.ts): `src/lib/gsap.ts`

### Shared interface

- [Navigation bar](https://github.com/nasimll/portfolio/blob/main/src/components/nav-bar.tsx): `src/components/nav-bar.tsx`
- [Site footer](https://github.com/nasimll/portfolio/blob/main/src/components/site-footer.tsx): `src/components/site-footer.tsx`
- [Theme provider](https://github.com/nasimll/portfolio/blob/main/src/components/theme-provider.tsx): `src/components/theme-provider.tsx`
- [Theme toggle](https://github.com/nasimll/portfolio/blob/main/src/components/theme-toggle.tsx): `src/components/theme-toggle.tsx`
- [Section heading](https://github.com/nasimll/portfolio/blob/main/src/components/sections/section-heading.tsx): `src/components/sections/section-heading.tsx`
- [Social icons](https://github.com/nasimll/portfolio/blob/main/src/components/icons.tsx): `src/components/icons.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens (evidence: `README.md`)
- Home page → Navigation bar: renders (evidence: `src/app/page.tsx`)
- Home page → Hero section: renders (evidence: `src/app/page.tsx`)
- Home page → Stats section: renders (evidence: `src/app/page.tsx`)
- Home page → About section: renders (evidence: `src/app/page.tsx`)
- Home page → Skills section: renders (evidence: `src/app/page.tsx`)
- Home page → Experience section: renders (evidence: `src/app/page.tsx`)
- Home page → Projects section: renders (evidence: `src/app/page.tsx`)
- Home page → Contact section: renders (evidence: `src/app/page.tsx`)
- Home page → Site footer: renders (evidence: `src/app/page.tsx`)
- Hero section → Mountain scene: renders (evidence: `src/components/hero/hero-section.tsx`)
- Hero section → Profile content: reads (evidence: `src/components/hero/hero-section.tsx`)
- Hero section → GSAP helpers: uses (evidence: `src/components/hero/hero-section.tsx`)
- Mountain scene → GSAP helpers: uses (evidence: `src/components/hero/mountain-scene.tsx`)
- Navigation bar → Profile content: reads (evidence: `src/components/nav-bar.tsx`)
- Navigation bar → Theme toggle: renders (evidence: `src/components/nav-bar.tsx`)
- Theme provider → Profile content: reads (evidence: `src/app/layout.tsx`)
- Stats section → Profile content: reads (evidence: `src/components/sections/stats-section.tsx`)
- Stats section → GSAP helpers: uses (evidence: `src/components/sections/stats-section.tsx`)
- About section → Profile content: reads (evidence: `src/components/sections/about-section.tsx`)
- About section → Section heading: renders (evidence: `src/components/sections/about-section.tsx`)
- About section → Reveal animation: renders (evidence: `src/components/sections/about-section.tsx`)
- Skills section → Profile content: reads (evidence: `src/components/sections/skills-section.tsx`)
- Skills section → Section heading: renders (evidence: `src/components/sections/skills-section.tsx`)
- Skills section → Reveal animation: renders (evidence: `src/components/sections/skills-section.tsx`)
- Experience section → Profile content: reads (evidence: `src/components/sections/experience-section.tsx`)
- Experience section → Section heading: renders (evidence: `src/components/sections/experience-section.tsx`)
- Experience section → Reveal animation: renders (evidence: `src/components/sections/experience-section.tsx`)
- Projects section → Profile content: reads (evidence: `src/components/sections/projects-section.tsx`)
- Projects section → Section heading: renders (evidence: `src/components/sections/projects-section.tsx`)
- Projects section → Reveal animation: renders (evidence: `src/components/sections/projects-section.tsx`)
- Projects section → Social icons: uses (evidence: `src/components/sections/projects-section.tsx`)
- Contact section → Profile content: reads (evidence: `src/components/sections/contact-section.tsx`)
- Contact section → Section heading: renders (evidence: `src/components/sections/contact-section.tsx`)
- Contact section → Reveal animation: renders (evidence: `src/components/sections/contact-section.tsx`)
- Contact section → Social icons: uses (evidence: `src/components/sections/contact-section.tsx`)
- Site footer → Profile content: reads (evidence: `src/components/site-footer.tsx`)
- Theme toggle → GSAP helpers
- Reveal animation → GSAP helpers: uses (evidence: `src/components/reveal.tsx`)
- Section heading → Reveal animation: renders (evidence: `src/components/sections/section-heading.tsx`)
