# thasnin2003/thasnin-portfolio-website architecture

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

- Interactive diagram: https://gitdiagram.com/thasnin2003/thasnin-portfolio-website
- Repository: https://github.com/thasnin2003/thasnin-portfolio-website

## Overview

This is a React portfolio presenting T.M. Thasnin’s profile, work, education, and contact options. Visitors arrive at the animated hero, navigate through portfolio sections, and can submit a contact message. The main composition and contact integrations are visible in excerpts; other section and data relationships are supported by the SOURCE INDEX. The README also documents responsive/accessibility and PWA capabilities, but their implementations were not sampled, so those links are not expanded here.

Main entry points: [`src/App.tsx`](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/App.tsx) (Portfolio composition), [`src/components/sections/Contact.tsx`](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Contact.tsx) (Contact form), [`src/components/Navbar.tsx`](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/Navbar.tsx) (Navigation bar), [`src/data/personal.ts`](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/personal.ts) (Personal details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Portfolio experience"]
  node_app["Portfolio composition<br/>[App.tsx]"]
  node_hero["Hero introduction<br/>[Hero.tsx]"]
  node_about["About profile<br/>[About.tsx]"]
  node_skills["Skills showcase<br/>[Skills.tsx]"]
  node_projects["Featured projects<br/>[Projects.tsx]"]
  node_education["Education<br/>[Education.tsx]"]
  node_timeline["Journey timeline<br/>[Timeline.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_about_data["About content<br/>[about.ts]"]
  node_personal_data["Personal details<br/>[personal.ts]"]
  node_skills_data["Skills content<br/>[skills.ts]"]
  node_projects_data["Project content<br/>[projects.ts]"]
  node_timeline_data["Education and journey data<br/>[timeline.ts]"]
  node_navigation_data["Navigation entries<br/>[navigation.ts]"]
  node_social_data["Social links<br/>[socials.ts]"]
end

subgraph group_contact["Contact workflow"]
  node_contact_form["Contact form<br/>[Contact.tsx]"]
  node_emailjs["EmailJS"]
  node_supabase_client["Supabase client<br/>[supabase.ts]"]
  node_submissions[("Contact submissions")]
end

subgraph group_shared["Shared presentation"]
  node_seo["SEO metadata<br/>[SEO.tsx]"]
  node_background["Visual background<br/>[Background.tsx]"]
  node_shared_ui["Reusable UI elements"]
  node_loader["Loading screen<br/>[Loader.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_navigation["Navigation and motion"]
  node_navbar["Navigation bar<br/>[Navbar.tsx]"]
  node_scroll_tools["Scroll controls<br/>[useLenis.ts]"]
  node_scroll_state["Scroll state hooks<br/>[useScrollSpy.ts]"]
  node_scroll_direction["Scroll direction"]
  node_scroll_progress["Scroll progress<br/>[ScrollProgress.tsx]"]
  node_back_to_top["Back to top<br/>[BackToTop.tsx]"]
end

node_visitor(("Portfolio visitor"))

node_visitor -->|"views"| node_app
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_education
node_app -->|"renders"| node_timeline
node_app -->|"renders"| node_contact_form
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_seo
node_app -->|"renders"| node_background
node_app -->|"renders"| node_loader
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_scroll_progress
node_app -->|"renders"| node_back_to_top
node_app -->|"initializes"| node_scroll_tools
node_hero -->|"reads"| node_personal_data
node_hero -->|"reads"| node_social_data
node_hero -->|"scrolls to sections"| node_scroll_tools
node_about -->|"reads"| node_about_data
node_about -->|"reads"| node_personal_data
node_skills -->|"reads"| node_skills_data
node_projects -->|"reads"| node_projects_data
node_education -->|"reads"| node_timeline_data
node_timeline -->|"reads"| node_timeline_data
node_contact_form -->|"reads"| node_personal_data
node_contact_form -->|"reads"| node_social_data
node_contact_form -->|"sends message"| node_emailjs
node_contact_form -->|"records submission"| node_supabase_client
node_navbar -->|"reads"| node_navigation_data
node_navbar -->|"reads"| node_personal_data
node_navbar -->|"tracks active section"| node_scroll_state
node_navbar -->|"tracks scroll direction"| node_scroll_direction
node_navbar -->|"scrolls to section"| node_scroll_tools
node_back_to_top -->|"scrolls to top"| node_scroll_tools
node_footer -->|"reads"| node_personal_data
node_footer -->|"reads"| node_social_data
node_footer -->|"reads"| node_navigation_data
node_contact_form -->|"uses"| node_shared_ui
node_projects -->|"uses"| node_shared_ui
node_skills -->|"uses"| node_shared_ui
node_supabase_client -.-> node_submissions

click node_app "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/App.tsx"
click node_hero "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Hero.tsx"
click node_about "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/About.tsx"
click node_skills "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Skills.tsx"
click node_projects "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Projects.tsx"
click node_education "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Education.tsx"
click node_timeline "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Timeline.tsx"
click node_about_data "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/about.ts"
click node_personal_data "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/personal.ts"
click node_skills_data "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/skills.ts"
click node_projects_data "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/projects.ts"
click node_timeline_data "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/timeline.ts"
click node_navigation_data "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/navigation.ts"
click node_social_data "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/socials.ts"
click node_contact_form "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Contact.tsx"
click node_supabase_client "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/lib/supabase.ts"
click node_submissions "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/supabase/migrations/20260803145720_create_contact_submissions.sql"
click node_seo "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/SEO.tsx"
click node_background "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/ui/Background.tsx"
click node_shared_ui "https://github.com/thasnin2003/thasnin-portfolio-website/tree/main/src/components/ui"
click node_loader "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/Loader.tsx"
click node_footer "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/Footer.tsx"
click node_navbar "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/Navbar.tsx"
click node_scroll_tools "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/hooks/useLenis.ts"
click node_scroll_state "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/hooks/useScrollSpy.ts"
click node_scroll_direction "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/hooks/useScrollDirection.ts"
click node_scroll_progress "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/ScrollProgress.tsx"
click node_back_to_top "https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/BackToTop.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_app,node_hero,node_about,node_skills,node_projects,node_education,node_timeline toneBlue
class node_about_data,node_personal_data,node_skills_data,node_projects_data,node_timeline_data,node_navigation_data,node_social_data toneAmber
class node_contact_form,node_emailjs,node_supabase_client,node_submissions toneMint
class node_seo,node_background,node_shared_ui,node_loader,node_footer toneRose
class node_navbar,node_scroll_tools,node_scroll_state,node_scroll_direction,node_scroll_progress,node_back_to_top,node_visitor toneIndigo
```

## Components

### Portfolio experience

- [Portfolio composition](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/App.tsx): `src/App.tsx`
- [Hero introduction](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Hero.tsx): `src/components/sections/Hero.tsx`
- [About profile](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/About.tsx): `src/components/sections/About.tsx`
- [Skills showcase](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Skills.tsx): `src/components/sections/Skills.tsx`
- [Featured projects](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Projects.tsx): `src/components/sections/Projects.tsx`
- [Education](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Education.tsx): `src/components/sections/Education.tsx`
- [Journey timeline](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Timeline.tsx): `src/components/sections/Timeline.tsx`

### Portfolio content

- [About content](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/about.ts): `src/data/about.ts`
- [Personal details](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/personal.ts): `src/data/personal.ts`
- [Skills content](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/skills.ts): `src/data/skills.ts`
- [Project content](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/projects.ts): `src/data/projects.ts`
- [Education and journey data](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/timeline.ts): `src/data/timeline.ts`
- [Navigation entries](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/navigation.ts): `src/data/navigation.ts`
- [Social links](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/data/socials.ts): `src/data/socials.ts`

### Contact workflow

- [Contact form](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/sections/Contact.tsx): `src/components/sections/Contact.tsx`
- **EmailJS**
- [Supabase client](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/lib/supabase.ts): `src/lib/supabase.ts`
- [Contact submissions](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/supabase/migrations/20260803145720_create_contact_submissions.sql): `supabase/migrations/20260803145720_create_contact_submissions.sql`

### Shared presentation

- [SEO metadata](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/SEO.tsx): `src/components/SEO.tsx`
- [Visual background](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/ui/Background.tsx): `src/components/ui/Background.tsx`
- [Reusable UI elements](https://github.com/thasnin2003/thasnin-portfolio-website/tree/main/src/components/ui): `src/components/ui`
- [Loading screen](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/Loader.tsx): `src/components/Loader.tsx`
- [Footer](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Navigation and motion

- [Navigation bar](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Scroll controls](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/hooks/useLenis.ts): `src/hooks/useLenis.ts`
- [Scroll state hooks](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/hooks/useScrollSpy.ts): `src/hooks/useScrollSpy.ts`
- [Scroll direction](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/hooks/useScrollDirection.ts): `src/hooks/useScrollDirection.ts`
- [Scroll progress](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/ScrollProgress.tsx): `src/components/ScrollProgress.tsx`
- [Back to top](https://github.com/thasnin2003/thasnin-portfolio-website/blob/main/src/components/BackToTop.tsx): `src/components/BackToTop.tsx`

### Other components

- **Portfolio visitor**

## Connections

- Portfolio visitor → Portfolio composition: views (evidence: `README.md`)
- Portfolio composition → Hero introduction: renders (evidence: `src/App.tsx`)
- Portfolio composition → About profile: renders (evidence: `src/App.tsx`)
- Portfolio composition → Skills showcase: renders (evidence: `src/App.tsx`)
- Portfolio composition → Featured projects: renders (evidence: `src/App.tsx`)
- Portfolio composition → Education: renders (evidence: `src/App.tsx`)
- Portfolio composition → Journey timeline: renders (evidence: `src/App.tsx`)
- Portfolio composition → Contact form: renders (evidence: `src/App.tsx`)
- Portfolio composition → Navigation bar: renders (evidence: `src/App.tsx`)
- Portfolio composition → SEO metadata: renders (evidence: `src/App.tsx`)
- Portfolio composition → Visual background: renders (evidence: `src/App.tsx`)
- Portfolio composition → Loading screen: renders (evidence: `src/App.tsx`)
- Portfolio composition → Footer: renders (evidence: `src/App.tsx`)
- Portfolio composition → Scroll progress: renders (evidence: `src/App.tsx`)
- Portfolio composition → Back to top: renders (evidence: `src/App.tsx`)
- Portfolio composition → Scroll controls: initializes (evidence: `src/App.tsx`)
- Hero introduction → Personal details: reads (evidence: `src/components/sections/Hero.tsx`)
- Hero introduction → Social links: reads (evidence: `src/components/sections/Hero.tsx`)
- Hero introduction → Scroll controls: scrolls to sections (evidence: `src/components/sections/Hero.tsx`)
- About profile → About content: reads (evidence: `src/components/sections/About.tsx`)
- About profile → Personal details: reads (evidence: `src/components/sections/About.tsx`)
- Skills showcase → Skills content: reads (evidence: `src/components/sections/Skills.tsx`)
- Featured projects → Project content: reads (evidence: `src/components/sections/Projects.tsx`)
- Education → Education and journey data: reads (evidence: `src/components/sections/Education.tsx`)
- Journey timeline → Education and journey data: reads (evidence: `src/components/sections/Timeline.tsx`)
- Contact form → Personal details: reads (evidence: `src/components/sections/Contact.tsx`)
- Contact form → Social links: reads (evidence: `src/components/sections/Contact.tsx`)
- Contact form → EmailJS: sends message (evidence: `src/components/sections/Contact.tsx`)
- Contact form → Supabase client: records submission (evidence: `src/components/sections/Contact.tsx`)
- Navigation bar → Navigation entries: reads (evidence: `src/components/Navbar.tsx`)
- Navigation bar → Personal details: reads (evidence: `src/components/Navbar.tsx`)
- Navigation bar → Scroll state hooks: tracks active section (evidence: `src/components/Navbar.tsx`)
- Navigation bar → Scroll direction: tracks scroll direction (evidence: `src/components/Navbar.tsx`)
- Navigation bar → Scroll controls: scrolls to section (evidence: `src/components/Navbar.tsx`)
- Back to top → Scroll controls: scrolls to top (evidence: `src/components/BackToTop.tsx`)
- Footer → Personal details: reads (evidence: `src/components/Footer.tsx`)
- Footer → Social links: reads (evidence: `src/components/Footer.tsx`)
- Footer → Navigation entries: reads (evidence: `src/components/Footer.tsx`)
- Contact form → Reusable UI elements: uses (evidence: `src/components/sections/Contact.tsx`)
- Featured projects → Reusable UI elements: uses (evidence: `src/components/sections/Projects.tsx`)
- Skills showcase → Reusable UI elements: uses (evidence: `src/components/sections/Skills.tsx`)
- Supabase client → Contact submissions
