# aaryansharmaa/smash-pro architecture

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

- Interactive diagram: https://gitdiagram.com/aaryansharmaa/smash-pro
- Repository: https://github.com/aaryansharmaa/smash-pro

## Overview

##### Main Components

A. Client-Side Layer
- Sub-components:
- Pages (app directory)
- UI Components (components directory)
- Client Hooks (hooks directory)

B. Server-Side Layer
- Next.js API routes
- SSR/SSG functionality

C. External Services
- Vercel Platform (hosting & deployment)
- Vercel Analytics & Speed Insights

##### Component Relationships

**[Client Browser] ←→ [Vercel Edge Network]**
- ↓
**[Next.js App Router]**
- ↓
**[Server Components] → [Static Generation]**
- ↓
**[External Services]**

##### Detailed Component Breakdown

A. UI Layer (Top Level)
- Hero Section
- Navigation
- Booking System
- FAQ Section
- Location Integration
- Footer

B. Feature Modules (Middle Level)
- Interactive Particle System
- Theming System
- SEO Module
- Analytics Module

##### Technical Details

A. Framework Stack:
- Next.js 13.5
- TypeScript
- Tailwind CSS
- Framer Motion
- Radix UI
- Shadcn UI

B. Build & Optimization:
- Build process flow
- Static/dynamic rendering decisions
- Client/server boundaries

**[Client Layer]**
- ↓
**[App Router Layer]**
- ↓
**[Server Components Layer]**
- ↓
**[External Services Layer]**

**[Core Features] → [UI Components] → [Optimization Features]**

##### Additional Elements

- Version numbers for major dependencies
- Critical user flows
- Data flow directions
- Caching mechanisms

Remember to:
- Use consistent symbols throughout
- A clear hierarchy of components
- Both synchronous and asynchronous connections
- Performance optimization points
- SEO integration points
- Analytics tracking points

## Diagram (Mermaid)

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

    subgraph NextApp["Next.js Application"]
        direction TB
        AppRouter["App Router"]:::router
        click AppRouter "https://github.com/aaryansharmaa/smash-pro/tree/main/app"
        
        subgraph UILayer["UI Components"]
            direction TB
            Hero["Hero Section"]:::ui
            click Hero "https://github.com/aaryansharmaa/smash-pro/blob/main/components/Hero.tsx"
            Nav["Navigation"]:::ui
            click Nav "https://github.com/aaryansharmaa/smash-pro/blob/main/components/Navbar.tsx"
            Book["Booking System"]:::ui
            click Book "https://github.com/aaryansharmaa/smash-pro/blob/main/components/Booking.tsx"
            FAQ["FAQ Section"]:::ui
            click FAQ "https://github.com/aaryansharmaa/smash-pro/blob/main/components/FAQ.tsx"
            Loc["Location Integration"]:::ui
            click Loc "https://github.com/aaryansharmaa/smash-pro/blob/main/components/Location.tsx"
            Foot["Footer"]:::ui
            click Foot "https://github.com/aaryansharmaa/smash-pro/blob/main/components/Footer.tsx"
        end

        subgraph Features["Feature Modules"]
            direction TB
            Particle["Interactive Particle System"]:::feature
            click Particle "https://github.com/aaryansharmaa/smash-pro/blob/main/components/ui/vortex.tsx"
            SEO["SEO Module"]:::feature
            click SEO "https://github.com/aaryansharmaa/smash-pro/blob/main/components/JsonLd.tsx"
            Analytics["Analytics Module"]:::feature
            Theme["Theming System"]:::feature
        end

        subgraph CoreComponents["Core Components"]
            direction TB
            Layout["Main Layout"]:::core
            click Layout "https://github.com/aaryansharmaa/smash-pro/blob/main/app/layout.tsx"
            Utils["Core Utils"]:::core
            click Utils "https://github.com/aaryansharmaa/smash-pro/blob/main/lib/utils.ts"
            UILib["UI Component Library"]:::core
            click UILib "https://github.com/aaryansharmaa/smash-pro/tree/main/components/ui"
            Hooks["Client Hooks"]:::core
            click Hooks "https://github.com/aaryansharmaa/smash-pro/tree/main/hooks"
        end

        subgraph Special["Special Features"]
            direction TB
            Sparkles["Sparkles Effect"]:::special
            click Sparkles "https://github.com/aaryansharmaa/smash-pro/blob/main/components/ui/sparkles.tsx"
            TypeWriter["Typewriter Effect"]:::special
            click TypeWriter "https://github.com/aaryansharmaa/smash-pro/blob/main/components/ui/typewriter-effect.tsx"
            Toast["Toast Notifications"]:::special
            click Toast "https://github.com/aaryansharmaa/smash-pro/blob/main/components/ui/toast.tsx"
        end
    end

    subgraph External["External Services"]
        direction TB
        Vercel["Vercel Platform"]
        VercelAnalytics["Vercel Analytics"]
        VercelInsights["Speed Insights"]
    end

    Browser <--> AppRouter
    AppRouter --> UILayer
    AppRouter --> Features
    AppRouter --> CoreComponents
    AppRouter --> Special
    NextApp --> External

    classDef router fill:#3b82f6,color:white
    classDef ui fill:#22c55e,color:white
    classDef feature fill:#a855f7,color:white
    classDef core fill:#64748b,color:white
    classDef special fill:#f97316,color:white
    classDef external fill:#6b7280,color:white

    %% Legend
    subgraph Legend
        direction TB
        R["Router"]:::router
        U["UI Components"]:::ui
        F["Features"]:::feature
        C["Core"]:::core
        S["Special Features"]:::special
        E["External Services"]:::external
    end
```
