# dragee-io/dragee-website architecture

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

- Interactive diagram: https://gitdiagram.com/dragee-io/dragee-website
- Repository: https://github.com/dragee-io/dragee-website

## Overview

##### Main Components

a. Frontend Architecture (Primary Focus)
- Static Site Generator (Astro.js)
- UI Component Library (Atomic Design Structure)
- Internationalization System
- Asset Management
- Build System

##### Component Organization

**Top Level (Application Layer)**
- Pages Layer
- Organisms Layer
- Molecules Layer
- Atoms Layer

##### Specific Elements

a. Core Infrastructure
- Astro.js as the foundation
- Build pipeline
- I18n system

- Atoms (Basic components):
- Button
- Typography
- Molecules (Composite components):
- Dragee
- SimpleCommandLine
- TextBlockWithColorfullTitle
- Organisms (Complex components):
- Hero
- PageHeader
- DrageeAsserts
- DrageeDraws

c. Asset Management
- Static assets
- Styles

##### Key Relationships to Highlight

- How pages compose organisms
- Demonstrate how organisms utilize molecules
- Molecule composition from atoms
- I18n integration points
- Style system implementation

##### Implementation Details

- Build Configuration (astro.config.mjs)
- Type System (TypeScript configuration)
- Style System (global.css)
- Internationalization (i18n folder structure)

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Infrastructure
        Astro[Astro.js Static Site Generator]
        Config[Build Configuration]:::config
        TypeSystem[Type System]:::types
        StyleSystem[Style System]:::styles
        I18N[Internationalization]:::i18n
        Assets[Asset Management]:::assets
    end

    subgraph "Page Layer"
        MainPage[Main Page]:::page
        Layout[HTML Skeleton Layout]:::layout
    end

    subgraph "Organisms Layer"
        Hero[Hero]:::organism
        PageHeader[Page Header]:::organism
        DrageeAsserts[Dragee Asserts]:::organism
        DrageeDraws[Dragee Draws]:::organism
    end

    subgraph "Molecules Layer"
        Dragee[Dragee]:::molecule
        SimpleCmd[Simple Command Line]:::molecule
        TextBlock[Text Block With Colorful Title]:::molecule
    end

    subgraph "Atoms Layer"
        Button[Button]:::atom
        Icons[Icons]:::atom
        Typography[Typography]:::atom
    end

    %% Infrastructure Relationships
    Astro --> Config
    Astro --> TypeSystem
    Astro --> StyleSystem
    Astro --> I18N
    Astro --> Assets

    %% Page Composition
    MainPage --> Layout
    MainPage --> Hero
    MainPage --> PageHeader
    MainPage --> DrageeAsserts
    MainPage --> DrageeDraws

    %% Organism Composition
    Hero --> Dragee
    Hero --> TextBlock
    PageHeader --> SimpleCmd
    DrageeAsserts --> TextBlock
    DrageeDraws --> TextBlock

    %% Molecule Composition
    Dragee --> Button
    Dragee --> Typography
    SimpleCmd --> Typography
    SimpleCmd --> Icons
    TextBlock --> Typography

    %% Style Definitions
    classDef config fill:#9bf,stroke:#333
    classDef types fill:#f9f,stroke:#333
    classDef styles fill:#ff9,stroke:#333
    classDef i18n fill:#9f9,stroke:#333
    classDef assets fill:#f99,stroke:#333
    classDef page fill:#99f,stroke:#333
    classDef layout fill:#969,stroke:#333
    classDef organism fill:#6b6,stroke:#333
    classDef molecule fill:#b66,stroke:#333
    classDef atom fill:#66b,stroke:#333

    %% Click Events
    click Config "https://github.com/dragee-io/dragee-website/blob/main/astro.config.mjs"
    click TypeSystem "https://github.com/dragee-io/dragee-website/blob/main/tsconfig.json"
    click StyleSystem "https://github.com/dragee-io/dragee-website/blob/main/src/styles/global.css"
    click I18N "https://github.com/dragee-io/dragee-website/blob/main/src/i18n/fr.json"
    click Assets "https://github.com/dragee-io/dragee-website/tree/main/src/assets"
    click Layout "https://github.com/dragee-io/dragee-website/blob/main/src/layouts/HtmlSkeleton.astro"
    click Button "https://github.com/dragee-io/dragee-website/blob/main/src/ui/atoms/button.astro"
    click Icons "https://github.com/dragee-io/dragee-website/blob/main/src/ui/atoms/icons.astro"
    click Typography "https://github.com/dragee-io/dragee-website/blob/main/src/ui/atoms/typography.astro"
    click Dragee "https://github.com/dragee-io/dragee-website/blob/main/src/ui/molecules/dragee.astro"
    click SimpleCmd "https://github.com/dragee-io/dragee-website/blob/main/src/ui/molecules/simpleCommandLine.astro"
    click TextBlock "https://github.com/dragee-io/dragee-website/blob/main/src/ui/molecules/textBlockWithColorfullTitle.astro"
    click Hero "https://github.com/dragee-io/dragee-website/blob/main/src/ui/organisms/hero.astro"
    click PageHeader "https://github.com/dragee-io/dragee-website/blob/main/src/ui/organisms/pageHeader.astro"
    click DrageeAsserts "https://github.com/dragee-io/dragee-website/blob/main/src/ui/organisms/drageeAsserts.astro"
    click DrageeDraws "https://github.com/dragee-io/dragee-website/blob/main/src/ui/organisms/drageeDraws.astro"
    click MainPage "https://github.com/dragee-io/dragee-website/blob/main/src/pages/index.astro"
```
