# pavithran030/portfolio architecture

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

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

## Overview

Pavithran Portfolio is a React single-page portfolio. Visitors enter the routed portfolio page to explore profile, skills, projects, achievements, experience, education, and contact content; the contact form posts to an email API. The page also coordinates SEO metadata, theme choices, and motion/timeline presentation. README documents responsive presentation and sitemap generation, but sitemap generation is build-time support rather than a runtime product component. The page excerpt is partial, so links for its unsampled content are limited to documented capabilities and visible imports.

Main entry points: [`src/pages/Index.tsx`](https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx) (Portfolio page), [`src/App.tsx`](https://github.com/pavithran030/portfolio/blob/main/src/App.tsx) (Routes and providers), [`src/pages/NotFound.tsx`](https://github.com/pavithran030/portfolio/blob/main/src/pages/NotFound.tsx) (Not-found page), [`src/components/ThemeSwitcher.tsx`](https://github.com/pavithran030/portfolio/blob/main/src/components/ThemeSwitcher.tsx) (Theme switcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_entry["React entry<br/>[main.tsx]"]
  node_router["Routes and providers<br/>[App.tsx]"]
  node_not_found["Not-found page<br/>[NotFound.tsx]"]
end

subgraph group_portfolio["Portfolio content"]
  node_portfolio_page["Portfolio page<br/>[Index.tsx]"]
  node_about["About profile<br/>[Index.tsx]"]
  node_skills["Skills showcase<br/>[Index.tsx]"]
  node_projects["Project showcase<br/>[Index.tsx]"]
  node_experience["Experience<br/>[Index.tsx]"]
  node_achievements["Achievements<br/>[Index.tsx]"]
  node_education["Education timeline<br/>[Index.tsx]"]
end

subgraph group_presentation["Presentation systems"]
  node_motion_section["Motion sections<br/>[MotionSection.tsx]"]
  node_timeline["Timeline renderer<br/>[ScrollTimeline.tsx]"]
  node_motion_variants["Motion variants<br/>[motion-variants.ts]"]
  node_theme_switcher["Theme switcher<br/>[ThemeSwitcher.tsx]"]
  node_theme_config["Theme definitions<br/>[theme.ts]"]
  node_tooltip["Tooltip primitives<br/>[tooltip.tsx]"]
end

subgraph group_contact["Contact and metadata"]
  node_seo["SEO metadata<br/>[SEO.tsx]"]
  node_contact["Contact form<br/>[Index.tsx]"]
  node_email_api["Email endpoint<br/>[send-email.ts]"]
end

node_visitor(("Visitor"))

node_entry -->|"renders"| node_router
node_router -->|"routes to"| node_portfolio_page
node_router -->|"catches routes"| node_not_found
node_visitor -.->|"visits"| node_portfolio_page
node_portfolio_page -->|"presents"| node_about
node_portfolio_page -->|"presents"| node_skills
node_portfolio_page -->|"presents"| node_projects
node_portfolio_page -.->|"presents"| node_experience
node_portfolio_page -->|"presents"| node_achievements
node_portfolio_page -->|"presents"| node_education
node_portfolio_page -->|"presents"| node_contact
node_portfolio_page -->|"renders"| node_motion_section
node_portfolio_page -->|"renders"| node_timeline
node_portfolio_page -->|"uses"| node_motion_variants
node_portfolio_page -.->|"includes"| node_theme_switcher
node_theme_switcher -->|"uses types"| node_theme_config
node_router -->|"provides"| node_tooltip
node_portfolio_page -->|"sets metadata"| node_seo
node_not_found -->|"sets metadata"| node_seo
node_contact -->|"posts message"| node_email_api

click node_entry "https://github.com/pavithran030/portfolio/blob/main/src/main.tsx"
click node_router "https://github.com/pavithran030/portfolio/blob/main/src/App.tsx"
click node_portfolio_page "https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx"
click node_about "https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx"
click node_skills "https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx"
click node_projects "https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx"
click node_experience "https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx"
click node_achievements "https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx"
click node_education "https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx"
click node_not_found "https://github.com/pavithran030/portfolio/blob/main/src/pages/NotFound.tsx"
click node_motion_section "https://github.com/pavithran030/portfolio/blob/main/src/components/MotionSection.tsx"
click node_timeline "https://github.com/pavithran030/portfolio/blob/main/src/components/ScrollTimeline.tsx"
click node_motion_variants "https://github.com/pavithran030/portfolio/blob/main/src/lib/motion-variants.ts"
click node_theme_switcher "https://github.com/pavithran030/portfolio/blob/main/src/components/ThemeSwitcher.tsx"
click node_theme_config "https://github.com/pavithran030/portfolio/blob/main/src/types/theme.ts"
click node_tooltip "https://github.com/pavithran030/portfolio/blob/main/src/components/ui/tooltip.tsx"
click node_seo "https://github.com/pavithran030/portfolio/blob/main/src/components/SEO.tsx"
click node_contact "https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx"
click node_email_api "https://github.com/pavithran030/portfolio/blob/main/api/send-email.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_router,node_not_found toneBlue
class node_portfolio_page,node_about,node_skills,node_projects,node_experience,node_achievements,node_education toneAmber
class node_motion_section,node_timeline,node_motion_variants,node_theme_switcher,node_theme_config,node_tooltip toneMint
class node_seo,node_contact,node_email_api toneRose
class node_visitor toneIndigo
```

## Components

### Application shell

- [React entry](https://github.com/pavithran030/portfolio/blob/main/src/main.tsx): `src/main.tsx`
- [Routes and providers](https://github.com/pavithran030/portfolio/blob/main/src/App.tsx): `src/App.tsx`
- [Not-found page](https://github.com/pavithran030/portfolio/blob/main/src/pages/NotFound.tsx): `src/pages/NotFound.tsx`

### Portfolio content

- [Portfolio page](https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [About profile](https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Skills showcase](https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Project showcase](https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Experience](https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Achievements](https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Education timeline](https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`

### Presentation systems

- [Motion sections](https://github.com/pavithran030/portfolio/blob/main/src/components/MotionSection.tsx): `src/components/MotionSection.tsx`
- [Timeline renderer](https://github.com/pavithran030/portfolio/blob/main/src/components/ScrollTimeline.tsx): `src/components/ScrollTimeline.tsx`
- [Motion variants](https://github.com/pavithran030/portfolio/blob/main/src/lib/motion-variants.ts): `src/lib/motion-variants.ts`
- [Theme switcher](https://github.com/pavithran030/portfolio/blob/main/src/components/ThemeSwitcher.tsx): `src/components/ThemeSwitcher.tsx`
- [Theme definitions](https://github.com/pavithran030/portfolio/blob/main/src/types/theme.ts): `src/types/theme.ts`
- [Tooltip primitives](https://github.com/pavithran030/portfolio/blob/main/src/components/ui/tooltip.tsx): `src/components/ui/tooltip.tsx`

### Contact and metadata

- [SEO metadata](https://github.com/pavithran030/portfolio/blob/main/src/components/SEO.tsx): `src/components/SEO.tsx`
- [Contact form](https://github.com/pavithran030/portfolio/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Email endpoint](https://github.com/pavithran030/portfolio/blob/main/api/send-email.ts): `api/send-email.ts`

### Other components

- **Visitor**

## Connections

- React entry → Routes and providers: renders (evidence: `src/main.tsx`)
- Routes and providers → Portfolio page: routes to (evidence: `src/App.tsx`)
- Routes and providers → Not-found page: catches routes (evidence: `src/App.tsx`)
- Visitor → Portfolio page: visits (evidence: `README.md`)
- Portfolio page → About profile: presents (evidence: `src/pages/Index.tsx`)
- Portfolio page → Skills showcase: presents (evidence: `src/pages/Index.tsx`)
- Portfolio page → Project showcase: presents (evidence: `src/pages/Index.tsx`)
- Portfolio page → Experience: presents (evidence: `README.md`)
- Portfolio page → Achievements: presents (evidence: `src/pages/Index.tsx`)
- Portfolio page → Education timeline: presents (evidence: `src/pages/Index.tsx`)
- Portfolio page → Contact form: presents (evidence: `src/pages/Index.tsx`)
- Portfolio page → Motion sections: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Timeline renderer: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Motion variants: uses (evidence: `src/pages/Index.tsx`)
- Portfolio page → Theme switcher: includes
- Theme switcher → Theme definitions: uses types (evidence: `src/components/ThemeSwitcher.tsx`)
- Routes and providers → Tooltip primitives: provides (evidence: `src/App.tsx`)
- Portfolio page → SEO metadata: sets metadata (evidence: `src/pages/Index.tsx`)
- Not-found page → SEO metadata: sets metadata (evidence: `src/pages/NotFound.tsx`)
- Contact form → Email endpoint: posts message (evidence: `src/pages/Index.tsx`)
