# vairan37/my-portfolio architecture

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

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

## Overview

This repository is a Next.js personal portfolio. Visitors land on the home page, which composes the header, a main area of portfolio sections, and the footer; the project section displays project data and opens detail dialogs, while contact links lead to social profiles, email, and a downloadable CV. The graph also preserves the navigation, appearance controls, background, scroll-to-top behavior, and shared UI components. Relationships are based on shown imports or calls; unsampled component behavior is not inferred.

Main entry points: [`components/layout/Main.jsx`](https://github.com/vairan37/my-portfolio/blob/main/components/layout/Main.jsx) (Main composition), [`components/sections/Contact.jsx`](https://github.com/vairan37/my-portfolio/blob/main/components/sections/Contact.jsx) (Contact section), [`components/layout/Header.jsx`](https://github.com/vairan37/my-portfolio/blob/main/components/layout/Header.jsx) (Header), [`components/sections/Projets.jsx`](https://github.com/vairan37/my-portfolio/blob/main/components/sections/Projets.jsx) (Projects section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_composition["Page composition"]
  node_home["Home page<br/>[page.tsx]"]
  node_site_layout["Site layout<br/>[layout.tsx]"]
  node_main["Main composition<br/>[Main.jsx]"]
  node_header["Header<br/>[Header.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_content["Portfolio content"]
  node_about["About section<br/>[AboutMe.jsx]"]
  node_welcome["Welcome section<br/>[Accueil.jsx]"]
  node_projects["Projects section<br/>[Projets.jsx]"]
  node_project_card["Project card<br/>[Projet.jsx]"]
  node_project_data["Project data<br/>[projets.json]"]
  node_contact["Contact section<br/>[Contact.jsx]"]
  node_cv["CV download"]
end

subgraph group_controls["Navigation and appearance"]
  node_nav["Navigation<br/>[Nav.jsx]"]
  node_language["Language option<br/>[Langue.jsx]"]
  node_theme["Theme option<br/>[Theme.jsx]"]
  node_theme_provider["Theme provider<br/>[theme-provider.tsx]"]
  node_background["Background<br/>[Background.tsx]"]
  node_scroll_top["Scroll to top<br/>[ScrollToTop.tsx]"]
end

subgraph group_ui["Shared UI"]
  node_button["Button<br/>[button.tsx]"]
  node_card["Card<br/>[card.tsx]"]
  node_badge["Badge<br/>[badge.tsx]"]
  node_dialog["Dialog<br/>[dialog.tsx]"]
  node_dropdown["Dropdown menu<br/>[dropdown-menu.tsx]"]
  node_flower["Flower icon<br/>[FlowerIcon.jsx]"]
end

node_visitor(("Visitor"))
node_github(("GitHub"))
node_linkedin(("LinkedIn"))
node_email(("Email"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_header
node_home -->|"renders"| node_main
node_home -->|"renders"| node_footer
node_site_layout -->|"configures"| node_theme_provider
node_main -->|"renders"| node_welcome
node_main -->|"renders"| node_about
node_main -->|"renders"| node_projects
node_main -->|"renders"| node_contact
node_main -->|"renders"| node_background
node_main -->|"renders"| node_scroll_top
node_header -->|"renders"| node_nav
node_header -->|"renders"| node_language
node_header -->|"renders"| node_theme
node_header -->|"renders"| node_flower
node_footer -->|"renders"| node_nav
node_footer -->|"uses"| node_button
node_welcome -->|"renders"| node_flower
node_projects -->|"reads"| node_project_data
node_projects -->|"renders"| node_project_card
node_projects -->|"opens"| node_dialog
node_projects -->|"uses"| node_badge
node_project_card -->|"uses"| node_card
node_project_card -->|"uses"| node_badge
node_contact -->|"uses"| node_card
node_contact -->|"uses"| node_button
node_contact -->|"links"| node_github
node_contact -->|"links"| node_linkedin
node_contact -->|"links"| node_email
node_contact -->|"downloads"| node_cv
node_language -->|"uses"| node_button
node_language -->|"uses"| node_dropdown
node_theme -->|"uses"| node_button
node_theme -->|"uses"| node_dropdown
node_scroll_top -->|"uses"| node_button

click node_home "https://github.com/vairan37/my-portfolio/blob/main/app/page.tsx"
click node_site_layout "https://github.com/vairan37/my-portfolio/blob/main/app/layout.tsx"
click node_main "https://github.com/vairan37/my-portfolio/blob/main/components/layout/Main.jsx"
click node_header "https://github.com/vairan37/my-portfolio/blob/main/components/layout/Header.jsx"
click node_footer "https://github.com/vairan37/my-portfolio/blob/main/components/layout/Footer.jsx"
click node_about "https://github.com/vairan37/my-portfolio/blob/main/components/sections/AboutMe.jsx"
click node_welcome "https://github.com/vairan37/my-portfolio/blob/main/components/sections/Accueil.jsx"
click node_projects "https://github.com/vairan37/my-portfolio/blob/main/components/sections/Projets.jsx"
click node_project_card "https://github.com/vairan37/my-portfolio/blob/main/components/sections/Projet.jsx"
click node_project_data "https://github.com/vairan37/my-portfolio/blob/main/data/projets.json"
click node_contact "https://github.com/vairan37/my-portfolio/blob/main/components/sections/Contact.jsx"
click node_cv "https://github.com/vairan37/my-portfolio/blob/main/public/documents/CV-Raveau-Victor.pdf"
click node_nav "https://github.com/vairan37/my-portfolio/blob/main/components/layout/Nav.jsx"
click node_language "https://github.com/vairan37/my-portfolio/blob/main/components/ui/Option/Langue.jsx"
click node_theme "https://github.com/vairan37/my-portfolio/blob/main/components/ui/Option/Theme.jsx"
click node_theme_provider "https://github.com/vairan37/my-portfolio/blob/main/components/layout/theme-provider.tsx"
click node_background "https://github.com/vairan37/my-portfolio/blob/main/components/ui/Background.tsx"
click node_scroll_top "https://github.com/vairan37/my-portfolio/blob/main/components/ui/ScrollToTop.tsx"
click node_button "https://github.com/vairan37/my-portfolio/blob/main/components/ui/button.tsx"
click node_card "https://github.com/vairan37/my-portfolio/blob/main/components/ui/card.tsx"
click node_badge "https://github.com/vairan37/my-portfolio/blob/main/components/ui/badge.tsx"
click node_dialog "https://github.com/vairan37/my-portfolio/blob/main/components/ui/dialog.tsx"
click node_dropdown "https://github.com/vairan37/my-portfolio/blob/main/components/ui/dropdown-menu.tsx"
click node_flower "https://github.com/vairan37/my-portfolio/blob/main/components/ui/icons/FlowerIcon.jsx"

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_site_layout,node_main,node_header,node_footer toneBlue
class node_about,node_welcome,node_projects,node_project_card,node_project_data,node_contact,node_cv toneAmber
class node_nav,node_language,node_theme,node_theme_provider,node_background,node_scroll_top toneMint
class node_button,node_card,node_badge,node_dialog,node_dropdown,node_flower toneRose
class node_visitor,node_github,node_linkedin,node_email toneIndigo
```

## Components

### Page composition

- [Home page](https://github.com/vairan37/my-portfolio/blob/main/app/page.tsx): `app/page.tsx`
- [Site layout](https://github.com/vairan37/my-portfolio/blob/main/app/layout.tsx): `app/layout.tsx`
- [Main composition](https://github.com/vairan37/my-portfolio/blob/main/components/layout/Main.jsx): `components/layout/Main.jsx`
- [Header](https://github.com/vairan37/my-portfolio/blob/main/components/layout/Header.jsx): `components/layout/Header.jsx`
- [Footer](https://github.com/vairan37/my-portfolio/blob/main/components/layout/Footer.jsx): `components/layout/Footer.jsx`

### Portfolio content

- [About section](https://github.com/vairan37/my-portfolio/blob/main/components/sections/AboutMe.jsx): `components/sections/AboutMe.jsx`
- [Welcome section](https://github.com/vairan37/my-portfolio/blob/main/components/sections/Accueil.jsx): `components/sections/Accueil.jsx`
- [Projects section](https://github.com/vairan37/my-portfolio/blob/main/components/sections/Projets.jsx): `components/sections/Projets.jsx`
- [Project card](https://github.com/vairan37/my-portfolio/blob/main/components/sections/Projet.jsx): `components/sections/Projet.jsx`
- [Project data](https://github.com/vairan37/my-portfolio/blob/main/data/projets.json): `data/projets.json`
- [Contact section](https://github.com/vairan37/my-portfolio/blob/main/components/sections/Contact.jsx): `components/sections/Contact.jsx`
- [CV download](https://github.com/vairan37/my-portfolio/blob/main/public/documents/CV-Raveau-Victor.pdf): `public/documents/CV-Raveau-Victor.pdf`

### Navigation and appearance

- [Navigation](https://github.com/vairan37/my-portfolio/blob/main/components/layout/Nav.jsx): `components/layout/Nav.jsx`
- [Language option](https://github.com/vairan37/my-portfolio/blob/main/components/ui/Option/Langue.jsx): `components/ui/Option/Langue.jsx`
- [Theme option](https://github.com/vairan37/my-portfolio/blob/main/components/ui/Option/Theme.jsx): `components/ui/Option/Theme.jsx`
- [Theme provider](https://github.com/vairan37/my-portfolio/blob/main/components/layout/theme-provider.tsx): `components/layout/theme-provider.tsx`
- [Background](https://github.com/vairan37/my-portfolio/blob/main/components/ui/Background.tsx): `components/ui/Background.tsx`
- [Scroll to top](https://github.com/vairan37/my-portfolio/blob/main/components/ui/ScrollToTop.tsx): `components/ui/ScrollToTop.tsx`

### Shared UI

- [Button](https://github.com/vairan37/my-portfolio/blob/main/components/ui/button.tsx): `components/ui/button.tsx`
- [Card](https://github.com/vairan37/my-portfolio/blob/main/components/ui/card.tsx): `components/ui/card.tsx`
- [Badge](https://github.com/vairan37/my-portfolio/blob/main/components/ui/badge.tsx): `components/ui/badge.tsx`
- [Dialog](https://github.com/vairan37/my-portfolio/blob/main/components/ui/dialog.tsx): `components/ui/dialog.tsx`
- [Dropdown menu](https://github.com/vairan37/my-portfolio/blob/main/components/ui/dropdown-menu.tsx): `components/ui/dropdown-menu.tsx`
- [Flower icon](https://github.com/vairan37/my-portfolio/blob/main/components/ui/icons/FlowerIcon.jsx): `components/ui/icons/FlowerIcon.jsx`

### Other components

- **Visitor**
- **GitHub**
- **LinkedIn**
- **Email**

## Connections

- Visitor → Home page: opens (evidence: `README.md`)
- Home page → Header: renders (evidence: `app/page.tsx`)
- Home page → Main composition: renders (evidence: `app/page.tsx`)
- Home page → Footer: renders (evidence: `app/page.tsx`)
- Site layout → Theme provider: configures (evidence: `app/layout.tsx`)
- Main composition → Welcome section: renders (evidence: `components/layout/Main.jsx`)
- Main composition → About section: renders (evidence: `components/layout/Main.jsx`)
- Main composition → Projects section: renders (evidence: `components/layout/Main.jsx`)
- Main composition → Contact section: renders (evidence: `components/layout/Main.jsx`)
- Main composition → Background: renders (evidence: `components/layout/Main.jsx`)
- Main composition → Scroll to top: renders (evidence: `components/layout/Main.jsx`)
- Header → Navigation: renders (evidence: `components/layout/Header.jsx`)
- Header → Language option: renders (evidence: `components/layout/Header.jsx`)
- Header → Theme option: renders (evidence: `components/layout/Header.jsx`)
- Header → Flower icon: renders (evidence: `components/layout/Header.jsx`)
- Footer → Navigation: renders (evidence: `components/layout/Footer.jsx`)
- Footer → Button: uses (evidence: `components/layout/Footer.jsx`)
- Welcome section → Flower icon: renders (evidence: `components/sections/Accueil.jsx`)
- Projects section → Project data: reads (evidence: `components/sections/Projets.jsx`)
- Projects section → Project card: renders (evidence: `components/sections/Projets.jsx`)
- Projects section → Dialog: opens (evidence: `components/sections/Projets.jsx`)
- Projects section → Badge: uses (evidence: `components/sections/Projets.jsx`)
- Project card → Card: uses (evidence: `components/sections/Projet.jsx`)
- Project card → Badge: uses (evidence: `components/sections/Projet.jsx`)
- Contact section → Card: uses (evidence: `components/sections/Contact.jsx`)
- Contact section → Button: uses (evidence: `components/sections/Contact.jsx`)
- Contact section → GitHub: links (evidence: `components/sections/Contact.jsx`)
- Contact section → LinkedIn: links (evidence: `components/sections/Contact.jsx`)
- Contact section → Email: links (evidence: `components/sections/Contact.jsx`)
- Contact section → CV download: downloads (evidence: `components/sections/Contact.jsx`)
- Language option → Button: uses (evidence: `components/ui/Option/Langue.jsx`)
- Language option → Dropdown menu: uses (evidence: `components/ui/Option/Langue.jsx`)
- Theme option → Button: uses (evidence: `components/ui/Option/Theme.jsx`)
- Theme option → Dropdown menu: uses (evidence: `components/ui/Option/Theme.jsx`)
- Scroll to top → Button: uses (evidence: `components/ui/ScrollToTop.tsx`)
