# firinze/portfolio-template architecture

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

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

## Overview

This is a Next.js portfolio and personal-services site: visitors discover the creator and services, browse work and testimonials, read profile/blog content, then reach a contact form. The routes are page components, composed within a shared layout with navigation, footer, theme, and background UI. The source excerpts establish the home, portfolio, contact, carousel, and navigation relationships; profile/blog routes and several shell components are represented from the tree and SOURCE INDEX, so their internal links are not inferred.

Main entry points: [`components/ui/button.tsx`](https://github.com/firinze/portfolio-template/blob/master/components/ui/button.tsx) (Button component), [`lib/utils.ts`](https://github.com/firinze/portfolio-template/blob/master/lib/utils.ts) (Class utilities), [`app/layout.tsx`](https://github.com/firinze/portfolio-template/blob/master/app/layout.tsx) (Application shell), [`components/navbar.tsx`](https://github.com/firinze/portfolio-template/blob/master/components/navbar.tsx) (Navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site shell"]
  node_layout["Application shell<br/>[layout.tsx]"]
  node_navbar["Navigation<br/>[navbar.tsx]"]
  node_footer["Footer<br/>[footer.tsx]"]
  node_theme["Theme provider<br/>[theme-provider.tsx]"]
  node_gradient["Gradient background"]
end

subgraph group_discovery["Portfolio discovery"]
  node_home["Home and services<br/>[page.tsx]"]
  node_portfolio["Project portfolio<br/>[page.tsx]"]
  node_testimonials["Client testimonials"]
end

subgraph group_content["Profile and publishing"]
  node_aboutfr["French profile<br/>[page.tsx]"]
  node_abouten["English profile<br/>[page.tsx]"]
  node_blog["Blog index<br/>[page.tsx]"]
  node_post["Blog article<br/>[page.tsx]"]
  node_contact["Contact form<br/>[page.tsx]"]
end

subgraph group_interaction["Reusable UI"]
  node_button["Button component<br/>[button.tsx]"]
  node_badge["Badge component<br/>[badge.tsx]"]
  node_input["Input component<br/>[input.tsx]"]
  node_textarea["Textarea component<br/>[textarea.tsx]"]
  node_sheet["Mobile navigation sheet<br/>[sheet.tsx]"]
  node_mode["Theme toggle<br/>[mode-toggle.tsx]"]
  node_dropdown["Dropdown menu<br/>[dropdown-menu.tsx]"]
  node_utils["Class utilities<br/>[utils.ts]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens site"| node_layout
node_layout -->|"renders"| node_navbar
node_layout -->|"renders"| node_footer
node_layout -->|"wraps with"| node_theme
node_layout -->|"renders"| node_gradient
node_visitor -->|"views home"| node_home
node_visitor -->|"browses work"| node_portfolio
node_visitor -->|"submits inquiry"| node_contact
node_visitor -->|"views profile"| node_aboutfr
node_visitor -->|"views profile"| node_abouten
node_visitor -->|"browses posts"| node_blog
node_visitor -->|"reads article"| node_post
node_home -->|"renders"| node_testimonials
node_home -->|"uses"| node_button
node_portfolio -->|"uses"| node_button
node_portfolio -->|"tags with"| node_badge
node_contact -->|"uses"| node_button
node_contact -->|"collects fields"| node_input
node_contact -->|"collects message"| node_textarea
node_navbar -->|"uses"| node_button
node_navbar -->|"opens menu"| node_sheet
node_navbar -->|"renders toggle"| node_mode
node_mode -->|"uses"| node_button
node_mode -->|"uses"| node_dropdown
node_testimonials -->|"uses"| node_button
node_button -->|"merges classes"| node_utils
node_badge -->|"merges classes"| node_utils
node_input -->|"merges classes"| node_utils
node_textarea -->|"merges classes"| node_utils
node_sheet -->|"merges classes"| node_utils
node_dropdown -->|"merges classes"| node_utils

click node_layout "https://github.com/firinze/portfolio-template/blob/master/app/layout.tsx"
click node_navbar "https://github.com/firinze/portfolio-template/blob/master/components/navbar.tsx"
click node_footer "https://github.com/firinze/portfolio-template/blob/master/components/footer.tsx"
click node_theme "https://github.com/firinze/portfolio-template/blob/master/components/theme-provider.tsx"
click node_gradient "https://github.com/firinze/portfolio-template/blob/master/components/animated-gradient-background.tsx"
click node_home "https://github.com/firinze/portfolio-template/blob/master/app/page.tsx"
click node_portfolio "https://github.com/firinze/portfolio-template/blob/master/app/portfolio/page.tsx"
click node_testimonials "https://github.com/firinze/portfolio-template/blob/master/components/testimonial-carousel.tsx"
click node_aboutfr "https://github.com/firinze/portfolio-template/blob/master/app/a-propos/page.tsx"
click node_abouten "https://github.com/firinze/portfolio-template/blob/master/app/about/page.tsx"
click node_blog "https://github.com/firinze/portfolio-template/blob/master/app/blog/page.tsx"
click node_post "https://github.com/firinze/portfolio-template/blob/master/app/blog/%5Bslug%5D/page.tsx"
click node_contact "https://github.com/firinze/portfolio-template/blob/master/app/contact/page.tsx"
click node_button "https://github.com/firinze/portfolio-template/blob/master/components/ui/button.tsx"
click node_badge "https://github.com/firinze/portfolio-template/blob/master/components/ui/badge.tsx"
click node_input "https://github.com/firinze/portfolio-template/blob/master/components/ui/input.tsx"
click node_textarea "https://github.com/firinze/portfolio-template/blob/master/components/ui/textarea.tsx"
click node_sheet "https://github.com/firinze/portfolio-template/blob/master/components/ui/sheet.tsx"
click node_mode "https://github.com/firinze/portfolio-template/blob/master/components/mode-toggle.tsx"
click node_dropdown "https://github.com/firinze/portfolio-template/blob/master/components/ui/dropdown-menu.tsx"
click node_utils "https://github.com/firinze/portfolio-template/blob/master/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_layout,node_navbar,node_footer,node_theme,node_gradient toneBlue
class node_home,node_portfolio,node_testimonials toneAmber
class node_aboutfr,node_abouten,node_blog,node_post,node_contact toneMint
class node_button,node_badge,node_input,node_textarea,node_sheet,node_mode,node_dropdown,node_utils toneRose
class node_visitor toneIndigo
```

## Components

### Site shell

- [Application shell](https://github.com/firinze/portfolio-template/blob/master/app/layout.tsx): `app/layout.tsx`
- [Navigation](https://github.com/firinze/portfolio-template/blob/master/components/navbar.tsx): `components/navbar.tsx`
- [Footer](https://github.com/firinze/portfolio-template/blob/master/components/footer.tsx): `components/footer.tsx`
- [Theme provider](https://github.com/firinze/portfolio-template/blob/master/components/theme-provider.tsx): `components/theme-provider.tsx`
- [Gradient background](https://github.com/firinze/portfolio-template/blob/master/components/animated-gradient-background.tsx): `components/animated-gradient-background.tsx`

### Portfolio discovery

- [Home and services](https://github.com/firinze/portfolio-template/blob/master/app/page.tsx): `app/page.tsx`
- [Project portfolio](https://github.com/firinze/portfolio-template/blob/master/app/portfolio/page.tsx): `app/portfolio/page.tsx`
- [Client testimonials](https://github.com/firinze/portfolio-template/blob/master/components/testimonial-carousel.tsx): `components/testimonial-carousel.tsx`

### Profile and publishing

- [French profile](https://github.com/firinze/portfolio-template/blob/master/app/a-propos/page.tsx): `app/a-propos/page.tsx`
- [English profile](https://github.com/firinze/portfolio-template/blob/master/app/about/page.tsx): `app/about/page.tsx`
- [Blog index](https://github.com/firinze/portfolio-template/blob/master/app/blog/page.tsx): `app/blog/page.tsx`
- [Blog article](https://github.com/firinze/portfolio-template/blob/master/app/blog/%5Bslug%5D/page.tsx): `app/blog/[slug]/page.tsx`
- [Contact form](https://github.com/firinze/portfolio-template/blob/master/app/contact/page.tsx): `app/contact/page.tsx`

### Reusable UI

- [Button component](https://github.com/firinze/portfolio-template/blob/master/components/ui/button.tsx): `components/ui/button.tsx`
- [Badge component](https://github.com/firinze/portfolio-template/blob/master/components/ui/badge.tsx): `components/ui/badge.tsx`
- [Input component](https://github.com/firinze/portfolio-template/blob/master/components/ui/input.tsx): `components/ui/input.tsx`
- [Textarea component](https://github.com/firinze/portfolio-template/blob/master/components/ui/textarea.tsx): `components/ui/textarea.tsx`
- [Mobile navigation sheet](https://github.com/firinze/portfolio-template/blob/master/components/ui/sheet.tsx): `components/ui/sheet.tsx`
- [Theme toggle](https://github.com/firinze/portfolio-template/blob/master/components/mode-toggle.tsx): `components/mode-toggle.tsx`
- [Dropdown menu](https://github.com/firinze/portfolio-template/blob/master/components/ui/dropdown-menu.tsx): `components/ui/dropdown-menu.tsx`
- [Class utilities](https://github.com/firinze/portfolio-template/blob/master/lib/utils.ts): `lib/utils.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → Application shell: opens site (evidence: `README.md`)
- Application shell → Navigation: renders (evidence: `app/layout.tsx`)
- Application shell → Footer: renders (evidence: `app/layout.tsx`)
- Application shell → Theme provider: wraps with (evidence: `app/layout.tsx`)
- Application shell → Gradient background: renders (evidence: `app/layout.tsx`)
- Site visitor → Home and services: views home (evidence: `app/page.tsx`)
- Site visitor → Project portfolio: browses work (evidence: `app/portfolio/page.tsx`)
- Site visitor → Contact form: submits inquiry (evidence: `app/contact/page.tsx`)
- Site visitor → French profile: views profile (evidence: `app/a-propos/page.tsx`)
- Site visitor → English profile: views profile (evidence: `app/about/page.tsx`)
- Site visitor → Blog index: browses posts (evidence: `app/blog/page.tsx`)
- Site visitor → Blog article: reads article (evidence: `app/blog/[slug]/page.tsx`)
- Home and services → Client testimonials: renders (evidence: `app/page.tsx`)
- Home and services → Button component: uses (evidence: `app/page.tsx`)
- Project portfolio → Button component: uses (evidence: `app/portfolio/page.tsx`)
- Project portfolio → Badge component: tags with (evidence: `app/portfolio/page.tsx`)
- Contact form → Button component: uses (evidence: `app/contact/page.tsx`)
- Contact form → Input component: collects fields (evidence: `app/contact/page.tsx`)
- Contact form → Textarea component: collects message (evidence: `app/contact/page.tsx`)
- Navigation → Button component: uses (evidence: `components/navbar.tsx`)
- Navigation → Mobile navigation sheet: opens menu (evidence: `components/navbar.tsx`)
- Navigation → Theme toggle: renders toggle (evidence: `components/navbar.tsx`)
- Theme toggle → Button component: uses (evidence: `components/mode-toggle.tsx`)
- Theme toggle → Dropdown menu: uses (evidence: `components/mode-toggle.tsx`)
- Client testimonials → Button component: uses (evidence: `components/testimonial-carousel.tsx`)
- Button component → Class utilities: merges classes (evidence: `components/ui/button.tsx`)
- Badge component → Class utilities: merges classes (evidence: `components/ui/badge.tsx`)
- Input component → Class utilities: merges classes (evidence: `components/ui/input.tsx`)
- Textarea component → Class utilities: merges classes (evidence: `components/ui/textarea.tsx`)
- Mobile navigation sheet → Class utilities: merges classes (evidence: `components/ui/sheet.tsx`)
- Dropdown menu → Class utilities: merges classes (evidence: `components/ui/dropdown-menu.tsx`)
