# ahmedsrr/code-my-vision-folio architecture

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

- Interactive diagram: https://gitdiagram.com/ahmedsrr/code-my-vision-folio
- Repository: https://github.com/ahmedsrr/code-my-vision-folio

## Overview

This is a React portfolio site: visitors navigate a landing page and dedicated project, profile, and contact pages, then inspect project details or use contact links/forms. Its main internal layers are route/layout composition, portfolio content and project data, and reusable UI/notification support. The README is empty; edges below are limited to relationships shown in source excerpts or the SOURCE INDEX, so unsampled page details are not inferred.

Main entry points: [`src/App.tsx`](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/App.tsx) (Routes and providers), [`src/pages/Home.tsx`](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/Home.tsx) (Home page), [`src/pages/Contact.tsx`](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/Contact.tsx) (Contact form), [`src/components/ui/toaster.tsx`](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/toaster.tsx) (Toast renderer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_entry["React entry<br/>[main.tsx]"]
  node_routes["Routes and providers<br/>[App.tsx]"]
  node_layout["Site layout<br/>[Layout.tsx]"]
  node_navigation["Navigation<br/>[Navigation.tsx]"]
end

subgraph group_portfolio["Portfolio content"]
  node_home["Home page<br/>[Home.tsx]"]
  node_hero["Hero section<br/>[Hero.tsx]"]
  node_skills["Skills section<br/>[Skills.tsx]"]
  node_projects_data["Project catalog<br/>[projects.ts]"]
  node_projects_page["Projects page<br/>[Projects.tsx]"]
  node_project_detail["Project details<br/>[ProjectDetail.tsx]"]
  node_about["About page<br/>[About.tsx]"]
end

subgraph group_contact["Contact experience"]
  node_contact_page["Contact page<br/>[ContactPage.tsx]"]
  node_contact_form_page["Contact form<br/>[Contact.tsx]"]
  node_contact_section["Home contact section<br/>[Contact.tsx]"]
end

subgraph group_shared["Shared UI services"]
  node_toast_hook["Toast state<br/>[use-toast.ts]"]
  node_toaster["Toast renderer<br/>[toaster.tsx]"]
  node_toast_ui["Toast component<br/>[toast.tsx]"]
  node_sonner["Sonner notifications<br/>[sonner.tsx]"]
  node_tooltip["Tooltip provider<br/>[tooltip.tsx]"]
  node_ui_button["Button primitive<br/>[button.tsx]"]
  node_ui_input["Input primitive<br/>[input.tsx]"]
  node_utils["Class utilities<br/>[utils.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_routes
node_routes -->|"wraps routes"| node_layout
node_layout -->|"renders"| node_navigation
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_projects_page
node_routes -->|"routes to"| node_project_detail
node_routes -->|"routes to"| node_about
node_routes -->|"routes to"| node_contact_page
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_skills
node_home -->|"reads"| node_projects_data
node_home -->|"renders"| node_contact_section
node_projects_page -->|"reads"| node_projects_data
node_project_detail -->|"reads"| node_projects_data
node_contact_form_page -->|"invokes"| node_toast_hook
node_routes -->|"renders"| node_toaster
node_routes -->|"renders"| node_sonner
node_routes -->|"provides"| node_tooltip
node_toaster -->|"subscribes"| node_toast_hook
node_toaster -->|"renders"| node_toast_ui
node_contact_form_page -->|"uses"| node_ui_button
node_contact_form_page -->|"uses"| node_ui_input
node_ui_button -->|"merges classes"| node_utils
node_ui_input -->|"merges classes"| node_utils

click node_entry "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/main.tsx"
click node_routes "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/App.tsx"
click node_layout "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/Layout.tsx"
click node_navigation "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/Navigation.tsx"
click node_home "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/Home.tsx"
click node_hero "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/Hero.tsx"
click node_skills "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/Skills.tsx"
click node_projects_data "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/data/projects.ts"
click node_projects_page "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/Projects.tsx"
click node_project_detail "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/ProjectDetail.tsx"
click node_about "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/About.tsx"
click node_contact_page "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/ContactPage.tsx"
click node_contact_form_page "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/Contact.tsx"
click node_contact_section "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/Contact.tsx"
click node_toast_hook "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/hooks/use-toast.ts"
click node_toaster "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/toaster.tsx"
click node_toast_ui "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/toast.tsx"
click node_sonner "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/sonner.tsx"
click node_tooltip "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/tooltip.tsx"
click node_ui_button "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/button.tsx"
click node_ui_input "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/input.tsx"
click node_utils "https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/lib/utils.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_entry,node_routes,node_layout,node_navigation toneBlue
class node_home,node_hero,node_skills,node_projects_data,node_projects_page,node_project_detail,node_about toneAmber
class node_contact_page,node_contact_form_page,node_contact_section toneMint
class node_toast_hook,node_toaster,node_toast_ui,node_sonner,node_tooltip,node_ui_button,node_ui_input,node_utils toneRose
class node_visitor toneIndigo
```

## Components

### App and navigation

- [React entry](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/main.tsx): `src/main.tsx`
- [Routes and providers](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/App.tsx): `src/App.tsx`
- [Site layout](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/Layout.tsx): `src/components/Layout.tsx`
- [Navigation](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/Navigation.tsx): `src/components/Navigation.tsx`

### Portfolio content

- [Home page](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Hero section](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [Skills section](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/Skills.tsx): `src/components/Skills.tsx`
- [Project catalog](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/data/projects.ts): `src/data/projects.ts`
- [Projects page](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/Projects.tsx): `src/pages/Projects.tsx`
- [Project details](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/ProjectDetail.tsx): `src/pages/ProjectDetail.tsx`
- [About page](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/About.tsx): `src/pages/About.tsx`

### Contact experience

- [Contact page](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/ContactPage.tsx): `src/pages/ContactPage.tsx`
- [Contact form](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/pages/Contact.tsx): `src/pages/Contact.tsx`
- [Home contact section](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/Contact.tsx): `src/components/Contact.tsx`

### Shared UI services

- [Toast state](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/hooks/use-toast.ts): `src/hooks/use-toast.ts`
- [Toast renderer](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/toaster.tsx): `src/components/ui/toaster.tsx`
- [Toast component](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/toast.tsx): `src/components/ui/toast.tsx`
- [Sonner notifications](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/sonner.tsx): `src/components/ui/sonner.tsx`
- [Tooltip provider](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/tooltip.tsx): `src/components/ui/tooltip.tsx`
- [Button primitive](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Input primitive](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/components/ui/input.tsx): `src/components/ui/input.tsx`
- [Class utilities](https://github.com/ahmedsrr/code-my-vision-folio/blob/main/src/lib/utils.ts): `src/lib/utils.ts`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens site (evidence: `src/main.tsx`)
- React entry → Routes and providers: renders (evidence: `src/main.tsx`)
- Routes and providers → Site layout: wraps routes (evidence: `src/App.tsx`)
- Site layout → Navigation: renders (evidence: `src/components/Layout.tsx`)
- Routes and providers → Home page: routes to (evidence: `src/App.tsx`)
- Routes and providers → Projects page: routes to (evidence: `src/App.tsx`)
- Routes and providers → Project details: routes to (evidence: `src/App.tsx`)
- Routes and providers → About page: routes to (evidence: `src/App.tsx`)
- Routes and providers → Contact page: routes to (evidence: `src/App.tsx`)
- Home page → Hero section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Skills section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Project catalog: reads (evidence: `src/pages/Home.tsx`)
- Home page → Home contact section: renders (evidence: `src/pages/Home.tsx`)
- Projects page → Project catalog: reads (evidence: `src/pages/Projects.tsx`)
- Project details → Project catalog: reads (evidence: `src/pages/ProjectDetail.tsx`)
- Contact form → Toast state: invokes (evidence: `src/pages/Contact.tsx`)
- Routes and providers → Toast renderer: renders (evidence: `src/App.tsx`)
- Routes and providers → Sonner notifications: renders (evidence: `src/App.tsx`)
- Routes and providers → Tooltip provider: provides (evidence: `src/App.tsx`)
- Toast renderer → Toast state: subscribes (evidence: `src/components/ui/toaster.tsx`)
- Toast renderer → Toast component: renders (evidence: `src/components/ui/toaster.tsx`)
- Contact form → Button primitive: uses (evidence: `src/pages/Contact.tsx`)
- Contact form → Input primitive: uses (evidence: `src/pages/Contact.tsx`)
- Button primitive → Class utilities: merges classes (evidence: `src/components/ui/button.tsx`)
- Input primitive → Class utilities: merges classes (evidence: `src/components/ui/input.tsx`)
