# webenred/portfolio architecture

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

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

## Overview

This is a bilingual personal portfolio and project-showcase website. Visitors land on a localized portfolio page, browse profile, experience and project sections, open project case studies, and can submit a contact form. Locale routing supports English and French; the contact form posts to a configured external endpoint. Project detail pages select locale-specific MDX, but those content files are not in the supplied tree. The graph reflects documented imports and visible calls; unsampled connections are omitted.

Main entry points: [`src/app/[locale]/page.tsx`](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/page.tsx) (Portfolio landing), [`src/components/image-carousel.tsx`](https://github.com/webenred/portfolio/blob/main/src/components/image-carousel.tsx) (Image carousel), [`src/app/[locale]/components/contact-me-form.tsx`](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/contact-me-form.tsx) (Contact form), [`src/components/common/LangSwitcher.tsx`](https://github.com/webenred/portfolio/blob/main/src/components/common/LangSwitcher.tsx) (Language switcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Portfolio pages"]
  node_home["Portfolio landing<br/>[page.tsx]"]
  node_profile["Profile<br/>[profile.tsx]"]
  node_about["About<br/>[about.tsx]"]
  node_projects["Project listing<br/>[projects.tsx]"]
  node_experience["Experience<br/>[experience.tsx]"]
  node_contact_section["Contact section<br/>[contact.tsx]"]
  node_project_detail["Project case studies<br/>[page.tsx]"]
  node_site_layout["Localized site layout<br/>[layout.tsx]"]
end

subgraph group_locale["Locale and navigation"]
  node_navbar["Navigation bar<br/>[navbar.tsx]"]
  node_locale_switch["Language switcher<br/>[LangSwitcher.tsx]"]
  node_routing["Locale routing<br/>[routing.ts]"]
  node_middleware["Locale middleware<br/>[middleware.ts]"]
end

subgraph group_contact["Contact workflow"]
  node_contact_form["Contact form"]
  node_form_endpoint(("Configured form endpoint"))
end

subgraph group_ui["Interactive UI"]
  node_image_carousel["Image carousel<br/>[image-carousel.tsx]"]
  node_carousel["Carousel controls<br/>[carousel.tsx]"]
  node_dialog["Dialog primitives<br/>[dialog.tsx]"]
  node_button["Button primitive<br/>[button.tsx]"]
  node_dropdown["Dropdown menu<br/>[dropdown-menu.tsx]"]
  node_ui_core["Form and UI primitives<br/>[form.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_profile
node_home -->|"renders"| node_about
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_experience
node_home -->|"renders"| node_contact_section
node_site_layout -->|"renders"| node_navbar
node_contact_section -->|"renders"| node_contact_form
node_contact_form -->|"posts data"| node_form_endpoint
node_navbar -->|"renders"| node_locale_switch
node_locale_switch -->|"uses locale navigation"| node_routing
node_middleware -->|"uses locale config"| node_routing
node_image_carousel -->|"uses controls"| node_carousel
node_image_carousel -->|"opens dialog"| node_dialog
node_image_carousel -->|"uses buttons"| node_button
node_image_carousel -.->|"may display imagery"| node_projects
node_locale_switch -->|"uses menu"| node_dropdown
node_contact_form -->|"uses form controls"| node_ui_core
node_contact_form -->|"uses button"| node_button
node_project_detail -.->|"selects locale"| node_routing

click node_home "https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/page.tsx"
click node_profile "https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/profile.tsx"
click node_about "https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/about.tsx"
click node_projects "https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/projects.tsx"
click node_experience "https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/experience.tsx"
click node_contact_section "https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/contact.tsx"
click node_project_detail "https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/projects/best-tour-travel-agency-website/page.tsx"
click node_site_layout "https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/layout.tsx"
click node_navbar "https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/navbar.tsx"
click node_locale_switch "https://github.com/webenred/portfolio/blob/main/src/components/common/LangSwitcher.tsx"
click node_routing "https://github.com/webenred/portfolio/blob/main/src/i18n/routing.ts"
click node_middleware "https://github.com/webenred/portfolio/blob/main/src/middleware.ts"
click node_contact_form "https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/contact-me-form.tsx"
click node_image_carousel "https://github.com/webenred/portfolio/blob/main/src/components/image-carousel.tsx"
click node_carousel "https://github.com/webenred/portfolio/blob/main/src/components/ui/carousel.tsx"
click node_dialog "https://github.com/webenred/portfolio/blob/main/src/components/ui/dialog.tsx"
click node_button "https://github.com/webenred/portfolio/blob/main/src/components/ui/button.tsx"
click node_dropdown "https://github.com/webenred/portfolio/blob/main/src/components/ui/dropdown-menu.tsx"
click node_ui_core "https://github.com/webenred/portfolio/blob/main/src/components/ui/form.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_home,node_profile,node_about,node_projects,node_experience,node_contact_section,node_project_detail,node_site_layout toneBlue
class node_navbar,node_locale_switch,node_routing,node_middleware toneAmber
class node_contact_form,node_form_endpoint toneMint
class node_image_carousel,node_carousel,node_dialog,node_button,node_dropdown,node_ui_core toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio pages

- [Portfolio landing](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/page.tsx): `src/app/[locale]/page.tsx`
- [Profile](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/profile.tsx): `src/app/[locale]/components/profile.tsx`
- [About](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/about.tsx): `src/app/[locale]/components/about.tsx`
- [Project listing](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/projects.tsx): `src/app/[locale]/components/projects.tsx`
- [Experience](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/experience.tsx): `src/app/[locale]/components/experience.tsx`
- [Contact section](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/contact.tsx): `src/app/[locale]/components/contact.tsx`
- [Project case studies](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/projects/best-tour-travel-agency-website/page.tsx): `src/app/[locale]/projects/best-tour-travel-agency-website/page.tsx`
- [Localized site layout](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/layout.tsx): `src/app/[locale]/layout.tsx`

### Locale and navigation

- [Navigation bar](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/navbar.tsx): `src/app/[locale]/components/navbar.tsx`
- [Language switcher](https://github.com/webenred/portfolio/blob/main/src/components/common/LangSwitcher.tsx): `src/components/common/LangSwitcher.tsx`
- [Locale routing](https://github.com/webenred/portfolio/blob/main/src/i18n/routing.ts): `src/i18n/routing.ts`
- [Locale middleware](https://github.com/webenred/portfolio/blob/main/src/middleware.ts): `src/middleware.ts`

### Contact workflow

- [Contact form](https://github.com/webenred/portfolio/blob/main/src/app/%5Blocale%5D/components/contact-me-form.tsx): `src/app/[locale]/components/contact-me-form.tsx`
- **Configured form endpoint**

### Interactive UI

- [Image carousel](https://github.com/webenred/portfolio/blob/main/src/components/image-carousel.tsx): `src/components/image-carousel.tsx`
- [Carousel controls](https://github.com/webenred/portfolio/blob/main/src/components/ui/carousel.tsx): `src/components/ui/carousel.tsx`
- [Dialog primitives](https://github.com/webenred/portfolio/blob/main/src/components/ui/dialog.tsx): `src/components/ui/dialog.tsx`
- [Button primitive](https://github.com/webenred/portfolio/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Dropdown menu](https://github.com/webenred/portfolio/blob/main/src/components/ui/dropdown-menu.tsx): `src/components/ui/dropdown-menu.tsx`
- [Form and UI primitives](https://github.com/webenred/portfolio/blob/main/src/components/ui/form.tsx): `src/components/ui/form.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio landing: opens (evidence: `src/app/[locale]/page.tsx`)
- Portfolio landing → Profile: renders (evidence: `src/app/[locale]/page.tsx`)
- Portfolio landing → About: renders (evidence: `src/app/[locale]/page.tsx`)
- Portfolio landing → Project listing: renders (evidence: `src/app/[locale]/page.tsx`)
- Portfolio landing → Experience: renders (evidence: `src/app/[locale]/page.tsx`)
- Portfolio landing → Contact section: renders (evidence: `src/app/[locale]/page.tsx`)
- Localized site layout → Navigation bar: renders (evidence: `src/app/[locale]/layout.tsx`)
- Contact section → Contact form: renders (evidence: `src/app/[locale]/components/contact.tsx`)
- Contact form → Configured form endpoint: posts data (evidence: `src/app/[locale]/components/contact-me-form.tsx`)
- Navigation bar → Language switcher: renders (evidence: `src/app/[locale]/components/navbar.tsx`)
- Language switcher → Locale routing: uses locale navigation (evidence: `src/components/common/LangSwitcher.tsx`)
- Locale middleware → Locale routing: uses locale config (evidence: `src/middleware.ts`)
- Image carousel → Carousel controls: uses controls (evidence: `src/components/image-carousel.tsx`)
- Image carousel → Dialog primitives: opens dialog (evidence: `src/components/image-carousel.tsx`)
- Image carousel → Button primitive: uses buttons (evidence: `src/components/image-carousel.tsx`)
- Image carousel → Project listing: may display imagery
- Language switcher → Dropdown menu: uses menu (evidence: `src/components/common/LangSwitcher.tsx`)
- Contact form → Form and UI primitives: uses form controls (evidence: `src/app/[locale]/components/contact-me-form.tsx`)
- Contact form → Button primitive: uses button (evidence: `src/app/[locale]/components/contact-me-form.tsx`)
- Project case studies → Locale routing: selects locale
