# thanajayan143/dhananjeyans_portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/thanajayan143/dhananjeyans_portfolio
- Repository: https://github.com/thanajayan143/dhananjeyans_portfolio

## Overview

#### Purpose and Runtime

This is a static personal portfolio for Dhananjeyan S, presenting projects, technical interests, career journey, and SaiNex Technologies. It is a TypeScript React single-page application built and served through Vite, with Tailwind/PostCSS styling. No backend, database, authentication, or external API integration is evident from the repository tree.

Core bootstrap paths: `index.html`, `src/main.tsx`, `vite.config.ts`.

#### Application Composition

`src/main.tsx` mounts the React application. `src/App.tsx` is the application shell; it delegates primary page rendering to the page layer. `src/App.css` and `src/index.css` establish application/global styling boundaries.

Likely entry/page paths:
- `src/main.tsx`
- `src/App.tsx`
- `src/pages/Index.tsx`
- `src/pages/Home.tsx`
- `src/pages/NotFound.tsx`

#### Page and Navigation Boundary

The site has a primary portfolio/home experience plus a fallback not-found view. Navigation is represented as a reusable layout component rather than separate server routes, consistent with a client-rendered SPA. Navbar links likely drive in-page section navigation or page selection.

Paths:
- `src/pages/Home.tsx`
- `src/pages/NotFound.tsx`
- `src/components/layout/Navbar.tsx`
- `src/components/layout/Footer.tsx`

#### Portfolio Content Sections

The portfolio is decomposed into independently renderable feature sections. These encode the main narrative and user flow: initial loading → hero/identity → background and skills → projects and specialties → brand/community/contact.

Representative section paths:
- `src/components/features/Preloader.tsx`
- `src/components/features/Hero.tsx`
- `src/components/features/About.tsx`
- `src/components/features/Projects.tsx`
- `src/components/features/FeaturedProject.tsx`
- `src/components/features/Skills.tsx`
- `src/components/features/Connect.tsx`

Specialty and timeline content is further separated, allowing cyber, AI, hardware/IoT, hackathon, GitHub, career journey, and SaiNex branding to evolve without restructuring the page:
- `src/components/features/Cybersecurity.tsx`
- `src/components/features/AIInnovation.tsx`
- `src/components/features/HardwareIoT.tsx`
- `src/components/features/Journey.tsx`
- `src/components/features/SaiNex.tsx`

#### Content Data Boundary

Portfolio content is likely centralized as static typed data, separating lists such as projects, technologies, links, and milestones from visual composition. Feature components consume this local data rather than querying a CMS or service.

Paths:
- `src/constants/data.ts`
- `src/components/features/Projects.tsx`
- `src/components/features/Skills.tsx`

#### Interaction and Responsive Behavior

Scroll-triggered reveal behavior is encapsulated in a custom hook, avoiding animation/control logic leaking across content sections. Mobile viewport behavior is also isolated in a hook. This is the primary client-side interaction boundary beyond normal React state.

Paths:
- `src/hooks/useScrollReveal.ts`
- `src/hooks/use-mobile.tsx`
- `src/components/features/Hero.tsx`

#### Design System and Build Infrastructure

Reusable UI primitives live under `src/components/ui`, providing a local component-system layer for buttons, cards, dialogs, navigation, form controls, and notifications. Shared class-composition utilities are in `src/lib/utils.ts`. Tailwind configuration, PostCSS, and Vite provide the styling/build pipeline; Bun and npm lockfiles indicate either package manager may be used.

Paths:
- `src/components/ui/button.tsx`
- `src/components/ui/card.tsx`
- `src/lib/utils.ts`
- `tailwind.config.ts`
- `postcss.config.js`
- `package.json`

