# chinnaiahp/portfolio architecture

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

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

## Overview

This is a React personal portfolio: visitors enter the home page and browse a single-page presentation of professional background, experience, skills, education, and contact options. The README also names projects and technical expertise; no dedicated projects module appears in the tree, so project content is represented only where the portfolio sections support it. The graph follows documented and indexed relationships; unsampled section implementations are not described beyond their role in the page.

Main entry points: [`src/pages/Index.tsx`](https://github.com/chinnaiahp/portfolio/blob/main/src/pages/Index.tsx) (Portfolio page), [`src/App.tsx`](https://github.com/chinnaiahp/portfolio/blob/main/src/App.tsx) (App and routes), [`src/components/ui/toaster.tsx`](https://github.com/chinnaiahp/portfolio/blob/main/src/components/ui/toaster.tsx) (Toast components), [`src/main.tsx`](https://github.com/chinnaiahp/portfolio/blob/main/src/main.tsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Application and routing"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App and routes<br/>[App.tsx]"]
end

subgraph group_portfolio["Portfolio content"]
  node_home["Portfolio page<br/>[Index.tsx]"]
  node_notfound["Not-found page<br/>[NotFound.tsx]"]
  node_hero["Profile introduction<br/>[Hero.tsx]"]
  node_about["Professional background<br/>[About.tsx]"]
  node_experience["Experience and projects<br/>[Experience.tsx]"]
  node_skills["Technical expertise<br/>[Skills.tsx]"]
  node_education["Education<br/>[Education.tsx]"]
  node_contact["Contact options<br/>[Contact.tsx]"]
end

subgraph group_presentation["Presentation components"]
  node_background["Animated background"]
  node_terminal["Terminal animation"]
end

subgraph group_shared["Shared interface support"]
  node_ui["UI primitives"]
  node_toast_hook["Toast state hook<br/>[use-toast.ts]"]
  node_toast_view["Toast components<br/>[toaster.tsx]"]
  node_utils["Class utilities<br/>[utils.ts]"]
end

node_visitor(("Portfolio visitor"))

node_visitor -->|"opens portfolio"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"routes home"| node_home
node_app -->|"routes fallback"| node_notfound
node_app -->|"mounts toaster"| node_toast_view
node_home -->|"wraps content"| node_background
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_experience
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_education
node_home -->|"renders"| node_contact
node_hero -->|"renders"| node_terminal
node_home -->|"presents portfolio"| node_visitor
node_contact -->|"offers contact links"| node_visitor
node_ui -.->|"uses class helper"| node_utils
node_toast_view -->|"reads toast state"| node_toast_hook
node_toast_hook -->|"updates toast state"| node_toast_view

click node_entry "https://github.com/chinnaiahp/portfolio/blob/main/src/main.tsx"
click node_app "https://github.com/chinnaiahp/portfolio/blob/main/src/App.tsx"
click node_home "https://github.com/chinnaiahp/portfolio/blob/main/src/pages/Index.tsx"
click node_notfound "https://github.com/chinnaiahp/portfolio/blob/main/src/pages/NotFound.tsx"
click node_background "https://github.com/chinnaiahp/portfolio/blob/main/src/components/AnimatedBackground.tsx"
click node_hero "https://github.com/chinnaiahp/portfolio/blob/main/src/components/Hero.tsx"
click node_terminal "https://github.com/chinnaiahp/portfolio/blob/main/src/components/TerminalAnimation.tsx"
click node_about "https://github.com/chinnaiahp/portfolio/blob/main/src/components/About.tsx"
click node_experience "https://github.com/chinnaiahp/portfolio/blob/main/src/components/Experience.tsx"
click node_skills "https://github.com/chinnaiahp/portfolio/blob/main/src/components/Skills.tsx"
click node_education "https://github.com/chinnaiahp/portfolio/blob/main/src/components/Education.tsx"
click node_contact "https://github.com/chinnaiahp/portfolio/blob/main/src/components/Contact.tsx"
click node_ui "https://github.com/chinnaiahp/portfolio/tree/main/src/components/ui"
click node_toast_hook "https://github.com/chinnaiahp/portfolio/blob/main/src/hooks/use-toast.ts"
click node_toast_view "https://github.com/chinnaiahp/portfolio/blob/main/src/components/ui/toaster.tsx"
click node_utils "https://github.com/chinnaiahp/portfolio/blob/main/src/lib/utils.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_entry,node_app toneBlue
class node_home,node_notfound,node_hero,node_about,node_experience,node_skills,node_education,node_contact toneAmber
class node_background,node_terminal toneMint
class node_ui,node_toast_hook,node_toast_view,node_utils toneRose
class node_visitor toneIndigo
```

## Components

### Application and routing

- [React entry](https://github.com/chinnaiahp/portfolio/blob/main/src/main.tsx): `src/main.tsx`
- [App and routes](https://github.com/chinnaiahp/portfolio/blob/main/src/App.tsx): `src/App.tsx`

### Portfolio content

- [Portfolio page](https://github.com/chinnaiahp/portfolio/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Not-found page](https://github.com/chinnaiahp/portfolio/blob/main/src/pages/NotFound.tsx): `src/pages/NotFound.tsx`
- [Profile introduction](https://github.com/chinnaiahp/portfolio/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [Professional background](https://github.com/chinnaiahp/portfolio/blob/main/src/components/About.tsx): `src/components/About.tsx`
- [Experience and projects](https://github.com/chinnaiahp/portfolio/blob/main/src/components/Experience.tsx): `src/components/Experience.tsx`
- [Technical expertise](https://github.com/chinnaiahp/portfolio/blob/main/src/components/Skills.tsx): `src/components/Skills.tsx`
- [Education](https://github.com/chinnaiahp/portfolio/blob/main/src/components/Education.tsx): `src/components/Education.tsx`
- [Contact options](https://github.com/chinnaiahp/portfolio/blob/main/src/components/Contact.tsx): `src/components/Contact.tsx`

### Presentation components

- [Animated background](https://github.com/chinnaiahp/portfolio/blob/main/src/components/AnimatedBackground.tsx): `src/components/AnimatedBackground.tsx`
- [Terminal animation](https://github.com/chinnaiahp/portfolio/blob/main/src/components/TerminalAnimation.tsx): `src/components/TerminalAnimation.tsx`

### Shared interface support

- [UI primitives](https://github.com/chinnaiahp/portfolio/tree/main/src/components/ui): `src/components/ui`
- [Toast state hook](https://github.com/chinnaiahp/portfolio/blob/main/src/hooks/use-toast.ts): `src/hooks/use-toast.ts`
- [Toast components](https://github.com/chinnaiahp/portfolio/blob/main/src/components/ui/toaster.tsx): `src/components/ui/toaster.tsx`
- [Class utilities](https://github.com/chinnaiahp/portfolio/blob/main/src/lib/utils.ts): `src/lib/utils.ts`

### Other components

- **Portfolio visitor**

## Connections

- Portfolio visitor → React entry: opens portfolio (evidence: `src/main.tsx`)
- React entry → App and routes: renders (evidence: `src/main.tsx`)
- App and routes → Portfolio page: routes home (evidence: `src/App.tsx`)
- App and routes → Not-found page: routes fallback (evidence: `src/App.tsx`)
- App and routes → Toast components: mounts toaster (evidence: `src/App.tsx`)
- Portfolio page → Animated background: wraps content (evidence: `src/pages/Index.tsx`)
- Portfolio page → Profile introduction: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Professional background: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Experience and projects: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Technical expertise: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Education: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Contact options: renders (evidence: `src/pages/Index.tsx`)
- Profile introduction → Terminal animation: renders (evidence: `src/components/Hero.tsx`)
- Portfolio page → Portfolio visitor: presents portfolio (evidence: `src/pages/Index.tsx`)
- Contact options → Portfolio visitor: offers contact links (evidence: `src/components/Contact.tsx`)
- UI primitives → Class utilities: uses class helper (evidence: `src/components/ui/context-menu.tsx`)
- Toast components → Toast state hook: reads toast state (evidence: `src/components/ui/toaster.tsx`)
- Toast state hook → Toast components: updates toast state (evidence: `src/hooks/use-toast.ts`)
