# mahindhan003/meportfolio architecture

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

- Interactive diagram: https://gitdiagram.com/mahindhan003/meportfolio
- Repository: https://github.com/mahindhan003/meportfolio

## Overview

#### Purpose and Runtime
This is a Vite-powered React single-page personal portfolio. The actual source structure presents Home, About, Skills, and Projects content; the README describes push-notification behavior that is not represented by the available implementation tree.

Client bootstrap and application mounting begin at:
- `src/main.jsx`
- `src/Root/App.jsx`
- `src/Root/App.css`

The runtime is browser-only React, served/bundled through Vite (`vite.config.js`, `package.json`). No backend, API client, notification service worker, router directory, or persistence layer is present in the tree.

#### Application Composition
`App` is the composition boundary for the portfolio and likely determines page/section ordering and shared presentation. Global visual styling is split between:
- `src/index.css`
- `src/Root/App.css`

The project uses a component-per-directory pattern: JSX behavior and locally scoped stylesheet files sit together. This makes the UI architecture primarily presentational rather than domain- or data-driven.

#### Primary Content Sections
Four top-level content modules organize the portfolio:
- `src/Pages/Home/Home.jsx`
- `src/Pages/About/About.jsx`
- `src/Pages/Skill/Skill.jsx`
- `src/Pages/Project/Project.jsx`

Each has a sibling stylesheet (`home.css`, `about.css`, `skill.css`, `project.css`). The principal control flow is React composition: application bootstrap → `App` → content sections → reusable display components. There is no evidence of route-based navigation; sections are likely rendered in one document and navigated through anchors or scroll actions.

#### Shared Navigation and Hero Layer
The shared interaction and entry presentation layer is represented by:
- `src/components/Navbar/Navbar.jsx`
- `src/components/NavButton/NavButton.jsx`
- `src/components/Hero/Hero.jsx`

`Navbar` provides the global navigation boundary, while `NavButton` centralizes navigation-action presentation. `Hero` is the primary introductory content block, likely consumed by the Home section. Their CSS is colocated, so visual behavior is owned at component level rather than by a design-system package.

#### Reusable Portfolio Content Cards
Reusable cards separate repeated content rendering from section layout:
- `src/components/AboutCard/AboutCard.jsx`
- `src/components/SkillCard/SkillCard.jsx`
- `src/components/ProjectCard/ProjectCard.jsx`
- `src/components/Card/Card.jsx`

The expected data flow is static content defined or assembled in page components, passed as props into card components, then rendered with per-card styles. There are no identified model, store, query, or CMS boundaries; portfolio data is therefore likely embedded in JSX or local constants.

#### Resume and Static Asset Boundary
The resume download/view action is encapsulated in:
- `src/components/ResumeButton/ResumeButton.jsx`
- `public/Mahindhan_P__Resume.pdf`

Files under `public/` are served directly by Vite and form the static-asset boundary. `ResumeButton` should reference the public PDF rather than requiring a backend download endpoint.

#### Notable Scope Constraint
Despite the README’s notification specification, the repository tree contains no notification permission UI, bell/history page, push SDK, service worker, backend integration, or event-trigger implementation. Treat that README as unrelated or future-state documentation unless additional files are supplied.

