# lemix7/fable architecture

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

- Interactive diagram: https://gitdiagram.com/lemix7/fable
- Repository: https://github.com/lemix7/fable

## Overview

##### Project Type Analysis
This is a single-page application (SPA) built with React, focusing on the frontend presentation layer with modern animation and styling technologies.

##### Main Components

A. Client-Side Architecture (Primary Focus)
- Inside this container, create sections for:
- Core Application Layer (App.jsx, main.jsx)
- Component Layer (all components from src/components)
- Asset Management (src/assets)
- Styling System (Tailwind CSS configuration)

B. External Services/Libraries Layer
- GSAP Animation System
- Headroom.js
- Lenis (Smooth Scroll)
- Tailwind CSS

**┌─────────────────────────────────────────────┐**
- Client Browser                 │
- ┘
- ↓
**┌─────────────────────────────────────────────┐**
- React Application                │
- ┌─────────────┐  ┌────────────────────┐   │
- Core Layer │  │  Component Layer   │   │
- ┘  └────────────────────┘   │
- ┌─────────────┐  ┌────────────────────┐   │
- Assets    │  │  Styling System    │   │
- ┘  └────────────────────┘   │
- ┘
- ↕
**┌─────────────────────────────────────────────┐**
- External Libraries/Services         │
- ┘

##### Detailed Component Breakdown

Core Layer (Blue):
- main.jsx (Application entry point)
- App.jsx (Root component)

Component Layer (Green):
- NavBar
- Hero
- Features
- FeatureCard
- Testimonials
- Cta
- Footer

Configuration Layer (Gray):
- vite.config.js
- tailwind.config.js
- postcss.config.js
- eslint.config.js

##### Important Relationships

- Component hierarchy with Hero, Features, etc., as children of App.jsx
- Tailwind CSS influence on all components
- GSAP animations affecting relevant components
- Headroom.js interaction with NavBar component
- Lenis smooth scroll affecting the entire application

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client["Client Browser"]
        Browser
    end

    subgraph React["React Application"]
        subgraph Core["Core Application Layer"]
            Main["Main Entry Point"]:::core
            App["App Root Component"]:::core
            Main --> App
        end

        subgraph Components["Component Layer"]
            Nav["Navigation Bar"]:::component
            Hero["Hero Section"]:::component
            Feat["Features Section"]:::component
            FCard["Feature Card"]:::component
            Test["Testimonials"]:::component
            CTA["Call to Action"]:::component
            Footer["Footer"]:::component
            
            App --> Nav
            App --> Hero
            App --> Feat
            Feat --> FCard
            App --> Test
            App --> CTA
            App --> Footer
        end

        subgraph Assets["Asset Management"]
            Images["Images & Media"]:::asset
            Styles["Global Styles"]:::asset
        end

        subgraph Config["Configuration Layer"]
            Vite["Vite Config"]:::config
            Tailwind["Tailwind Config"]:::config
            PostCSS["PostCSS Config"]:::config
            ESLint["ESLint Config"]:::config
        end
    end

    subgraph External["External Libraries/Services"]
        GSAP["GSAP Animation"]:::external
        Headroom["Headroom.js"]:::external
        Lenis["Lenis Smooth Scroll"]:::external
        TailwindCSS["Tailwind CSS"]:::external
    end

    Browser --> Main
    TailwindCSS --> Components
    GSAP --> Components
    Headroom --> Nav
    Lenis --> React

    %% Click Events
    click Main "https://github.com/lemix7/Fable/blob/main/src/main.jsx"
    click App "https://github.com/lemix7/Fable/blob/main/src/App.jsx"
    click Nav "https://github.com/lemix7/Fable/blob/main/src/components/NavBar.jsx"
    click Hero "https://github.com/lemix7/Fable/blob/main/src/components/Hero.jsx"
    click Feat "https://github.com/lemix7/Fable/blob/main/src/components/Features.jsx"
    click FCard "https://github.com/lemix7/Fable/blob/main/src/components/FeatureCard.jsx"
    click Test "https://github.com/lemix7/Fable/blob/main/src/components/Testimonials.jsx"
    click CTA "https://github.com/lemix7/Fable/blob/main/src/components/Cta.jsx"
    click Footer "https://github.com/lemix7/Fable/blob/main/src/components/Footer.jsx"
    click Assets "https://github.com/lemix7/Fable/tree/main/src/assets"
    click Styles "https://github.com/lemix7/Fable/blob/main/src/index.css"
    click Tailwind "https://github.com/lemix7/Fable/blob/main/tailwind.config.js"
    click PostCSS "https://github.com/lemix7/Fable/blob/main/postcss.config.js"
    click Vite "https://github.com/lemix7/Fable/blob/main/vite.config.js"
    click ESLint "https://github.com/lemix7/Fable/blob/main/eslint.config.js"

    %% Styling
    classDef core fill:#2196F3,stroke:#1565C0,color:white
    classDef component fill:#4CAF50,stroke:#2E7D32,color:white
    classDef external fill:#9C27B0,stroke:#6A1B9A,color:white
    classDef asset fill:#FF9800,stroke:#EF6C00,color:white
    classDef config fill:#9E9E9E,stroke:#616161,color:white

    %% Legend
    subgraph Legend
        L1["Core Components"]:::core
        L2["UI Components"]:::component
        L3["External Services"]:::external
        L4["Assets"]:::asset
        L5["Configuration"]:::config
    end
```