Main entry points: [`src/pages/Home.tsx`](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/pages/Home.tsx) (Portfolio home), [`src/App.tsx`](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/App.tsx) (Application shell), [`vite.config.ts`](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/vite.config.ts) (Vite build runtime), [`src/constants/data.ts`](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/constants/data.ts) (Static portfolio data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime &amp; Build"]
  node_vite{{"Vite build runtime<br/>build tool<br/>[vite.config.ts]"}}
  node_package["Package manifest<br/>dependencies<br/>[package.json]"]
  node_styles["Tailwind &amp; PostCSS<br/>style pipeline<br/>[tailwind.config.ts]"]
  node_html["HTML entry<br/>document entry<br/>[index.html]"]
end

subgraph group_app["Application Shell"]
  node_main["React bootstrap<br/>client entry<br/>[main.tsx]"]
  node_app_shell["Application shell<br/>React root<br/>[App.tsx]"]
  node_index_page["Index page<br/>page composition<br/>[Index.tsx]"]
  node_not_found["Not-found view<br/>fallback page<br/>[NotFound.tsx]"]
  node_navigation["Navbar &amp; footer<br/>layout components<br/>[Navbar.tsx]"]
end

subgraph group_content["Portfolio Experience"]
  node_home["Portfolio home<br/>primary page<br/>[Home.tsx]"]
  node_intro["Preloader &amp; hero<br/>identity section<br/>[Hero.tsx]"]
  node_background["About &amp; journey<br/>background sections<br/>[Journey.tsx]"]
  node_work["Projects<br/>project sections<br/>[Projects.tsx]"]
  node_specialties["Technical specialties<br/>interest sections<br/>[Cybersecurity.tsx]"]
  node_brand_contact["SaiNex &amp; connect<br/>brand and contact sections<br/>[SaiNex.tsx]"]
end

subgraph group_shared["Shared Client Layers"]
  node_content_data["Static portfolio data<br/>typed local data<br/>[data.ts]"]
  node_interactions["Responsive reveal hooks<br/>client hooks<br/>[useScrollReveal.ts]"]
  node_ui["UI primitives<br/>component system<br/>[button.tsx]"]
  node_utils["Class utilities<br/>shared utility<br/>[utils.ts]"]
  node_css["Global application styles<br/>CSS boundary<br/>[index.css]"]
end

node_package -->|"configures dependencies"| node_vite
node_styles -->|"feeds CSS processing"| node_vite
node_html -->|"loads"| node_main
node_vite -->|"builds and serves"| node_html
node_main -->|"mounts"| node_app_shell
node_app_shell -->|"renders"| node_index_page
node_app_shell -.->|"falls back to"| node_not_found
node_index_page -->|"selects primary view"| node_home
node_home -->|"frames with"| node_navigation
node_home -->|"composes"| node_intro
node_home -->|"composes"| node_background
node_home -->|"composes"| node_work
node_home -->|"composes"| node_specialties
node_home -->|"composes"| node_brand_contact
node_navigation -.->|"navigates sections"| node_home
node_work -->|"reads project data"| node_content_data
node_background -->|"reads milestones"| node_content_data
node_specialties -->|"reads technology data"| node_content_data
node_intro -->|"uses reveal behavior"| node_interactions
node_ui -->|"composes classes with"| node_utils
node_home -->|"uses primitives"| node_ui
node_app_shell -->|"applies global styles"| node_css
node_styles -->|"processes"| node_css

click node_vite "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/vite.config.ts"
click node_package "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/package.json"
click node_styles "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/tailwind.config.ts"
click node_html "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/index.html"
click node_main "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/main.tsx"
click node_app_shell "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/App.tsx"
click node_index_page "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/pages/Index.tsx"
click node_home "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/pages/Home.tsx"
click node_not_found "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/pages/NotFound.tsx"
click node_navigation "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/layout/Navbar.tsx"
click node_intro "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/features/Hero.tsx"
click node_background "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/features/Journey.tsx"
click node_work "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/features/Projects.tsx"
click node_specialties "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/features/Cybersecurity.tsx"
click node_brand_contact "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/features/SaiNex.tsx"
click node_content_data "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/constants/data.ts"
click node_interactions "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/hooks/useScrollReveal.ts"
click node_ui "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/ui/button.tsx"
click node_utils "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/lib/utils.ts"
click node_css "https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/index.css"

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_vite,node_package,node_styles,node_html toneBlue
class node_main,node_app_shell,node_index_page,node_not_found,node_navigation toneAmber
class node_home,node_intro,node_background,node_work,node_specialties,node_brand_contact toneMint
class node_content_data,node_interactions,node_ui,node_utils,node_css toneRose
```

## Components

### Runtime & Build

- [Vite build runtime](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/vite.config.ts): build tool · Builds and serves the React SPA. · `vite.config.ts`
- [Package manifest](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/package.json): dependencies · `package.json`
- [Tailwind & PostCSS](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/tailwind.config.ts): style pipeline · `tailwind.config.ts`
- [HTML entry](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/index.html): document entry · `index.html`

### Application Shell

- [React bootstrap](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/main.tsx): client entry · `src/main.tsx`
- [Application shell](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/App.tsx): React root · `src/App.tsx`
- [Index page](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/pages/Index.tsx): page composition · `src/pages/Index.tsx`
- [Not-found view](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/pages/NotFound.tsx): fallback page · `src/pages/NotFound.tsx`
- [Navbar & footer](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/layout/Navbar.tsx): layout components · Provides in-page navigation and site framing. · `src/components/layout/Navbar.tsx`

### Portfolio Experience

- [Portfolio home](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/pages/Home.tsx): primary page · Composes the portfolio narrative and sections. · `src/pages/Home.tsx`
- [Preloader & hero](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/features/Hero.tsx): identity section · `src/components/features/Hero.tsx`
- [About & journey](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/features/Journey.tsx): background sections · `src/components/features/Journey.tsx`
- [Projects](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/features/Projects.tsx): project sections · Includes project listing and featured work. · `src/components/features/Projects.tsx`
- [Technical specialties](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/features/Cybersecurity.tsx): interest sections · Cybersecurity, AI, and hardware/IoT content. · `src/components/features/Cybersecurity.tsx`
- [SaiNex & connect](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/features/SaiNex.tsx): brand and contact sections · `src/components/features/SaiNex.tsx`

### Shared Client Layers

- [Static portfolio data](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/constants/data.ts): typed local data · Supplies projects, technologies, links, and milestones. · `src/constants/data.ts`
- [Responsive reveal hooks](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/hooks/useScrollReveal.ts): client hooks · Encapsulates scroll reveal and mobile viewport behavior. · `src/hooks/useScrollReveal.ts`
- [UI primitives](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/components/ui/button.tsx): component system · Reusable buttons, cards, dialogs, and controls. · `src/components/ui/button.tsx`
- [Class utilities](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/lib/utils.ts): shared utility · `src/lib/utils.ts`
- [Global application styles](https://github.com/thanajayan143/dhananjeyans_portfolio/blob/main/src/index.css): CSS boundary · `src/index.css`

## Connections

- Package manifest → Vite build runtime: configures dependencies
- Tailwind & PostCSS → Vite build runtime: feeds CSS processing
- HTML entry → React bootstrap: loads
- Vite build runtime → HTML entry: builds and serves
- React bootstrap → Application shell: mounts
- Application shell → Index page: renders
- Application shell → Not-found view: falls back to
- Index page → Portfolio home: selects primary view
- Portfolio home → Navbar & footer: frames with
- Portfolio home → Preloader & hero: composes
- Portfolio home → About & journey: composes
- Portfolio home → Projects: composes
- Portfolio home → Technical specialties: composes
- Portfolio home → SaiNex & connect: composes
- Navbar & footer → Portfolio home: navigates sections
- Projects → Static portfolio data: reads project data
- About & journey → Static portfolio data: reads milestones
- Technical specialties → Static portfolio data: reads technology data
- Preloader & hero → Responsive reveal hooks: uses reveal behavior
- UI primitives → Class utilities: composes classes with
- Portfolio home → UI primitives: uses primitives
- Application shell → Global application styles: applies global styles
- Tailwind & PostCSS → Global application styles: processes
