# ekizr/portofolio_v5 architecture

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

- Interactive diagram: https://gitdiagram.com/ekizr/portofolio_v5
- Repository: https://github.com/ekizr/portofolio_v5

## Overview

Portfolio V5 is a React portfolio with public project, certificate, and comment experiences plus a Supabase-backed admin dashboard. Visitors browse the landing page and portfolio, open project details, and can submit comments; admins authenticate and manage portfolio content. The graph includes the app’s route structure and principal data features. Some subsystem details come from README documentation rather than sampled implementations, so those links are cited to the README; unsampled behavior is not inferred.

Main entry points: [`src/App.jsx`](https://github.com/ekizr/portofolio_v5/blob/main/src/App.jsx) (App Routes), [`src/supabase.js`](https://github.com/ekizr/portofolio_v5/blob/main/src/supabase.js) (Supabase Client), [`src/Pages/Portofolio.jsx`](https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Portofolio.jsx) (Projects & Certificates), [`src/Pages/Dashboard.jsx`](https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Dashboard.jsx) (Dashboard Overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Portfolio"]
  node_home["Home<br/>[Home.jsx]"]
  node_about["About<br/>[About.jsx]"]
  node_portfolio["Projects &amp; Certificates<br/>[Portofolio.jsx]"]
  node_project_detail["Project Detail<br/>[ProjectDetail.jsx]"]
  node_contact["Contact Page<br/>[Contact.jsx]"]
  node_comments_public["Public Comments<br/>[Commentar.jsx]"]
end

subgraph group_admin["Admin Dashboard"]
  node_login["Admin Login<br/>[Login.jsx]"]
  node_protected["Route Guard<br/>[ProtectedRoute.jsx]"]
  node_dashboard["Dashboard Overview<br/>[Dashboard.jsx]"]
  node_projects_admin["Project Management<br/>[Projects.jsx]"]
  node_cert_admin["Certificate Management<br/>[Certificates.jsx]"]
  node_comments_admin["Comment Management<br/>[Comments.jsx]"]
end

subgraph group_shared["Shared UI"]
  node_app["App Routes<br/>[App.jsx]"]
  node_project_card["Project Cards<br/>[CardProject.jsx]"]
  node_slug["Slug Utility<br/>[slug.js]"]
  node_social["Social Links<br/>[SocialLinks.jsx]"]
  node_presence["Presence Widget<br/>[PresenceWidget.jsx]"]
  node_cert_display["Certificate Gallery<br/>[Certificate.jsx]"]
end

subgraph group_data["Data Services"]
  node_supabase_client["Supabase Client<br/>[supabase.js]"]
  node_supabase[("Supabase Backend")]
end

node_visitor(("Visitor"))
node_admin_actor(("Admin"))

node_visitor -->|"opens site"| node_app
node_admin_actor -->|"opens site"| node_app
node_app -->|"routes to"| node_home
node_app -->|"renders"| node_about
node_app -->|"renders"| node_portfolio
node_app -->|"routes to"| node_contact
node_app -->|"routes to"| node_project_detail
node_app -->|"routes to"| node_login
node_app -->|"guards dashboard"| node_protected
node_protected -->|"renders"| node_dashboard
node_dashboard -->|"renders"| node_projects_admin
node_dashboard -->|"renders"| node_cert_admin
node_dashboard -->|"renders"| node_comments_admin
node_portfolio -->|"queries projects and certificates"| node_supabase_client
node_portfolio -->|"renders"| node_project_card
node_portfolio -->|"renders"| node_cert_display
node_project_card -->|"uses"| node_slug
node_project_detail -->|"uses"| node_slug
node_contact -->|"renders"| node_comments_public
node_contact -->|"renders"| node_social
node_social -->|"uses"| node_presence
node_comments_public -->|"reads and submits comments"| node_supabase_client
node_login -->|"authenticates"| node_supabase_client
node_projects_admin -->|"manages projects"| node_supabase_client
node_cert_admin -->|"manages certificates"| node_supabase_client
node_comments_admin -->|"manages comments"| node_supabase_client
node_supabase_client -->|"connects to"| node_supabase
node_visitor -->|"views portfolio"| node_portfolio
node_visitor -->|"submits comment"| node_comments_public
node_admin_actor -->|"manages projects"| node_projects_admin
node_admin_actor -->|"manages certificates"| node_cert_admin
node_admin_actor -->|"moderates comments"| node_comments_admin

click node_app "https://github.com/ekizr/portofolio_v5/blob/main/src/App.jsx"
click node_home "https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Home.jsx"
click node_about "https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/About.jsx"
click node_portfolio "https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Portofolio.jsx"
click node_project_card "https://github.com/ekizr/portofolio_v5/blob/main/src/components/CardProject.jsx"
click node_project_detail "https://github.com/ekizr/portofolio_v5/blob/main/src/components/ProjectDetail.jsx"
click node_slug "https://github.com/ekizr/portofolio_v5/blob/main/src/utils/slug.js"
click node_contact "https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Contact.jsx"
click node_comments_public "https://github.com/ekizr/portofolio_v5/blob/main/src/components/Commentar.jsx"
click node_social "https://github.com/ekizr/portofolio_v5/blob/main/src/components/SocialLinks.jsx"
click node_presence "https://github.com/ekizr/portofolio_v5/blob/main/src/components/PresenceWidget.jsx"
click node_cert_display "https://github.com/ekizr/portofolio_v5/blob/main/src/components/Certificate.jsx"
click node_login "https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Login.jsx"
click node_protected "https://github.com/ekizr/portofolio_v5/blob/main/src/components/ProtectedRoute.jsx"
click node_dashboard "https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Dashboard.jsx"
click node_projects_admin "https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/dashboard/Projects.jsx"
click node_cert_admin "https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/dashboard/Certificates.jsx"
click node_comments_admin "https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/dashboard/Comments.jsx"
click node_supabase_client "https://github.com/ekizr/portofolio_v5/blob/main/src/supabase.js"

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_about,node_portfolio,node_project_detail,node_contact,node_comments_public toneBlue
class node_login,node_protected,node_dashboard,node_projects_admin,node_cert_admin,node_comments_admin toneAmber
class node_app,node_project_card,node_slug,node_social,node_presence,node_cert_display toneMint
class node_supabase_client,node_supabase toneRose
class node_visitor,node_admin_actor toneIndigo
```

## Components

### Public Portfolio

- [Home](https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Home.jsx): `src/Pages/Home.jsx`
- [About](https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/About.jsx): `src/Pages/About.jsx`
- [Projects & Certificates](https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Portofolio.jsx): `src/Pages/Portofolio.jsx`
- [Project Detail](https://github.com/ekizr/portofolio_v5/blob/main/src/components/ProjectDetail.jsx): `src/components/ProjectDetail.jsx`
- [Contact Page](https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Contact.jsx): `src/Pages/Contact.jsx`
- [Public Comments](https://github.com/ekizr/portofolio_v5/blob/main/src/components/Commentar.jsx): `src/components/Commentar.jsx`

### Admin Dashboard

- [Admin Login](https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Login.jsx): `src/Pages/Login.jsx`
- [Route Guard](https://github.com/ekizr/portofolio_v5/blob/main/src/components/ProtectedRoute.jsx): `src/components/ProtectedRoute.jsx`
- [Dashboard Overview](https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/Dashboard.jsx): `src/Pages/Dashboard.jsx`
- [Project Management](https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/dashboard/Projects.jsx): `src/Pages/dashboard/Projects.jsx`
- [Certificate Management](https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/dashboard/Certificates.jsx): `src/Pages/dashboard/Certificates.jsx`
- [Comment Management](https://github.com/ekizr/portofolio_v5/blob/main/src/Pages/dashboard/Comments.jsx): `src/Pages/dashboard/Comments.jsx`

### Shared UI

- [App Routes](https://github.com/ekizr/portofolio_v5/blob/main/src/App.jsx): `src/App.jsx`
- [Project Cards](https://github.com/ekizr/portofolio_v5/blob/main/src/components/CardProject.jsx): `src/components/CardProject.jsx`
- [Slug Utility](https://github.com/ekizr/portofolio_v5/blob/main/src/utils/slug.js): `src/utils/slug.js`
- [Social Links](https://github.com/ekizr/portofolio_v5/blob/main/src/components/SocialLinks.jsx): `src/components/SocialLinks.jsx`
- [Presence Widget](https://github.com/ekizr/portofolio_v5/blob/main/src/components/PresenceWidget.jsx): `src/components/PresenceWidget.jsx`
- [Certificate Gallery](https://github.com/ekizr/portofolio_v5/blob/main/src/components/Certificate.jsx): `src/components/Certificate.jsx`

### Data Services

- [Supabase Client](https://github.com/ekizr/portofolio_v5/blob/main/src/supabase.js): `src/supabase.js`
- **Supabase Backend**

### Other components

- **Visitor**
- **Admin**

## Connections

- Visitor → App Routes: opens site (evidence: `src/App.jsx`)
- Admin → App Routes: opens site (evidence: `src/App.jsx`)
- App Routes → Home: routes to (evidence: `src/App.jsx`)
- App Routes → About: renders (evidence: `src/App.jsx`)
- App Routes → Projects & Certificates: renders (evidence: `src/App.jsx`)
- App Routes → Contact Page: routes to (evidence: `src/App.jsx`)
- App Routes → Project Detail: routes to (evidence: `src/App.jsx`)
- App Routes → Admin Login: routes to (evidence: `src/App.jsx`)
- App Routes → Route Guard: guards dashboard (evidence: `src/App.jsx`)
- Route Guard → Dashboard Overview: renders (evidence: `src/components/ProtectedRoute.jsx`)
- Dashboard Overview → Project Management: renders (evidence: `src/Pages/Dashboard.jsx`)
- Dashboard Overview → Certificate Management: renders (evidence: `src/Pages/Dashboard.jsx`)
- Dashboard Overview → Comment Management: renders (evidence: `src/Pages/Dashboard.jsx`)
- Projects & Certificates → Supabase Client: queries projects and certificates (evidence: `src/Pages/Portofolio.jsx`)
- Projects & Certificates → Project Cards: renders (evidence: `src/Pages/Portofolio.jsx`)
- Projects & Certificates → Certificate Gallery: renders (evidence: `src/Pages/Portofolio.jsx`)
- Project Cards → Slug Utility: uses (evidence: `src/components/CardProject.jsx`)
- Project Detail → Slug Utility: uses (evidence: `src/components/ProjectDetail.jsx`)
- Contact Page → Public Comments: renders (evidence: `src/Pages/Contact.jsx`)
- Contact Page → Social Links: renders (evidence: `src/Pages/Contact.jsx`)
- Social Links → Presence Widget: uses (evidence: `src/components/SocialLinks.jsx`)
- Public Comments → Supabase Client: reads and submits comments (evidence: `src/components/Commentar.jsx`)
- Admin Login → Supabase Client: authenticates (evidence: `src/Pages/Login.jsx`)
- Project Management → Supabase Client: manages projects (evidence: `src/Pages/dashboard/Projects.jsx`)
- Certificate Management → Supabase Client: manages certificates (evidence: `src/Pages/dashboard/Certificates.jsx`)
- Comment Management → Supabase Client: manages comments (evidence: `src/Pages/dashboard/Comments.jsx`)
- Supabase Client → Supabase Backend: connects to (evidence: `src/supabase.js`)
- Visitor → Projects & Certificates: views portfolio (evidence: `README.md`)
- Visitor → Public Comments: submits comment (evidence: `README.md`)
- Admin → Project Management: manages projects (evidence: `README.md`)
- Admin → Certificate Management: manages certificates (evidence: `README.md`)
- Admin → Comment Management: moderates comments (evidence: `README.md`)
