# shalomma/monitor-ai-nextjs-landing-page architecture

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

- Interactive diagram: https://gitdiagram.com/shalomma/monitor-ai-nextjs-landing-page
- Repository: https://github.com/shalomma/monitor-ai-nextjs-landing-page

## Overview

##### Main Components

A. Frontend Layer
- Marketing Pages (Route Group)
- Home page
- Privacy Policy
- Terms
- Authentication Pages (Route Group)
- Login
- Signup
- Component Library
- UI Components (Chakra UI/Saas UI based)
- Motion Components
- Layout Components

B. API Layer
- ClickUp Integration (/api/clickup)
- Authentication Handlers

C. Data Layer
- Configuration Files
- Content Management
- FAQ
- Pricing
- Testimonials
- App Configuration

##### Specific Elements

**[Client Layer]**
- App Router (Next.js)
- Marketing Routes ((marketing) group)
- Auth Routes ((auth) group)
- Components
- Layout Components
- Header
- Footer
- Navigation
- Feature Components
- Hero
- Features
- Pricing
- Testimonials
- Motion Components
- Animations

**[API Layer]**
- API Routes
- ClickUp Integration
- Authentication Handlers

**[Data Layer]**
- Configuration
- Site Config
- Theme
- Typography
- Content
- FAQ Data
- Pricing Data
- Testimonials Data

##### Important Architectural Patterns to Highlight

- Route Groups Pattern (shown by (auth) and (marketing) directories)
- Component-Driven Architecture (organized component structure)
- Theme System (Chakra UI integration)
- API Route Handler Pattern (Next.js API routes)

##### Technical Stack Indicators

- Next.js (App Router)
- Chakra UI
- Saas UI
- TypeScript
- External Services (ClickUp)

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        AppRouter["Next.js App Router"]
        
        subgraph Routes
            Marketing["Marketing Routes"]
            Auth["Authentication Routes"]
            
            HomePage["Home Page"]:::page
            Privacy["Privacy Policy"]:::page
            Terms["Terms"]:::page
            
            Login["Login"]:::page
            Signup["Signup"]:::page
            
            Marketing --> HomePage
            Marketing --> Privacy
            Marketing --> Terms
            
            Auth --> Login
            Auth --> Signup
        end
        
        subgraph Components
            Layout["Layout Components"]
            Feature["Feature Components"]
            Motion["Motion Components"]
            
            Header["Header"]:::component
            Footer["Footer"]:::component
            Nav["Navigation"]:::component
            Logo["Logo"]:::component
            
            Hero["Hero"]:::component
            Features["Features"]:::component
            Pricing["Pricing"]:::component
            Testimonials["Testimonials"]:::component
            FAQ["FAQ"]:::component
            
            BoxAnim["Box Animation"]:::component
            FallInPlace["Fall In Place"]:::component
            Float["Float Animation"]:::component
            PageTransition["Page Transition"]:::component
            
            Layout --> Header
            Layout --> Footer
            Layout --> Nav
            Layout --> Logo
            
            Feature --> Hero
            Feature --> Features
            Feature --> Pricing
            Feature --> Testimonials
            Feature --> FAQ
            
            Motion --> BoxAnim
            Motion --> FallInPlace
            Motion --> Float
            Motion --> PageTransition
        end
    end
    
    subgraph API
        ClickUpAPI["ClickUp Integration"]:::api
        AuthHandlers["Authentication Handlers"]:::api
    end
    
    subgraph Data
        Config["Site Configuration"]:::data
        ThemeSystem["Theme System"]:::data
        Typography["Typography"]:::data
        ContentData["Content Management"]:::data
        
        FAQData["FAQ Data"]:::data
        PricingData["Pricing Data"]:::data
        TestimonialsData["Testimonials Data"]:::data
        AppConfig["App Configuration"]:::data
        
        ContentData --> FAQData
        ContentData --> PricingData
        ContentData --> TestimonialsData
        ContentData --> AppConfig
    end
    
    AppRouter --> Routes
    AppRouter --> Components
    Routes -.-> API
    Components -.-> API
    API -.-> Data
    Components -.-> Data
    
    %% Click Events
    click Marketing "https://github.com/shalomma/monitor-ai-nextjs-landing-page/tree/main/app/(marketing)/"
    click HomePage "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/app/(marketing)/page.tsx"
    click Privacy "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/app/(marketing)/privacy-policy/page.tsx"
    click Terms "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/app/(marketing)/terms/page.tsx"
    click Auth "https://github.com/shalomma/monitor-ai-nextjs-landing-page/tree/main/app/(auth)/"
    click Login "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/app/(auth)/login/page.tsx"
    click Signup "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/app/(auth)/signup/page.tsx"
    click Layout "https://github.com/shalomma/monitor-ai-nextjs-landing-page/tree/main/components/layout/"
    click Header "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/layout/header.tsx"
    click Footer "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/layout/footer.tsx"
    click Nav "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/layout/navigation.tsx"
    click Logo "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/layout/logo.tsx"
    click Hero "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/hero/hero.tsx"
    click Features "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/features/features.tsx"
    click Pricing "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/pricing/pricing.tsx"
    click Testimonials "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/testimonials/testimonials.tsx"
    click FAQ "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/faq/faq.tsx"
    click Motion "https://github.com/shalomma/monitor-ai-nextjs-landing-page/tree/main/components/motion/"
    click BoxAnim "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/motion/box.tsx"
    click FallInPlace "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/motion/fall-in-place.tsx"
    click Float "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/motion/float.tsx"
    click PageTransition "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/components/motion/page-transition.tsx"
    click ClickUpAPI "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/app/api/clickup/route.ts"
    click Config "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/data/config.tsx"
    click FAQData "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/data/faq.tsx"
    click PricingData "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/data/pricing.tsx"
    click TestimonialsData "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/data/testimonials.tsx"
    click AppConfig "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/data/appulse.tsx"
    click ThemeSystem "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/theme/index.ts"
    click Typography "https://github.com/shalomma/monitor-ai-nextjs-landing-page/blob/main/theme/foundations/typography.ts"
    
    %% Styles
    classDef page fill:#2B6CB0,color:white
    classDef component fill:#805AD5,color:white
    classDef api fill:#38A169,color:white
    classDef data fill:#DD6B20,color:white
    
    %% Legend
    subgraph Legend
        Page["Page Component"]:::page
        Comp["UI Component"]:::component
        APIRoute["API Route"]:::api
        DataStore["Data Store"]:::data
    end
```
