# pradeep11022004/pradeep-portfolio architecture

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

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

## Overview

This is a personal developer portfolio with an intro and profile, live project showcase and detail pages, visitor comments, and an admin area for managing portfolio content and comments. The main visitor flow is the home page assembling the sections, with project data loaded through a hook and services from Supabase; project detail pages provide a gallery and links. Contact, 3D hero effects, and admin editing are distinct capabilities. Some routes and service relationships are documented only by the source index or README, so unsupported call edges are omitted.

Main entry points: [`src/lib/supabase.ts`](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/lib/supabase.ts) (Supabase client), [`src/app/page.tsx`](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/page.tsx) (Home composition), [`src/components/sections/Hero.tsx`](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/Hero.tsx) (Hero section), [`src/components/sections/PortfolioShowcase.tsx`](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/PortfolioShowcase.tsx) (Project showcase)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_visitor["Visitor Portfolio"]
  node_home["Home composition<br/>[page.tsx]"]
  node_welcome["Intro screen<br/>[WelcomeScreen.tsx]"]
  node_background["Animated backdrop"]
  node_navigation["Site navigation<br/>[Navbar.tsx]"]
  node_hero["Hero section<br/>[Hero.tsx]"]
  node_band["3D card scene<br/>[App.js]"]
  node_typing["Animated text<br/>[TextType.tsx]"]
  node_about["About and skills<br/>[About.tsx]"]
end

subgraph group_content["Portfolio Content"]
  node_showcase["Project showcase"]
  node_projectcard["Project card<br/>[PortfolioCard.tsx]"]
  node_portfoliohook["Portfolio data hook<br/>[usePortfolio.ts]"]
  node_portfolioservice["Portfolio data service"]
  node_projectdetail["Project details<br/>[page.tsx]"]
  node_supabaseclient["Supabase client<br/>[supabase.ts]"]
  node_supabase[("Supabase")]
end

subgraph group_community["Contact and Comments"]
  node_contactsection["Contact section<br/>[ContactSection.tsx]"]
  node_contactform["Contact form<br/>[ContactForm.tsx]"]
  node_comments["Visitor comments"]
  node_commenthook["Comments hook<br/>[useComments.ts]"]
  node_commentservice["Comment service<br/>[commentService.ts]"]
  node_emailjs["EmailJS service"]
end

subgraph group_admin["Admin Management"]
  node_adminsidebar["Admin navigation<br/>[Sidebar.tsx]"]
  node_adminlogin["Admin login<br/>[page.tsx]"]
  node_dashboard["Admin dashboard<br/>[page.tsx]"]
  node_adminprojects["Project management<br/>[page.tsx]"]
  node_projectmodal["Add project modal"]
  node_projectedit["Project editor<br/>[page.tsx]"]
  node_certificates["Certificate management<br/>[page.tsx]"]
  node_tech["Technology management<br/>[page.tsx]"]
  node_admincomments["Comment moderation<br/>[page.tsx]"]
end

