# edonisth/odin-recipes architecture

> Architecture diagram of the GitHub repository edonisth/odin-recipes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/edonisth/odin-recipes
- Repository: https://github.com/edonisth/odin-recipes

## Overview

##### Main Components

a. Static Web Server Component
- This as a central rectangle labeled "Static Web Server"
- This handles serving the HTML and CSS files

b. Client-Side Components
- HTML Structure (index.html and recipe pages)
- CSS Styling (style.css)

c. File Structure Component
- Hierarchical relationship between pages

##### Connection Flows

Specific relationships:
- Lines connecting index.html to individual recipe pages

##### Detailed Component Breakdown

Index Page (index.html):
- Entry point to the application
- Links to individual recipes

Recipe Pages:
- chicken-makhani.html
- pasta-pesto.html
- steak.html

Styling:
- style.css applying globally

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        Browser[Web Browser]:::client
    end

    subgraph Server
        StaticServer[Static Web Server]:::server
    end

    subgraph "Project Structure"
        Index["index.html"]:::html
        Style["style.css"]:::css

        subgraph "Recipes"
            ChickenMakhani["chicken-makhani.html"]:::html
            PastaPesto["pasta-pesto.html"]:::html
            Steak["steak.html"]:::html
        end
    end

    StaticServer --> Browser
    Browser --> Index
    Index --> ChickenMakhani
    Index --> PastaPesto
    Index --> Steak
    Style -.-> Index
    Style -.-> ChickenMakhani
    Style -.-> PastaPesto
    Style -.-> Steak

    %% Click Events
    click Index "https://github.com/edonisth/odin-recipes/blob/main/index.html"
    click Style "https://github.com/edonisth/odin-recipes/blob/main/style.css"
    click ChickenMakhani "https://github.com/edonisth/odin-recipes/blob/main/recipes/chicken-makhani.html"
    click PastaPesto "https://github.com/edonisth/odin-recipes/blob/main/recipes/pasta-pesto.html"
    click Steak "https://github.com/edonisth/odin-recipes/blob/main/recipes/steak.html"

    %% Styling
    classDef html fill:#2196F3,stroke:#000,color:#fff
    classDef css fill:#9C27B0,stroke:#000,color:#fff
    classDef server fill:#4CAF50,stroke:#000,color:#fff
    classDef client fill:#FFA726,stroke:#000,color:#fff

    %% Legend
    subgraph Legend
        HTML[HTML Pages]:::html
        CSS[CSS Styling]:::css
        ServerComp[Server Component]:::server
        ClientComp[Client Component]:::client
        Navigation["--> Navigation"]
        Styling["-.-> Styling"]
    end
```
