# vkrish1707/brainwave architecture

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

- Interactive diagram: https://gitdiagram.com/vkrish1707/brainwave
- Repository: https://github.com/vkrish1707/brainwave

## Overview

##### Main System Components

A. Frontend Layer
- React/Next.js Application Core
- Component Structure
- Asset Management
- Styling System

##### Component Architecture Breakdown

**[Next.js Application]**

- [Core Components]
- Header
- Hero Section
- Benefits
- Services
- Pricing
- Roadmap
- Footer

- [Design System]
- SVG Components
- Button Components
- Layout Components

- [Asset Management]
- Images
- SVG Assets

- [Styling Layer]
- Tailwind CSS
- PostCSS

##### Key Relationships to Highlight

- How the design system components (src/components/design/) relate to their main component counterparts
- Relationship between SVG components and their usage in the main components
- Demonstrate how Tailwind CSS and PostCSS integrate with the component structure

##### Important Technical Elements

- Vite build system configuration
- ESLint integration
- Tailwind CSS configuration
- PostCSS processing pipeline

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Next.js Application"
        APP["Application Core"]
        ENTRY["Entry Point"]:::file
        MAIN["Main App"]:::file
        BUILD["Build Config"]:::file
    end

    subgraph "Core Components"
        CORE["Component Layer"]
        HEAD["Header"]:::file
        HERO["Hero Section"]:::file
        BEN["Benefits"]:::file
        SERV["Services"]:::file
        PRICE["Pricing"]:::file
        ROAD["Roadmap"]:::file
        FOOT["Footer"]:::file
    end

    subgraph "Design System"
        DESIGN["Design Components"]
        SVG["SVG Components"]:::directory
        BTN["Button Component"]:::file
        LAY["Layout Component"]:::file
        VAR["Design Variants"]:::directory
    end

    subgraph "Asset Management"
        ASSET["Asset Handler"]:::file
        BENASSET["Benefits Assets"]:::directory
        HEROASSET["Hero Assets"]:::directory
        SERVASSET["Services Assets"]:::directory
        PRICEASSET["Pricing Assets"]:::directory
        ROADASSET["Roadmap Assets"]:::directory
    end

    subgraph "Styling System"
        STYLE["Styling Layer"]
        TAIL["Tailwind CSS"]:::file
        POST["PostCSS"]:::file
        GLOB["Global Styles"]:::file
    end

    subgraph "Reusable Components"
        REUSE["Reusable Elements"]
        HEAD_C["Heading"]:::file
        TAG["Tagline"]:::file
        NOTIF["Notification"]:::file
        LOGOS["Company Logos"]:::file
    end

    subgraph "Configuration"
        CONFIG["Project Config"]
        CONST["Constants"]:::file
        ESLINT["ESLint Config"]:::file
        DEPLOY["Deploy Workflow"]:::file
    end

    %% Relationships
    APP --> ENTRY
    APP --> MAIN
    APP --> BUILD
    
    CORE --> HEAD
    CORE --> HERO
    CORE --> BEN
    CORE --> SERV
    CORE --> PRICE
    CORE --> ROAD
    CORE --> FOOT

    DESIGN --> SVG
    DESIGN --> BTN
    DESIGN --> LAY
    DESIGN --> VAR

    ASSET --> BENASSET
    ASSET --> HEROASSET
    ASSET --> SERVASSET
    ASSET --> PRICEASSET
    ASSET --> ROADASSET

    STYLE --> TAIL
    STYLE --> POST
    STYLE --> GLOB

    REUSE --> HEAD_C
    REUSE --> TAG
    REUSE --> NOTIF
    REUSE --> LOGOS

    CONFIG --> CONST
    CONFIG --> ESLINT
    CONFIG --> DEPLOY

    %% Component relationships
    CORE -.-> REUSE
    CORE -.-> DESIGN
    CORE -.-> ASSET
    STYLE --> CORE
    CONFIG --> APP

    %% Click events
    click ENTRY "https://github.com/vkrish1707/brainwave/blob/main/src/main.jsx"
    click MAIN "https://github.com/vkrish1707/brainwave/blob/main/src/App.jsx"
    click BUILD "https://github.com/vkrish1707/brainwave/blob/main/vite.config.js"
    click HEAD "https://github.com/vkrish1707/brainwave/blob/main/src/components/Header.jsx"
    click HERO "https://github.com/vkrish1707/brainwave/blob/main/src/components/Hero.jsx"
    click BEN "https://github.com/vkrish1707/brainwave/blob/main/src/components/Benefits.jsx"
    click SERV "https://github.com/vkrish1707/brainwave/blob/main/src/components/Services.jsx"
    click PRICE "https://github.com/vkrish1707/brainwave/blob/main/src/components/Pricing.jsx"
    click ROAD "https://github.com/vkrish1707/brainwave/blob/main/src/components/Roadmap.jsx"
    click FOOT "https://github.com/vkrish1707/brainwave/blob/main/src/components/Footer.jsx"
    click SVG "https://github.com/vkrish1707/brainwave/tree/main/src/assets/svg/"
    click BTN "https://github.com/vkrish1707/brainwave/blob/main/src/components/Button.jsx"
    click LAY "https://github.com/vkrish1707/brainwave/blob/main/src/components/Section.jsx"
    click VAR "https://github.com/vkrish1707/brainwave/tree/main/src/components/design/"
    click ASSET "https://github.com/vkrish1707/brainwave/blob/main/src/assets/index.js"
    click BENASSET "https://github.com/vkrish1707/brainwave/tree/main/src/assets/benefits/"
    click HEROASSET "https://github.com/vkrish1707/brainwave/tree/main/src/assets/hero/"
    click SERVASSET "https://github.com/vkrish1707/brainwave/tree/main/src/assets/services/"
    click PRICEASSET "https://github.com/vkrish1707/brainwave/tree/main/src/assets/pricing/"
    click ROADASSET "https://github.com/vkrish1707/brainwave/tree/main/src/assets/roadmap/"
    click TAIL "https://github.com/vkrish1707/brainwave/blob/main/tailwind.config.js"
    click POST "https://github.com/vkrish1707/brainwave/blob/main/postcss.config.js"
    click GLOB "https://github.com/vkrish1707/brainwave/blob/main/src/index.css"
    click CONST "https://github.com/vkrish1707/brainwave/blob/main/src/constants/index.js"
    click ESLINT "https://github.com/vkrish1707/brainwave/blob/main/.eslintrc.cjs"
    click DEPLOY "https://github.com/vkrish1707/brainwave/blob/main/.github/workflows/webpack.yml"
    click HEAD_C "https://github.com/vkrish1707/brainwave/blob/main/src/components/Heading.jsx"
    click TAG "https://github.com/vkrish1707/brainwave/blob/main/src/components/Tagline.jsx"
    click NOTIF "https://github.com/vkrish1707/brainwave/blob/main/src/components/Notification.jsx"
    click LOGOS "https://github.com/vkrish1707/brainwave/blob/main/src/components/CompanyLogos.jsx"

    classDef file fill:#f9f,stroke:#333,stroke-width:2px
    classDef directory fill:#bbf,stroke:#333,stroke-width:2px
    
    %% Legend
    subgraph Legend
        L1["File"]:::file
        L2["Directory"]:::directory
        L3["--> Direct Dependency"]
        L4["-.-> Indirect Dependency"]
    end
```
