# samsaw777/portfolio architecture

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

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

## Overview

This is a personal portfolio site: visitors browse a landing page with biography, experience, education, projects, and blog content, or open a separate all-projects route. The React entry point installs routing; App selects the route and provides shared theme state. The landing page composes the portfolio sections, while the project listing has its own navigation and footer. The map follows imports and calls visible in the excerpts and SOURCE INDEX; some listed components were not shown in use, so their connections are omitted.

Main entry points: [`src/components/LandingPage.tsx`](https://github.com/samsaw777/portfolio/blob/main/src/components/LandingPage.tsx) (Landing Page), [`src/App.tsx`](https://github.com/samsaw777/portfolio/blob/main/src/App.tsx) (Route App), [`src/components/AllProjects.tsx`](https://github.com/samsaw777/portfolio/blob/main/src/components/AllProjects.tsx) (All Projects), [`src/index.tsx`](https://github.com/samsaw777/portfolio/blob/main/src/index.tsx) (React Entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App and Routing"]
  node_entrypoint["React Entry<br/>[index.tsx]"]
  node_app["Route App<br/>[App.tsx]"]
  node_vitals["Web Vitals Reporter<br/>[reportWebVitals.ts]"]
end

subgraph group_portfolio["Portfolio Content"]
  node_landing["Landing Page<br/>[LandingPage.tsx]"]
  node_about["About Me<br/>[Aboutus.tsx]"]
  node_work["Experience<br/>[Work.tsx]"]
  node_education["Education<br/>[Education.tsx]"]
  node_blogs["Blog Section<br/>[Blogs.tsx]"]
  node_intro["Introduction<br/>[Introduction.tsx]"]
  node_freelancing["Freelancing<br/>[FreeLancing.tsx]"]
  node_job["Job Component<br/>[Job.tsx]"]
end

subgraph group_projects["Project Showcase"]
  node_mainprojects["Featured Projects<br/>[MainProject.tsx]"]
  node_allprojects["All Projects<br/>[AllProjects.tsx]"]
  node_otherprojects["Other Projects<br/>[OtherProjects.tsx]"]
end

subgraph group_shared["Shared UI and State"]
  node_navigation["Navigation Bar<br/>[NavigationBar.tsx]"]
  node_links["Social Links<br/>[LinkIcons.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_theme["Theme Provider<br/>[ThemeContext.tsx]"]
  node_skills["Skill Icons<br/>[icons.ts]"]
  node_tabs["Tabs Component<br/>[Tabs.tsx]"]
end

node_browser(("Visitor Browser"))
node_storage[("Browser Storage")]

node_browser -->|"opens app"| node_entrypoint
node_entrypoint -->|"renders"| node_app
node_entrypoint -->|"invokes"| node_vitals
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_allprojects
node_app -->|"provides"| node_theme
node_landing -->|"renders"| node_navigation
node_landing -->|"renders"| node_intro
node_landing -->|"renders"| node_links
node_landing -->|"renders"| node_about
node_landing -->|"renders"| node_work
node_landing -->|"renders"| node_education
node_landing -->|"renders"| node_mainprojects
node_landing -->|"renders"| node_blogs
node_landing -->|"renders"| node_footer
node_navigation -->|"reads and toggles"| node_theme
node_theme -->|"reads and writes"| node_storage
node_about -->|"uses"| node_skills
node_allprojects -->|"renders"| node_navigation
node_allprojects -->|"renders"| node_links
node_allprojects -->|"renders"| node_footer

click node_entrypoint "https://github.com/samsaw777/portfolio/blob/main/src/index.tsx"
click node_app "https://github.com/samsaw777/portfolio/blob/main/src/App.tsx"
click node_landing "https://github.com/samsaw777/portfolio/blob/main/src/components/LandingPage.tsx"
click node_about "https://github.com/samsaw777/portfolio/blob/main/src/components/Aboutus.tsx"
click node_work "https://github.com/samsaw777/portfolio/blob/main/src/components/Work.tsx"
click node_education "https://github.com/samsaw777/portfolio/blob/main/src/components/Education.tsx"
click node_blogs "https://github.com/samsaw777/portfolio/blob/main/src/components/Blogs.tsx"
click node_intro "https://github.com/samsaw777/portfolio/blob/main/src/components/Introduction.tsx"
click node_mainprojects "https://github.com/samsaw777/portfolio/blob/main/src/components/MainProject.tsx"
click node_allprojects "https://github.com/samsaw777/portfolio/blob/main/src/components/AllProjects.tsx"
click node_otherprojects "https://github.com/samsaw777/portfolio/blob/main/src/components/OtherProjects.tsx"
click node_navigation "https://github.com/samsaw777/portfolio/blob/main/src/components/NavigationBar.tsx"
click node_links "https://github.com/samsaw777/portfolio/blob/main/src/components/LinkIcons.tsx"
click node_footer "https://github.com/samsaw777/portfolio/blob/main/src/components/Footer.tsx"
click node_theme "https://github.com/samsaw777/portfolio/blob/main/src/context/ThemeContext.tsx"
click node_skills "https://github.com/samsaw777/portfolio/blob/main/src/utils/icons.ts"
click node_freelancing "https://github.com/samsaw777/portfolio/blob/main/src/components/FreeLancing.tsx"
click node_job "https://github.com/samsaw777/portfolio/blob/main/src/components/reusecomponent/Job.tsx"
click node_tabs "https://github.com/samsaw777/portfolio/blob/main/src/components/reusecomponent/Tabs.tsx"
click node_vitals "https://github.com/samsaw777/portfolio/blob/main/src/reportWebVitals.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_entrypoint,node_app,node_vitals,node_browser toneBlue
class node_landing,node_about,node_work,node_education,node_blogs,node_intro,node_freelancing,node_job,node_storage toneAmber
class node_mainprojects,node_allprojects,node_otherprojects toneMint
class node_navigation,node_links,node_footer,node_theme,node_skills,node_tabs toneRose
```

## Components

### App and Routing

- [React Entry](https://github.com/samsaw777/portfolio/blob/main/src/index.tsx): `src/index.tsx`
- [Route App](https://github.com/samsaw777/portfolio/blob/main/src/App.tsx): `src/App.tsx`
- [Web Vitals Reporter](https://github.com/samsaw777/portfolio/blob/main/src/reportWebVitals.ts): `src/reportWebVitals.ts`

### Portfolio Content

- [Landing Page](https://github.com/samsaw777/portfolio/blob/main/src/components/LandingPage.tsx): `src/components/LandingPage.tsx`
- [About Me](https://github.com/samsaw777/portfolio/blob/main/src/components/Aboutus.tsx): `src/components/Aboutus.tsx`
- [Experience](https://github.com/samsaw777/portfolio/blob/main/src/components/Work.tsx): `src/components/Work.tsx`
- [Education](https://github.com/samsaw777/portfolio/blob/main/src/components/Education.tsx): `src/components/Education.tsx`
- [Blog Section](https://github.com/samsaw777/portfolio/blob/main/src/components/Blogs.tsx): `src/components/Blogs.tsx`
- [Introduction](https://github.com/samsaw777/portfolio/blob/main/src/components/Introduction.tsx): `src/components/Introduction.tsx`
- [Freelancing](https://github.com/samsaw777/portfolio/blob/main/src/components/FreeLancing.tsx): `src/components/FreeLancing.tsx`
- [Job Component](https://github.com/samsaw777/portfolio/blob/main/src/components/reusecomponent/Job.tsx): `src/components/reusecomponent/Job.tsx`

### Project Showcase

- [Featured Projects](https://github.com/samsaw777/portfolio/blob/main/src/components/MainProject.tsx): `src/components/MainProject.tsx`
- [All Projects](https://github.com/samsaw777/portfolio/blob/main/src/components/AllProjects.tsx): `src/components/AllProjects.tsx`
- [Other Projects](https://github.com/samsaw777/portfolio/blob/main/src/components/OtherProjects.tsx): `src/components/OtherProjects.tsx`

### Shared UI and State

- [Navigation Bar](https://github.com/samsaw777/portfolio/blob/main/src/components/NavigationBar.tsx): `src/components/NavigationBar.tsx`
- [Social Links](https://github.com/samsaw777/portfolio/blob/main/src/components/LinkIcons.tsx): `src/components/LinkIcons.tsx`
- [Footer](https://github.com/samsaw777/portfolio/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`
- [Theme Provider](https://github.com/samsaw777/portfolio/blob/main/src/context/ThemeContext.tsx): `src/context/ThemeContext.tsx`
- [Skill Icons](https://github.com/samsaw777/portfolio/blob/main/src/utils/icons.ts): `src/utils/icons.ts`
- [Tabs Component](https://github.com/samsaw777/portfolio/blob/main/src/components/reusecomponent/Tabs.tsx): `src/components/reusecomponent/Tabs.tsx`

### Other components

- **Visitor Browser**
- **Browser Storage**

## Connections

- Visitor Browser → React Entry: opens app (evidence: `src/index.tsx`)
- React Entry → Route App: renders (evidence: `src/index.tsx`)
- React Entry → Web Vitals Reporter: invokes (evidence: `src/index.tsx`)
- Route App → Landing Page: routes to (evidence: `src/App.tsx`)
- Route App → All Projects: routes to (evidence: `src/App.tsx`)
- Route App → Theme Provider: provides (evidence: `src/App.tsx`)
- Landing Page → Navigation Bar: renders (evidence: `src/components/LandingPage.tsx`)
- Landing Page → Introduction: renders (evidence: `src/components/LandingPage.tsx`)
- Landing Page → Social Links: renders (evidence: `src/components/LandingPage.tsx`)
- Landing Page → About Me: renders (evidence: `src/components/LandingPage.tsx`)
- Landing Page → Experience: renders (evidence: `src/components/LandingPage.tsx`)
- Landing Page → Education: renders (evidence: `src/components/LandingPage.tsx`)
- Landing Page → Featured Projects: renders (evidence: `src/components/LandingPage.tsx`)
- Landing Page → Blog Section: renders (evidence: `src/components/LandingPage.tsx`)
- Landing Page → Footer: renders (evidence: `src/components/LandingPage.tsx`)
- Navigation Bar → Theme Provider: reads and toggles (evidence: `src/components/NavigationBar.tsx`)
- Theme Provider → Browser Storage: reads and writes (evidence: `src/context/ThemeContext.tsx`)
- About Me → Skill Icons: uses (evidence: `src/components/Aboutus.tsx`)
- All Projects → Navigation Bar: renders (evidence: `src/components/AllProjects.tsx`)
- All Projects → Social Links: renders (evidence: `src/components/AllProjects.tsx`)
- All Projects → Footer: renders (evidence: `src/components/AllProjects.tsx`)
