# gyaanendra/aiswebsite-new architecture

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

- Interactive diagram: https://gitdiagram.com/gyaanendra/aiswebsite-new
- Repository: https://github.com/gyaanendra/aiswebsite-new

## Overview

##### Main Components

A. Client-Side Layer
- Next.js App Router Structure
- Page Components
- Shared Components
- Animation Systems
- Asset Management

B. Build & Development Infrastructure
- Next.js Build System
- Development Server
- Static Asset Pipeline

##### Component Breakdown

a) Core Application Structure (Top Level):
- App Router architecture (app directory)
- Relationship between pages and layouts

b) Feature Modules (Second Level):
Create distinct sections for:
- Home Module (/app/home)
- About Us Module (/app/aboutus)
- Project Module (/app/project)

c) Component Layer (Third Level):
Shared components with their relationships:
- Global Components
- GlassNavbar
- CustomCursor
- GrainBackground
- BlurText
- Animation Components
- SplashCursor
- AnimatedGradient
- Particles
- LandingAnimation
- ParticleBackground

d) Asset Management (Fourth Level):
- Public Assets (.glb files)
- Styling (CSS modules, Tailwind)

##### Specific Implementation Details

**[Next.js Application Container]**
- [App Router Layer]
- [Pages]
- Home
- About Us
- Project
- [Layout]

- [Component Layer]
- Global Components
- Animation Systems
- Feature-Specific Components

- [Asset Layer]
- 3D Models
- Styling

##### Technical Stack Indicators

- Next.js
- React
- Tailwind CSS
- Three.js (implied by .glb files)
- TypeScript

##### Data Flow Visualization

- Component composition flow
- Animation trigger paths
- Asset loading patterns
- Style application flow

Remember to:
- Use consistent spacing and alignment
- Notes for any complex interactions
- Build-time vs. runtime relationships

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Next.js Application"
        AppRouter["App Router"]:::router
        click AppRouter "https://github.com/Gyaanendra/aiswebsite-new/tree/main/app"

        subgraph "Pages"
            Home["Home Page"]:::page
            AboutUs["About Us Page"]:::page
            Project["Project Page"]:::page
            RootLayout["Root Layout"]:::layout
            click Home "https://github.com/Gyaanendra/aiswebsite-new/blob/main/app/home/page.tsx"
            click AboutUs "https://github.com/Gyaanendra/aiswebsite-new/blob/main/app/aboutus/page.tsx"
            click Project "https://github.com/Gyaanendra/aiswebsite-new/blob/main/app/project/page.tsx"
            click RootLayout "https://github.com/Gyaanendra/aiswebsite-new/blob/main/app/layout.tsx"
        end

        subgraph "Global Components"
            GlassNav["GlassNavbar"]:::component
            CustomCursor["CustomCursor"]:::component
            GrainBg["GrainBackground"]:::component
            BlurText["BlurText"]:::component
            click GlassNav "https://github.com/Gyaanendra/aiswebsite-new/blob/main/components/global/GlassNavbar.jsx"
            click CustomCursor "https://github.com/Gyaanendra/aiswebsite-new/blob/main/components/global/CustomCursor.jsx"
            click GrainBg "https://github.com/Gyaanendra/aiswebsite-new/blob/main/components/global/GrainBackground.jsx"
            click BlurText "https://github.com/Gyaanendra/aiswebsite-new/blob/main/components/global/BlurText.jsx"
        end

        subgraph "Animation System"
            SplashCursor["SplashCursor"]:::animation
            AnimGradient["AnimatedGradient"]:::animation
            Particles["Particles"]:::animation
            LandingAnim["LandingAnimation"]:::animation
            ParticleBg["ParticleBackground"]:::animation
            click SplashCursor "https://github.com/Gyaanendra/aiswebsite-new/blob/main/Animations/SplashCursor/SplashCursor.jsx"
            click AnimGradient "https://github.com/Gyaanendra/aiswebsite-new/blob/main/components/AnimatedGradient.tsx"
            click Particles "https://github.com/Gyaanendra/aiswebsite-new/blob/main/components/Particles.tsx"
            click LandingAnim "https://github.com/Gyaanendra/aiswebsite-new/blob/main/components/home/LandingAnimation.jsx"
            click ParticleBg "https://github.com/Gyaanendra/aiswebsite-new/blob/main/components/home/ParticleBackground.jsx"
        end

        subgraph "Assets & Configuration"
            Models["3D Models (.glb)"]:::asset
            GlobalCSS["globals.css"]:::styling
            NextConfig["next.config.ts"]:::config
            TailwindConfig["tailwind.config.ts"]:::config
            TSConfig["tsconfig.json"]:::config
            click Models "https://github.com/Gyaanendra/aiswebsite-new/tree/main/public"
            click GlobalCSS "https://github.com/Gyaanendra/aiswebsite-new/blob/main/app/globals.css"
            click NextConfig "https://github.com/Gyaanendra/aiswebsite-new/blob/main/next.config.ts"
            click TailwindConfig "https://github.com/Gyaanendra/aiswebsite-new/blob/main/tailwind.config.ts"
            click TSConfig "https://github.com/Gyaanendra/aiswebsite-new/blob/main/tsconfig.json"
        end
    end

    %% Relationships
    AppRouter --> Home & AboutUs & Project
    AppRouter --> RootLayout
    RootLayout --> GlassNav & CustomCursor & GrainBg
    Home --> LandingAnim & ParticleBg
    Home & AboutUs & Project --> BlurText
    LandingAnim --> AnimGradient
    ParticleBg --> Particles
    CustomCursor --> SplashCursor

    %% Styling
    classDef router fill:#4A90E2,stroke:#2E5B99,stroke-width:2px
    classDef page fill:#67B8DE,stroke:#4A90E2,stroke-width:2px
    classDef layout fill:#9B59B6,stroke:#8E44AD,stroke-width:2px
    classDef component fill:#F39C12,stroke:#D35400,stroke-width:2px
    classDef animation fill:#2ECC71,stroke:#27AE60,stroke-width:2px
    classDef asset fill:#95A5A6,stroke:#7F8C8D,stroke-width:2px
    classDef config fill:#E74C3C,stroke:#C0392B,stroke-width:2px
    classDef styling fill:#1ABC9C,stroke:#16A085,stroke-width:2px
```
