How mahindhan003/meportfolio works
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: App.jsx App · Navbar.jsx Navbar · Home.jsx Home · main.jsx React bootstrap
Components 18
Browser Runtime
Vite serves and bundles the React single-page application.
- Vite
vite.config.js - React bootstrap
src/main.jsx - Global styles
src/index.css
Application Composition
App assembles shared UI and portfolio sections in one document.
- App · Mounts shared presentation and section ordering.
src/Root/App.jsx - App styles
src/Root/App.css
Portfolio Sections
Top-level presentational content modules.
Shared Components
Reusable navigation, hero, action, and card rendering components.
- Navbar · Global in-document navigation boundary.
src/components/Navbar/Navbar.jsx - NavButton
src/components/NavButton/NavButton.jsx - Hero
src/components/Hero/Hero.jsx - AboutCard
src/components/AboutCard/AboutCard.jsx - SkillCard
src/components/SkillCard/SkillCard.jsx - ProjectCard
src/components/ProjectCard/ProjectCard.jsx - Card
src/components/Card/Card.jsx - ResumeButton
src/components/ResumeButton/ResumeButton.jsx
Static Assets
Files served directly from Vite public assets.
- Resume PDF · Served directly as a static Vite asset.
public/Mahindhan_P__Resume.pdf
Connections 23
- 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