node_visitor(("Portfolio visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"shows"| node_welcome
node_home -->|"renders"| node_background
node_home -->|"renders"| node_navigation
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_showcase
node_home -->|"renders"| node_contactsection
node_hero -->|"renders"| node_band
node_hero -->|"renders"| node_typing
node_showcase -->|"loads through"| node_portfoliohook
node_showcase -->|"renders"| node_projectcard
node_portfoliohook -->|"fetches through"| node_portfolioservice
node_portfolioservice -->|"queries"| node_supabaseclient
node_supabaseclient -.->|"connects"| node_supabase
node_projectdetail -.->|"uses"| node_supabaseclient
node_contactsection -->|"renders"| node_contactform
node_contactsection -->|"renders"| node_comments
node_contactform -.->|"sends via"| node_emailjs
node_comments -->|"uses"| node_commenthook
node_commenthook -->|"calls"| node_commentservice
node_commenthook -->|"subscribes via"| node_supabaseclient
node_commentservice -->|"queries"| node_supabaseclient
node_adminlogin -->|"uses"| node_supabaseclient
node_dashboard -->|"queries"| node_supabaseclient
node_adminprojects -->|"renders"| node_projectmodal
node_adminprojects -->|"queries"| node_supabaseclient
node_projectmodal -->|"writes"| node_supabaseclient
node_projectedit -->|"uses"| node_supabaseclient
node_certificates -->|"queries"| node_supabaseclient
node_tech -->|"queries"| node_supabaseclient
node_admincomments -->|"renders"| node_adminsidebar
node_admincomments -->|"moderates"| node_supabaseclient

click node_home "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/page.tsx"
click node_welcome "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/WelcomeScreen.tsx"
click node_background "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/AnimatedBackground.tsx"
click node_navigation "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/ui/Navbar.tsx"
click node_hero "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/Hero.tsx"
click node_band "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/band/App.js"
click node_typing "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/band/TextType.tsx"
click node_about "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/About.tsx"
click node_showcase "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/PortfolioShowcase.tsx"
click node_projectcard "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/PortfolioCard.tsx"
click node_portfoliohook "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/hooks/usePortfolio.ts"
click node_portfolioservice "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/lib/portfolioService.ts"
click node_projectdetail "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/portfolio/%5Bid%5D/page.tsx"
click node_supabaseclient "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/lib/supabase.ts"
click node_contactsection "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/contact/ContactSection.tsx"
click node_contactform "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/contact/ContactForm.tsx"
click node_comments "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/contact/CommentsSection.tsx"
click node_commenthook "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/hooks/useComments.ts"
click node_commentservice "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/lib/commentService.ts"
click node_adminsidebar "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/Sidebar.tsx"
click node_adminlogin "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/login/page.tsx"
click node_dashboard "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/dashboard/page.tsx"
click node_adminprojects "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/projects/page.tsx"
click node_projectmodal "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/projects/AddProjectModal.tsx"
click node_projectedit "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/projects/%5Bid%5D/page.tsx"
click node_certificates "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/certificates/page.tsx"
click node_tech "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/tech/page.tsx"
click node_admincomments "https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/comments/page.tsx"

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_home,node_welcome,node_background,node_navigation,node_hero,node_band,node_typing,node_about toneBlue
class node_showcase,node_projectcard,node_portfoliohook,node_portfolioservice,node_projectdetail,node_supabaseclient,node_supabase toneAmber
class node_contactsection,node_contactform,node_comments,node_commenthook,node_commentservice,node_emailjs toneMint
class node_adminsidebar,node_adminlogin,node_dashboard,node_adminprojects,node_projectmodal,node_projectedit,node_certificates,node_tech,node_admincomments toneRose
class node_visitor toneIndigo
```

## Components

### Visitor Portfolio

- [Home composition](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Intro screen](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/WelcomeScreen.tsx): `src/components/WelcomeScreen.tsx`
- [Animated backdrop](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/AnimatedBackground.tsx): `src/components/AnimatedBackground.tsx`
- [Site navigation](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/ui/Navbar.tsx): `src/components/ui/Navbar.tsx`
- [Hero section](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/Hero.tsx): `src/components/sections/Hero.tsx`
- [3D card scene](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/band/App.js): `src/components/band/App.js`
- [Animated text](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/band/TextType.tsx): `src/components/band/TextType.tsx`
- [About and skills](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/About.tsx): `src/components/sections/About.tsx`

### Portfolio Content

- [Project showcase](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/PortfolioShowcase.tsx): `src/components/sections/PortfolioShowcase.tsx`
- [Project card](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/PortfolioCard.tsx): `src/components/sections/PortfolioCard.tsx`
- [Portfolio data hook](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/hooks/usePortfolio.ts): `src/hooks/usePortfolio.ts`
- [Portfolio data service](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/lib/portfolioService.ts): `src/lib/portfolioService.ts`
- [Project details](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/portfolio/%5Bid%5D/page.tsx): `src/app/portfolio/[id]/page.tsx`
- [Supabase client](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/lib/supabase.ts): `src/lib/supabase.ts`
- **Supabase**

### Contact and Comments

- [Contact section](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/contact/ContactSection.tsx): `src/components/sections/contact/ContactSection.tsx`
- [Contact form](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/contact/ContactForm.tsx): `src/components/sections/contact/ContactForm.tsx`
- [Visitor comments](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/components/sections/contact/CommentsSection.tsx): `src/components/sections/contact/CommentsSection.tsx`
- [Comments hook](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/hooks/useComments.ts): `src/hooks/useComments.ts`
- [Comment service](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/lib/commentService.ts): `src/lib/commentService.ts`
- **EmailJS service**

### Admin Management

- [Admin navigation](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/Sidebar.tsx): `src/app/admin/Sidebar.tsx`
- [Admin login](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/login/page.tsx): `src/app/admin/login/page.tsx`
- [Admin dashboard](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/dashboard/page.tsx): `src/app/admin/dashboard/page.tsx`
- [Project management](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/projects/page.tsx): `src/app/admin/projects/page.tsx`
- [Add project modal](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/projects/AddProjectModal.tsx): `src/app/admin/projects/AddProjectModal.tsx`
- [Project editor](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/projects/%5Bid%5D/page.tsx): `src/app/admin/projects/[id]/page.tsx`
- [Certificate management](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/certificates/page.tsx): `src/app/admin/certificates/page.tsx`
- [Technology management](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/tech/page.tsx): `src/app/admin/tech/page.tsx`
- [Comment moderation](https://github.com/pradeep11022004/pradeep-portfolio/blob/main/src/app/admin/comments/page.tsx): `src/app/admin/comments/page.tsx`

### Other components

- **Portfolio visitor**

## Connections

- Portfolio visitor → Home composition: opens (evidence: `src/app/page.tsx`)
- Home composition → Intro screen: shows (evidence: `src/app/page.tsx`)
- Home composition → Animated backdrop: renders (evidence: `src/app/page.tsx`)
- Home composition → Site navigation: renders (evidence: `src/app/page.tsx`)
- Home composition → Hero section: renders (evidence: `src/app/page.tsx`)
- Home composition → About and skills: renders (evidence: `src/app/page.tsx`)
- Home composition → Project showcase: renders (evidence: `src/app/page.tsx`)
- Home composition → Contact section: renders (evidence: `src/app/page.tsx`)
- Hero section → 3D card scene: renders (evidence: `src/components/sections/Hero.tsx`)
- Hero section → Animated text: renders (evidence: `src/components/sections/Hero.tsx`)
- Project showcase → Portfolio data hook: loads through (evidence: `src/components/sections/PortfolioShowcase.tsx`)
- Project showcase → Project card: renders (evidence: `src/components/sections/PortfolioShowcase.tsx`)
- Portfolio data hook → Portfolio data service: fetches through (evidence: `src/hooks/usePortfolio.ts`)
- Portfolio data service → Supabase client: queries (evidence: `src/lib/portfolioService.ts`)
- Supabase client → Supabase: connects
- Project details → Supabase client: uses (evidence: `src/app/portfolio/[id]/page.tsx`)
- Contact section → Contact form: renders (evidence: `src/components/sections/contact/ContactSection.tsx`)
- Contact section → Visitor comments: renders (evidence: `src/components/sections/contact/ContactSection.tsx`)
- Contact form → EmailJS service: sends via (evidence: `README.md`)
- Visitor comments → Comments hook: uses (evidence: `src/components/sections/contact/CommentsSection.tsx`)
- Comments hook → Comment service: calls (evidence: `src/hooks/useComments.ts`)
- Comments hook → Supabase client: subscribes via (evidence: `src/hooks/useComments.ts`)
- Comment service → Supabase client: queries (evidence: `src/lib/commentService.ts`)
- Admin login → Supabase client: uses (evidence: `src/app/admin/login/page.tsx`)
- Admin dashboard → Supabase client: queries (evidence: `src/app/admin/dashboard/page.tsx`)
- Project management → Add project modal: renders (evidence: `src/app/admin/projects/page.tsx`)
- Project management → Supabase client: queries (evidence: `src/app/admin/projects/page.tsx`)
- Add project modal → Supabase client: writes (evidence: `src/app/admin/projects/AddProjectModal.tsx`)
- Project editor → Supabase client: uses (evidence: `src/app/admin/projects/[id]/page.tsx`)
- Certificate management → Supabase client: queries (evidence: `src/app/admin/certificates/page.tsx`)
- Technology management → Supabase client: queries (evidence: `src/app/admin/tech/page.tsx`)
- Comment moderation → Admin navigation: renders (evidence: `src/app/admin/comments/page.tsx`)
- Comment moderation → Supabase client: moderates (evidence: `src/app/admin/comments/page.tsx`)
