# jamesatomc/kanari-web architecture

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

- Interactive diagram: https://gitdiagram.com/jamesatomc/kanari-web
- Repository: https://github.com/jamesatomc/kanari-web

## Overview

##### Project Type Analysis
This is a Next.js-based frontend web application with a modern React architecture using the App Router pattern. The project appears to be a website for Kanari Foundation with various sections including a media kit, privacy policy, and newsletter functionality.

##### Main Components

A. Client-Side Layer:
- Common web technologies (HTML, CSS, JavaScript)

B. Next.js Application Layer (Main Container):
1. Page Components (Top Section):
- Home Page (page.tsx)
- Kanari Foundation Page
- Media Kit Page
- Privacy Policy Page

2. Shared Components (Middle Section):
- Navigation (Navbar)
- Hero Section
- Newsletter Section
- Latest Updates
- VC Section
- Official Channels
- Footer

3. Asset Management (Bottom Section):
- Static Files (public folder)
- Styles (CSS modules)

C. Build & Configuration Layer:
- Next.js Config
- TypeScript Config
- Tailwind CSS
- PostCSS
- ESLint

**┌─────────────────────────────────────────────────────┐**
- Client Browser                      │
- ┘
- ↕
**┌─────────────────────────────────────────────────────┐**
- Next.js Application Layer              │
- ┌─────────────────────────────────────────────────┐ │
- Page Components                    │ │
- [Home] [KanariFoundation] [MediaKit] [Privacy] │ │
- ┘ │
- ┌─────────────────────────────────────────────────┐ │
- Shared Components                    │ │
- [Navbar] [HeroSection] [Newsletter] ...      │ │
- ┘ │
- ┌─────────────────────────────────────────────────┐ │
- Asset Management                     │ │
- ┘ │
- ┘
- ↕
**┌─────────────────────────────────────────────────────┐**
- Build & Configuration Layer               │
- ┘

##### Important Elements to Highlight
- App Router structure (/app directory)
- Component hierarchy
- Static asset handling
- Style management (combination of Tailwind and CSS modules)

##### Special Attention Areas
- The Section directory structure and its relationship with other components
- The separation between page components and shared components
- The integration of various styling approaches (CSS modules, Tailwind)
- The public assets handling

Remember to include version information for key technologies:
- Next.js
- React
- TypeScript
- Tailwind CSS

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Client["Client Layer"]
        Browser["Web Browser"]:::client
    end

    subgraph NextApp["Next.js Application Layer"]
        subgraph Pages["Page Components"]
            Home["Home Page"]:::page
            KanariFoundation["Kanari Foundation"]:::page
            MediaKit["Media Kit"]:::page
            Privacy["Privacy Policy"]:::page
        end

        subgraph Components["Shared Components"]
            Nav["Navigation"]:::component
            Hero["Hero Section"]:::component
            Newsletter["Newsletter Section"]:::component
            Updates["Latest Updates"]:::component
            VC["VC Section"]:::component
            Channels["Official Channels"]:::component
            FooterComp["Footer"]:::component
        end

        subgraph Assets["Asset Management"]
            Static["Static Files"]:::asset
            Styles["Global Styles"]:::asset
        end
    end

    subgraph Config["Build & Configuration Layer"]
        NextConfig["Next.js Config"]:::config
        TSConfig["TypeScript Config"]:::config
        TailwindConfig["Tailwind CSS Config"]:::config
        PostCSSConfig["PostCSS Config"]:::config
        ESLintConfig["ESLint Config"]:::config
    end

    Browser <--> NextApp
    NextApp <--> Config

    %% Click events for component mapping
    click Home "https://github.com/jamesatomc/kanari-web/blob/main/src/app/page.tsx"
    click KanariFoundation "https://github.com/jamesatomc/kanari-web/blob/main/src/app/KanariFoundation/page.tsx"
    click MediaKit "https://github.com/jamesatomc/kanari-web/blob/main/src/app/MediaKit/page.tsx"
    click Privacy "https://github.com/jamesatomc/kanari-web/blob/main/src/app/privacypolicy/page.tsx"
    click Nav "https://github.com/jamesatomc/kanari-web/blob/main/src/app/Section/body/Navbar.tsx"
    click Hero "https://github.com/jamesatomc/kanari-web/blob/main/src/app/HeroSection.tsx"
    click Newsletter "https://github.com/jamesatomc/kanari-web/blob/main/src/app/Section/NewsletterSection.tsx"
    click Updates "https://github.com/jamesatomc/kanari-web/blob/main/src/app/Section/LatestUpdates.tsx"
    click VC "https://github.com/jamesatomc/kanari-web/blob/main/src/app/Section/VCSection.tsx"
    click Channels "https://github.com/jamesatomc/kanari-web/blob/main/src/app/Section/OfficialChannels.tsx"
    click FooterComp "https://github.com/jamesatomc/kanari-web/blob/main/src/app/Section/body/Footer.tsx"
    click Static "https://github.com/jamesatomc/kanari-web/tree/main/public/"
    click Styles "https://github.com/jamesatomc/kanari-web/blob/main/src/app/globals.css"
    click NextConfig "https://github.com/jamesatomc/kanari-web/blob/main/next.config.mjs"
    click TSConfig "https://github.com/jamesatomc/kanari-web/blob/main/tsconfig.json"
    click TailwindConfig "https://github.com/jamesatomc/kanari-web/blob/main/tailwind.config.ts"
    click PostCSSConfig "https://github.com/jamesatomc/kanari-web/blob/main/postcss.config.js"
    click ESLintConfig "https://github.com/jamesatomc/kanari-web/blob/main/.eslintrc.json"

    %% Styling
    classDef client fill:#2196F3,color:white
    classDef page fill:#4CAF50,color:white
    classDef component fill:#FF9800,color:white
    classDef asset fill:#9C27B0,color:white
    classDef config fill:#757575,color:white

    %% Legend
    subgraph Legend
        ClientLegend["Client-Side"]:::client
        PageLegend["Pages"]:::page
        ComponentLegend["Components"]:::component
        AssetLegend["Assets"]:::asset
        ConfigLegend["Configuration"]:::config
    end
```
