# imanelawadi90-glitch/eman_portofolio architecture

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

- Interactive diagram: https://gitdiagram.com/imanelawadi90-glitch/eman_portofolio
- Repository: https://github.com/imanelawadi90-glitch/eman_portofolio

## Overview

This repository is a personal portfolio site: visitors browse the creator’s profile and video work, then can submit a contact message. The client entry and page composition are shown directly; the portfolio reads a local video catalog, and the contact form reports outcomes through toast state. API and server files are present, but their wiring to the form is not established by the excerpts or README, so that relationship is left out. The README is empty; unsampled component behavior is represented only where the source index documents composition.

Main entry points: [`src/pages/Index.tsx`](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/pages/Index.tsx) (Home Page), [`src/App.tsx`](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/App.tsx) (App Router), [`src/main.tsx`](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/main.tsx) (React Entry), [`src/components/Navigation.tsx`](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Navigation.tsx) (Navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client Shell"]
  node_entry["React Entry<br/>[main.tsx]"]
  node_app["App Router<br/>[App.tsx]"]
  node_index["Home Page<br/>[Index.tsx]"]
  node_notfound["Not Found<br/>[NotFound.tsx]"]
end

subgraph group_portfolio["Portfolio Content"]
  node_navigation["Navigation<br/>[Navigation.tsx]"]
  node_hero["Hero<br/>[Hero.tsx]"]
  node_about["About<br/>[About.tsx]"]
  node_portfolio_view["Video Portfolio<br/>[Portfolio.tsx]"]
  node_video_data["Video Catalog<br/>[videos.ts]"]
  node_slides["Slides<br/>[Slides.tsx]"]
  node_contact["Contact Form<br/>[Contact.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_shared["Shared UI"]
  node_theme["Theme Provider<br/>[theme-provider.tsx]"]
  node_theme_toggle["Theme Toggle<br/>[theme-toggle.tsx]"]
  node_toast_hook["Toast State<br/>[use-toast.ts]"]
  node_toast_view["Toast Renderer<br/>[toaster.tsx]"]
  node_ui_primitives["UI Primitives"]
  node_class_utils["Class Utilities<br/>[utils.ts]"]
end

subgraph group_backend["Contact API"]
  node_api_send["Message Handler<br/>[send.js]"]
  node_api_health["Health Endpoint<br/>[health.js]"]
  node_api_headers["Response Headers<br/>[headers.js]"]
  node_server["Server Runtime<br/>[index.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"routes home"| node_index
node_app -->|"routes fallback"| node_notfound
node_index -->|"renders"| node_navigation
node_index -->|"renders"| node_hero
node_index -->|"renders"| node_about
node_index -->|"renders"| node_portfolio_view
node_index -->|"renders"| node_slides
node_index -->|"renders"| node_contact
node_index -->|"renders"| node_footer
node_portfolio_view -->|"reads catalog"| node_video_data
node_contact -->|"reports status"| node_toast_hook
node_toast_view -->|"reads state"| node_toast_hook
node_app -->|"mounts renderer"| node_toast_view
node_navigation -->|"renders"| node_theme_toggle
node_theme_toggle -->|"uses theme"| node_theme
node_app -->|"provides theme"| node_theme
node_ui_primitives -.->|"uses classes"| node_class_utils

click node_entry "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/main.tsx"
click node_app "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/App.tsx"
click node_index "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/pages/Index.tsx"
click node_notfound "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/pages/NotFound.tsx"
click node_navigation "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Navigation.tsx"
click node_hero "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Hero.tsx"
click node_about "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/About.tsx"
click node_portfolio_view "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Portfolio.tsx"
click node_video_data "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/data/videos.ts"
click node_slides "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Slides.tsx"
click node_contact "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Contact.tsx"
click node_footer "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Footer.tsx"
click node_theme "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/theme-provider.tsx"
click node_theme_toggle "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/theme-toggle.tsx"
click node_toast_hook "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/hooks/use-toast.ts"
click node_toast_view "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/ui/toaster.tsx"
click node_ui_primitives "https://github.com/imanelawadi90-glitch/eman_portofolio/tree/master/src/components/ui"
click node_class_utils "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/lib/utils.ts"
click node_api_send "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/api/send.js"
click node_api_health "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/api/health.js"
click node_api_headers "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/api/headers.js"
click node_server "https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/server/index.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_entry,node_app,node_index,node_notfound toneBlue
class node_navigation,node_hero,node_about,node_portfolio_view,node_video_data,node_slides,node_contact,node_footer toneAmber
class node_theme,node_theme_toggle,node_toast_hook,node_toast_view,node_ui_primitives,node_class_utils toneMint
class node_api_send,node_api_health,node_api_headers,node_server toneRose
class node_visitor toneIndigo
```

## Components

### Client Shell

- [React Entry](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/main.tsx): `src/main.tsx`
- [App Router](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/App.tsx): `src/App.tsx`
- [Home Page](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Not Found](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/pages/NotFound.tsx): `src/pages/NotFound.tsx`

### Portfolio Content

- [Navigation](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Navigation.tsx): `src/components/Navigation.tsx`
- [Hero](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Hero.tsx): `src/components/Hero.tsx`
- [About](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/About.tsx): `src/components/About.tsx`
- [Video Portfolio](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Portfolio.tsx): `src/components/Portfolio.tsx`
- [Video Catalog](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/data/videos.ts): `src/data/videos.ts`
- [Slides](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Slides.tsx): `src/components/Slides.tsx`
- [Contact Form](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Contact.tsx): `src/components/Contact.tsx`
- [Footer](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/Footer.tsx): `src/components/Footer.tsx`

### Shared UI

- [Theme Provider](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/theme-provider.tsx): `src/components/theme-provider.tsx`
- [Theme Toggle](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/theme-toggle.tsx): `src/components/theme-toggle.tsx`
- [Toast State](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/hooks/use-toast.ts): `src/hooks/use-toast.ts`
- [Toast Renderer](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/components/ui/toaster.tsx): `src/components/ui/toaster.tsx`
- [UI Primitives](https://github.com/imanelawadi90-glitch/eman_portofolio/tree/master/src/components/ui): `src/components/ui`
- [Class Utilities](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/src/lib/utils.ts): `src/lib/utils.ts`

### Contact API

- [Message Handler](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/api/send.js): `api/send.js`
- [Health Endpoint](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/api/health.js): `api/health.js`
- [Response Headers](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/api/headers.js): `api/headers.js`
- [Server Runtime](https://github.com/imanelawadi90-glitch/eman_portofolio/blob/master/server/index.js): `server/index.js`

### Other components

- **Visitor**

## Connections

- Visitor → React Entry: opens site (evidence: `src/main.tsx`)
- React Entry → App Router: renders (evidence: `src/main.tsx`)
- App Router → Home Page: routes home (evidence: `src/App.tsx`)
- App Router → Not Found: routes fallback (evidence: `src/App.tsx`)
- Home Page → Navigation: renders (evidence: `src/pages/Index.tsx`)
- Home Page → Hero: renders (evidence: `src/pages/Index.tsx`)
- Home Page → About: renders (evidence: `src/pages/Index.tsx`)
- Home Page → Video Portfolio: renders (evidence: `src/pages/Index.tsx`)
- Home Page → Slides: renders (evidence: `src/pages/Index.tsx`)
- Home Page → Contact Form: renders (evidence: `src/pages/Index.tsx`)
- Home Page → Footer: renders (evidence: `src/pages/Index.tsx`)
- Video Portfolio → Video Catalog: reads catalog (evidence: `src/components/Portfolio.tsx`)
- Contact Form → Toast State: reports status (evidence: `src/components/Contact.tsx`)
- Toast Renderer → Toast State: reads state (evidence: `src/components/ui/toaster.tsx`)
- App Router → Toast Renderer: mounts renderer (evidence: `src/App.tsx`)
- Navigation → Theme Toggle: renders (evidence: `src/components/Navigation.tsx`)
- Theme Toggle → Theme Provider: uses theme (evidence: `src/components/theme-toggle.tsx`)
- App Router → Theme Provider: provides theme (evidence: `src/App.tsx`)
- UI Primitives → Class Utilities: uses classes (evidence: `src/components/ui/select.tsx`)
