# dineshp0103/portfolio architecture

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

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

## Overview

Sky-Dev is a Next.js portfolio that presents the developer’s profile and services, with separate flows for authentication, contact requests, payment QR display, and masked social links. Visitors enter the home page to browse portfolio sections; the contact section can submit a message and fetch a QR code, while its social links route through server endpoints. Manual sign-in and registration use dedicated API routes, alongside Supabase Google OAuth. Route implementations were listed as read but not excerpted, so backend integrations and their behavior are represented only where the README documents them.

Main entry points: [`src/app/page.tsx`](https://github.com/dineshp0103/portfolio/blob/main/src/app/page.tsx) (Home page), [`src/app/auth/page.tsx`](https://github.com/dineshp0103/portfolio/blob/main/src/app/auth/page.tsx) (Sign-in page), [`src/components/sections/Contact.tsx`](https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Contact.tsx) (Contact section), [`src/app/api/contact/route.ts`](https://github.com/dineshp0103/portfolio/blob/main/src/app/api/contact/route.ts) (Contact endpoint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio experience"]
  node_home["Home page<br/>[page.tsx]"]
  node_hero["Hero carousel<br/>[Hero.tsx]"]
  node_about["About profile<br/>[About.tsx]"]
  node_skills["Skills<br/>[Skills.tsx]"]
  node_projects["Projects<br/>[Projects.tsx]"]
  node_experience["Experience<br/>[Experience.tsx]"]
  node_pricing["Pricing<br/>[Pricing.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_auth["Authentication"]
  node_auth_button["Auth button<br/>[AuthButton.tsx]"]
  node_auth_page["Sign-in page<br/>[page.tsx]"]
  node_supabase_client["Supabase client<br/>[supabase.ts]"]
  node_login_api["Login endpoint<br/>[route.ts]"]
  node_register_api["Registration endpoint<br/>[route.ts]"]
end

subgraph group_contact["Contact and payments"]
  node_contact_ui["Contact section<br/>[Contact.tsx]"]
  node_contact_api["Contact endpoint<br/>[route.ts]"]
  node_qr_api["QR endpoint<br/>[route.ts]"]
end

subgraph group_links["Protected social links"]
  node_social_api["Social redirect<br/>[route.ts]"]
end

node_visitor(("Visitor"))
node_supabase[("Supabase service")]
node_resend["Resend email"]
node_portfolio_db[("Contacts database")]
node_social_destinations["Social destinations"]

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_experience
node_home -->|"renders"| node_pricing
node_home -->|"renders"| node_contact_ui
node_visitor -->|"uses navigation"| node_navbar
node_visitor -->|"views"| node_footer
node_navbar -->|"renders"| node_auth_button
node_visitor -->|"opens"| node_auth_page
node_auth_page -->|"posts credentials"| node_login_api
node_auth_page -->|"posts registration"| node_register_api
node_auth_page -->|"uses OAuth client"| node_supabase_client
node_auth_button -->|"uses auth client"| node_supabase_client
node_login_api -.->|"authenticates"| node_supabase
node_register_api -.->|"registers users"| node_supabase
node_supabase_client -->|"connects to"| node_supabase
node_contact_ui -->|"submits message"| node_contact_api
node_contact_api -.->|"stores submission"| node_portfolio_db
node_contact_api -.->|"sends email"| node_resend
node_contact_ui -->|"fetches QR"| node_qr_api
node_contact_ui -->|"links to"| node_social_api
node_footer -->|"links to"| node_social_api
node_social_api -.->|"redirects"| node_social_destinations

click node_home "https://github.com/dineshp0103/portfolio/blob/main/src/app/page.tsx"
click node_hero "https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Hero.tsx"
click node_about "https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/About.tsx"
click node_skills "https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Skills.tsx"
click node_projects "https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Projects.tsx"
click node_experience "https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Experience.tsx"
click node_pricing "https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Pricing.tsx"
click node_contact_ui "https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Contact.tsx"
click node_navbar "https://github.com/dineshp0103/portfolio/blob/main/src/components/Navbar.tsx"
click node_footer "https://github.com/dineshp0103/portfolio/blob/main/src/components/Footer.tsx"
click node_auth_button "https://github.com/dineshp0103/portfolio/blob/main/src/components/AuthButton.tsx"
click node_auth_page "https://github.com/dineshp0103/portfolio/blob/main/src/app/auth/page.tsx"
click node_supabase_client "https://github.com/dineshp0103/portfolio/blob/main/src/lib/supabase.ts"
click node_login_api "https://github.com/dineshp0103/portfolio/blob/main/src/app/api/auth/login/route.ts"
click node_register_api "https://github.com/dineshp0103/portfolio/blob/main/src/app/api/auth/register/route.ts"
click node_contact_api "https://github.com/dineshp0103/portfolio/blob/main/src/app/api/contact/route.ts"
click node_qr_api "https://github.com/dineshp0103/portfolio/blob/main/src/app/api/qr/route.ts"
click node_social_api "https://github.com/dineshp0103/portfolio/blob/main/src/app/api/social/%5Bplatform%5D/route.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_home,node_hero,node_about,node_skills,node_projects,node_experience,node_pricing,node_navbar,node_footer toneBlue
class node_auth_button,node_auth_page,node_supabase_client,node_login_api,node_register_api,node_supabase,node_portfolio_db toneAmber
class node_contact_ui,node_contact_api,node_qr_api toneMint
class node_social_api toneRose
class node_visitor,node_resend,node_social_destinations toneIndigo
```

## Components

### Portfolio experience

- [Home page](https://github.com/dineshp0103/portfolio/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Hero carousel](https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Hero.tsx): `src/components/sections/Hero.tsx`
- [About profile](https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/About.tsx): `src/components/sections/About.tsx`
- [Skills](https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Skills.tsx): `src/components/sections/Skills.tsx`
- [Projects](https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Projects.tsx): `src/components/sections/Projects.tsx`
- [Experience](https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Experience.tsx): `src/components/sections/Experience.tsx`
- [Pricing](https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Pricing.tsx): `src/components/sections/Pricing.tsx`
- [Navigation](https://github.com/dineshp0103/portfolio/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Footer](https://github.com/dineshp0103/portfolio/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Authentication

- [Auth button](https://github.com/dineshp0103/portfolio/blob/main/src/components/AuthButton.tsx): `src/components/AuthButton.tsx`
- [Sign-in page](https://github.com/dineshp0103/portfolio/blob/main/src/app/auth/page.tsx): `src/app/auth/page.tsx`
- [Supabase client](https://github.com/dineshp0103/portfolio/blob/main/src/lib/supabase.ts): `src/lib/supabase.ts`
- [Login endpoint](https://github.com/dineshp0103/portfolio/blob/main/src/app/api/auth/login/route.ts): `src/app/api/auth/login/route.ts`
- [Registration endpoint](https://github.com/dineshp0103/portfolio/blob/main/src/app/api/auth/register/route.ts): `src/app/api/auth/register/route.ts`

### Contact and payments

- [Contact section](https://github.com/dineshp0103/portfolio/blob/main/src/components/sections/Contact.tsx): `src/components/sections/Contact.tsx`
- [Contact endpoint](https://github.com/dineshp0103/portfolio/blob/main/src/app/api/contact/route.ts): `src/app/api/contact/route.ts`
- [QR endpoint](https://github.com/dineshp0103/portfolio/blob/main/src/app/api/qr/route.ts): `src/app/api/qr/route.ts`

### Protected social links

- [Social redirect](https://github.com/dineshp0103/portfolio/blob/main/src/app/api/social/%5Bplatform%5D/route.ts): `src/app/api/social/[platform]/route.ts`

### Other components

- **Visitor**
- **Supabase service**
- **Resend email**
- **Contacts database**
- **Social destinations**

## Connections

- Visitor → Home page: opens (evidence: `README.md`)
- Home page → Hero carousel: renders (evidence: `src/app/page.tsx`)
- Home page → About profile: renders (evidence: `src/app/page.tsx`)
- Home page → Skills: renders (evidence: `src/app/page.tsx`)
- Home page → Projects: renders (evidence: `src/app/page.tsx`)
- Home page → Experience: renders (evidence: `src/app/page.tsx`)
- Home page → Pricing: renders (evidence: `src/app/page.tsx`)
- Home page → Contact section: renders (evidence: `src/app/page.tsx`)
- Visitor → Navigation: uses navigation (evidence: `README.md`)
- Visitor → Footer: views (evidence: `README.md`)
- Navigation → Auth button: renders (evidence: `src/components/Navbar.tsx`)
- Visitor → Sign-in page: opens
- Sign-in page → Login endpoint: posts credentials (evidence: `src/app/auth/page.tsx`)
- Sign-in page → Registration endpoint: posts registration (evidence: `src/app/auth/page.tsx`)
- Sign-in page → Supabase client: uses OAuth client (evidence: `src/app/auth/page.tsx`)
- Auth button → Supabase client: uses auth client (evidence: `src/components/AuthButton.tsx`)
- Login endpoint → Supabase service: authenticates (evidence: `README.md`)
- Registration endpoint → Supabase service: registers users (evidence: `README.md`)
- Supabase client → Supabase service: connects to (evidence: `README.md`)
- Contact section → Contact endpoint: submits message (evidence: `src/components/sections/Contact.tsx`)
- Contact endpoint → Contacts database: stores submission (evidence: `README.md`)
- Contact endpoint → Resend email: sends email (evidence: `README.md`)
- Contact section → QR endpoint: fetches QR (evidence: `src/components/sections/Contact.tsx`)
- Contact section → Social redirect: links to (evidence: `src/components/sections/Contact.tsx`)
- Footer → Social redirect: links to (evidence: `src/components/Footer.tsx`)
- Social redirect → Social destinations: redirects (evidence: `README.md`)