Main entry points: [`src/Root/App.jsx`](https://github.com/mahindhan003/meportfolio/blob/main/src/Root/App.jsx) (App), [`src/components/Navbar/Navbar.jsx`](https://github.com/mahindhan003/meportfolio/blob/main/src/components/Navbar/Navbar.jsx) (Navbar), [`src/Pages/Home/Home.jsx`](https://github.com/mahindhan003/meportfolio/blob/main/src/Pages/Home/Home.jsx) (Home), [`src/main.jsx`](https://github.com/mahindhan003/meportfolio/blob/main/src/main.jsx) (React bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Browser Runtime"]
  node_vite{{"Vite<br/>build runtime<br/>[vite.config.js]"}}
  node_main["React bootstrap<br/>entry module<br/>[main.jsx]"]
  node_global_css["Global styles<br/>stylesheet<br/>[index.css]"]
end

subgraph group_app["Application Composition"]
  node_app_root["App<br/>composition root<br/>[App.jsx]"]
  node_app_css["App styles<br/>stylesheet<br/>[App.css]"]
end

subgraph group_sections["Portfolio Sections"]
  node_home["Home<br/>section<br/>[Home.jsx]"]
  node_about["About<br/>section<br/>[About.jsx]"]
  node_skills["Skills<br/>section<br/>[Skill.jsx]"]
  node_projects["Projects<br/>section<br/>[Project.jsx]"]
end

subgraph group_components["Shared Components"]
  node_navbar["Navbar<br/>navigation component<br/>[Navbar.jsx]"]
  node_nav_button["NavButton<br/>navigation action<br/>[NavButton.jsx]"]
  node_hero["Hero<br/>intro component<br/>[Hero.jsx]"]
  node_about_card["AboutCard<br/>content card<br/>[AboutCard.jsx]"]
  node_skill_card["SkillCard<br/>content card<br/>[SkillCard.jsx]"]
  node_project_card["ProjectCard<br/>content card<br/>[ProjectCard.jsx]"]
  node_card["Card<br/>[Card.jsx]"]
  node_resume_button["ResumeButton<br/>download action<br/>[ResumeButton.jsx]"]
end

subgraph group_assets["Static Assets"]
  node_resume_pdf["Resume PDF<br/>public asset"]
end

node_vite -->|"serves bundle"| node_main
node_main -->|"mounts"| node_app_root
node_main -->|"loads"| node_global_css
node_app_root -->|"uses"| node_app_css
node_app_root -->|"composes"| node_navbar
node_app_root -->|"renders"| node_home
node_app_root -->|"renders"| node_about
node_app_root -->|"renders"| node_skills
node_app_root -->|"renders"| node_projects
node_navbar -->|"uses"| node_nav_button
node_navbar -.->|"navigates to"| node_home
node_navbar -.->|"navigates to"| node_about
node_navbar -.->|"navigates to"| node_skills
node_navbar -.->|"navigates to"| node_projects
node_home -->|"composes"| node_hero
node_home -->|"presents"| node_resume_button
node_about -->|"renders static content"| node_about_card
node_skills -->|"renders static content"| node_skill_card
node_projects -->|"renders static content"| node_project_card
node_about_card -.->|"may compose"| node_card
node_skill_card -.->|"may compose"| node_card
node_project_card -.->|"may compose"| node_card
node_resume_button -->|"links to"| node_resume_pdf

click node_vite "https://github.com/mahindhan003/meportfolio/blob/main/vite.config.js"
click node_main "https://github.com/mahindhan003/meportfolio/blob/main/src/main.jsx"
click node_global_css "https://github.com/mahindhan003/meportfolio/blob/main/src/index.css"
click node_app_root "https://github.com/mahindhan003/meportfolio/blob/main/src/Root/App.jsx"
click node_app_css "https://github.com/mahindhan003/meportfolio/blob/main/src/Root/App.css"
click node_home "https://github.com/mahindhan003/meportfolio/blob/main/src/Pages/Home/Home.jsx"
click node_about "https://github.com/mahindhan003/meportfolio/blob/main/src/Pages/About/About.jsx"
click node_skills "https://github.com/mahindhan003/meportfolio/blob/main/src/Pages/Skill/Skill.jsx"
click node_projects "https://github.com/mahindhan003/meportfolio/blob/main/src/Pages/Project/Project.jsx"
click node_navbar "https://github.com/mahindhan003/meportfolio/blob/main/src/components/Navbar/Navbar.jsx"
click node_nav_button "https://github.com/mahindhan003/meportfolio/blob/main/src/components/NavButton/NavButton.jsx"
click node_hero "https://github.com/mahindhan003/meportfolio/blob/main/src/components/Hero/Hero.jsx"
click node_about_card "https://github.com/mahindhan003/meportfolio/blob/main/src/components/AboutCard/AboutCard.jsx"
click node_skill_card "https://github.com/mahindhan003/meportfolio/blob/main/src/components/SkillCard/SkillCard.jsx"
click node_project_card "https://github.com/mahindhan003/meportfolio/blob/main/src/components/ProjectCard/ProjectCard.jsx"
click node_card "https://github.com/mahindhan003/meportfolio/blob/main/src/components/Card/Card.jsx"
click node_resume_button "https://github.com/mahindhan003/meportfolio/blob/main/src/components/ResumeButton/ResumeButton.jsx"
click node_resume_pdf "https://github.com/mahindhan003/meportfolio/blob/main/public/Mahindhan_P__Resume.pdf"

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_main,node_global_css toneBlue
class node_app_root,node_app_css toneAmber
class node_home,node_about,node_skills,node_projects toneMint
class node_navbar,node_nav_button,node_hero,node_about_card,node_skill_card,node_project_card,node_card,node_resume_button toneRose
class node_resume_pdf toneIndigo
```

## Components

### Browser Runtime

Vite serves and bundles the React single-page application.

- [Vite](https://github.com/mahindhan003/meportfolio/blob/main/vite.config.js): build runtime · `vite.config.js`
- [React bootstrap](https://github.com/mahindhan003/meportfolio/blob/main/src/main.jsx): entry module · `src/main.jsx`
- [Global styles](https://github.com/mahindhan003/meportfolio/blob/main/src/index.css): stylesheet · `src/index.css`

### Application Composition

App assembles shared UI and portfolio sections in one document.

- [App](https://github.com/mahindhan003/meportfolio/blob/main/src/Root/App.jsx): composition root · Mounts shared presentation and section ordering. · `src/Root/App.jsx`
- [App styles](https://github.com/mahindhan003/meportfolio/blob/main/src/Root/App.css): stylesheet · `src/Root/App.css`

### Portfolio Sections

Top-level presentational content modules.

- [Home](https://github.com/mahindhan003/meportfolio/blob/main/src/Pages/Home/Home.jsx): section · `src/Pages/Home/Home.jsx`
- [About](https://github.com/mahindhan003/meportfolio/blob/main/src/Pages/About/About.jsx): section · `src/Pages/About/About.jsx`
- [Skills](https://github.com/mahindhan003/meportfolio/blob/main/src/Pages/Skill/Skill.jsx): section · `src/Pages/Skill/Skill.jsx`
- [Projects](https://github.com/mahindhan003/meportfolio/blob/main/src/Pages/Project/Project.jsx): section · `src/Pages/Project/Project.jsx`

### Shared Components

Reusable navigation, hero, action, and card rendering components.

- [Navbar](https://github.com/mahindhan003/meportfolio/blob/main/src/components/Navbar/Navbar.jsx): navigation component · Global in-document navigation boundary. · `src/components/Navbar/Navbar.jsx`
- [NavButton](https://github.com/mahindhan003/meportfolio/blob/main/src/components/NavButton/NavButton.jsx): navigation action · `src/components/NavButton/NavButton.jsx`
- [Hero](https://github.com/mahindhan003/meportfolio/blob/main/src/components/Hero/Hero.jsx): intro component · `src/components/Hero/Hero.jsx`
- [AboutCard](https://github.com/mahindhan003/meportfolio/blob/main/src/components/AboutCard/AboutCard.jsx): content card · `src/components/AboutCard/AboutCard.jsx`
- [SkillCard](https://github.com/mahindhan003/meportfolio/blob/main/src/components/SkillCard/SkillCard.jsx): content card · `src/components/SkillCard/SkillCard.jsx`
- [ProjectCard](https://github.com/mahindhan003/meportfolio/blob/main/src/components/ProjectCard/ProjectCard.jsx): content card · `src/components/ProjectCard/ProjectCard.jsx`
- [Card](https://github.com/mahindhan003/meportfolio/blob/main/src/components/Card/Card.jsx): generic card · `src/components/Card/Card.jsx`
- [ResumeButton](https://github.com/mahindhan003/meportfolio/blob/main/src/components/ResumeButton/ResumeButton.jsx): download action · `src/components/ResumeButton/ResumeButton.jsx`

### Static Assets

Files served directly from Vite public assets.

- [Resume PDF](https://github.com/mahindhan003/meportfolio/blob/main/public/Mahindhan_P__Resume.pdf): public asset · Served directly as a static Vite asset. · `public/Mahindhan_P__Resume.pdf`

## Connections

- Vite → React bootstrap: serves bundle
- React bootstrap → App: mounts
- React bootstrap → Global styles: loads
- App → App styles: uses
- App → Navbar: composes
- App → Home: renders
- App → About: renders
- App → Skills: renders
- App → Projects: renders
- Navbar → NavButton: uses
- Navbar → Home: navigates to
- Navbar → About: navigates to
- Navbar → Skills: navigates to
- Navbar → Projects: navigates to
- Home → Hero: composes
- Home → ResumeButton: presents
- About → AboutCard: renders static content
- Skills → SkillCard: renders static content
- Projects → ProjectCard: renders static content
- AboutCard → Card: may compose
- SkillCard → Card: may compose
- ProjectCard → Card: may compose
- ResumeButton → Resume PDF: links to
