# thuilliercolin/culinaireexplore architecture

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

- Interactive diagram: https://gitdiagram.com/thuilliercolin/culinaireexplore
- Repository: https://github.com/thuilliercolin/culinaireexplore

## Overview

##### Main Application Structure

a. Core Application Layer
- Vite's development server and build tools
- Main entry points (index.html, main.jsx, App.jsx)

b. Key Architectural Layers (organize vertically from top to bottom):

##### Routing/Pages Layer
- Home
- Concept
- GourmetNotebook
- Team
- Contact
(Represent as a router container with page components)

##### Shared Components Layer (organize into groups)
UI Components:
- Bento
- Carousel
- MapComponent
- Timeline
- SplitScreen variants

Form Components:
- NumberPicker
- Select

##### Data & Constants Layer
- Data stores (countries.json)
- Constants (bento.js, engagements.js, gourmetNotebook.js)

##### Important Relationships to Highlight

- How pages utilize shared components
- Theme context flow through the application
- Demonstrate asset usage (images, fonts) connections
- Routing relationships between pages

##### Technical Stack Indicators

A "Technologies Used" section showing:
- React
- Vite
- Tailwind CSS
- ESLint
- PostCSS

##### Development Tooling

Development environment components:
- Vite Dev Server
- Hot Module Replacement (HMR)
- Build Pipeline

##### Component Reusability
- How UI components are shared across pages
- Modular structure of the application

##### Asset Management
- An assets container showing organization of images and fonts
- How these are utilized by components

##### Routing Structure
- Demonstrate the single-page application (SPA) architecture
- Route relationships between pages

##### State Management
- While no explicit state management library is visible, show component-level state flow

- Maintaining appropriate spacing between components
- Using hierarchical layout to show relationships

This will provide a comprehensive view of the application's architecture while maintaining clarity and usefulness for development team members.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Core
        Entry[index.html]
        Main[main.jsx]
        App[App.jsx]
        Entry --> Main
        Main --> App
    end

    subgraph Layout
        Navbar[Navbar]
        Footer[Footer]
        Theme[Theme Toggle]
        App --> Navbar
        App --> Footer
        App --> Theme
    end

    subgraph Pages
        Home[Home]
        Concept[Concept]
        GourmetNB[GourmetNotebook]
        Team[Team]
        Contact[Contact]
        App --> Home & Concept & GourmetNB & Team & Contact
    end

    subgraph "UI Components"
        Bento[Bento]
        Carousel[Carousel]
        Map[MapComponent]
        Timeline[Timeline]
        SplitScreen[SplitScreen]
        SplitMobile[SplitScreenMobile]
        SplitTwo[SplitWithTwoImg]
    end

    subgraph "Form Components"
        NumberPicker[NumberPicker]
        Select[Select]
    end

    subgraph "Data & Constants"
        Countries[countries.json]
        BentoConst[bento.js]
        Engagements[engagements.js]
        GourmetConst[gourmetNotebook.js]
    end

    subgraph Assets
        Fonts[Fonts]
        Images[Images]
        SVG[SVG]
    end

    Home --> Bento & Carousel
    Concept --> Map & Timeline
    GourmetNB --> SplitScreen & SplitMobile & SplitTwo
    Contact --> NumberPicker & Select

    BentoConst --> Bento
    Engagements --> Timeline
    GourmetConst --> GourmetNB
    Countries --> Map

    classDef core fill:#e1f5fe,stroke:#01579b
    classDef layout fill:#e8f5e9,stroke:#2e7d32
    classDef pages fill:#fff3e0,stroke:#ef6c00
    classDef ui fill:#f3e5f5,stroke:#7b1fa2
    classDef form fill:#fce4ec,stroke:#c2185b
    classDef data fill:#fff8e1,stroke:#ffa000
    classDef assets fill:#e8eaf6,stroke:#3f51b5

    class Entry,Main,App core
    class Navbar,Footer,Theme layout
    class Home,Concept,GourmetNB,Team,Contact pages
    class Bento,Carousel,Map,Timeline,SplitScreen,SplitMobile,SplitTwo ui
    class NumberPicker,Select form
    class Countries,BentoConst,Engagements,GourmetConst data
    class Fonts,Images,SVG assets

    click Entry "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/index.html"
    click Main "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/main.jsx"
    click App "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/App.jsx"
    click Navbar "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/layout/Navbar.jsx"
    click Footer "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/layout/Footer.jsx"
    click Theme "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/layout/ToogleTheme.jsx"
    click Home "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/pages/Home/Home.jsx"
    click Concept "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/pages/Concept/Concept.jsx"
    click GourmetNB "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/pages/GourmetNotebook/GourmetNotebook.jsx"
    click Team "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/pages/Team/Team.jsx"
    click Contact "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/pages/Contact/Contact.jsx"
    click Bento "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/components/ui/Bento.jsx"
    click Carousel "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/components/ui/Carousel.jsx"
    click Map "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/components/ui/MapComponent.jsx"
    click Timeline "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/components/ui/Timeline/Timeline.jsx"
    click SplitScreen "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/components/ui/SplitScreen.jsx"
    click SplitMobile "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/components/ui/SplitScreenMobile.jsx"
    click SplitTwo "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/components/ui/SplitWithTwoImg.jsx"
    click NumberPicker "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/components/forms/NumberPicker.jsx"
    click Select "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/components/forms/Select.jsx"
    click Countries "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/data/countries.json"
    click BentoConst "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/constants/bento.js"
    click Engagements "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/constants/engagements.js"
    click GourmetConst "https://github.com/THUILLIERColin/CulinaireExplore/blob/main/src/constants/gourmetNotebook.js"
    click Fonts "https://github.com/THUILLIERColin/CulinaireExplore/tree/main/src/assets/fonts"
    click Images "https://github.com/THUILLIERColin/CulinaireExplore/tree/main/src/assets/img"
    click SVG "https://github.com/THUILLIERColin/CulinaireExplore/tree/main/src/assets/svg"
```
