# mohan2002/melinia-web architecture

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

- Interactive diagram: https://gitdiagram.com/mohan2002/melinia-web
- Repository: https://github.com/mohan2002/melinia-web

## Overview

##### Main Components

A. Frontend Layer
- Next.js Application Container
- Page Components
- Common Components
- Static Assets

B. Client-Side Infrastructure
- Routing System
- API Routes
- Static File Serving

##### Detailed Breakdown

a) Core Application Structure:
- Following sub-containers:
- Pages Container (routing layer)
- Components Container (reusable UI elements)
- API Routes Container
- Public Assets Container

b) Page Routes Layer:
- Home (index.js)
- Committee (committee.js)
- Developers (developers.js)
- Events section with sub-routes:
- Technical Events
- Non-Technical Events
- Workshops
- Hackathon

c) Components Layer:
- Navigation Components (Navbar, DrawerNav)
- Event-related Components (EventCard, EventDetailsCard, etc.)
- UI Components (Banner, Countdown, ParticleComponent)
- Information Components (AboutMelinia, ChiefGuest, Sponsors)

d) Static Assets:
- A "Public Assets" section for images and documents

##### Connection Flows

- Client-side navigation between pages
- Component composition relationships
- API route calls
- Static asset usage

##### Additional Elements

- A "Build & Deploy" section showing:
- Next.js configuration
- Vercel deployment
- ESLint integration

##### Notes for Implementation

- Hierarchical structure of event pages
- Reusable component architecture
- Particle system and interactive elements

##### Technical Stack Indicators

- Next.js Framework
- React Components
- CSS Modules
- Client-side API routes

Remember to include notes about:
- Component reusability
- Routing structure
- Static and dynamic rendering capabilities
- Asset management
- Development tooling integration

This will provide a comprehensive view of the Melinia web application's architecture while maintaining clarity and usefulness for development team members.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Next.js Application"
        NextApp["Next.js Container"]
        
        subgraph "Pages Layer"
            Pages["Pages Container"]:::pages
            click Pages "https://github.com/mohan2002/melinia-web/tree/main/pages"
            
            Home["Home Page"]:::page
            click Home "https://github.com/mohan2002/melinia-web/blob/main/pages/index.js"
            Committee["Committee Page"]:::page
            click Committee "https://github.com/mohan2002/melinia-web/blob/main/pages/committee.js"
            Developers["Developers Page"]:::page
            click Developers "https://github.com/mohan2002/melinia-web/blob/main/pages/developers.js"
            
            subgraph "Events Section"
                TechEvents["Technical Events"]:::page
                click TechEvents "https://github.com/mohan2002/melinia-web/tree/main/pages/events/technical"
                NonTechEvents["Non-Technical Events"]:::page
                click NonTechEvents "https://github.com/mohan2002/melinia-web/tree/main/pages/events/nontechnical"
                Workshops["Workshops"]:::page
                click Workshops "https://github.com/mohan2002/melinia-web/blob/main/pages/events/workshop.js"
                Hackathon["Hackathon"]:::page
                click Hackathon "https://github.com/mohan2002/melinia-web/blob/main/pages/events/hackathon.js"
            end
        end
        
        subgraph "Common Components"
            NavComponents["Navigation Components"]
            EventComponents["Event Components"]
            UIComponents["UI Components"]
            InfoComponents["Information Components"]
            
            Navbar["Navbar"]:::component
            click Navbar "https://github.com/mohan2002/melinia-web/blob/main/common/components/navbar/Navbar.js"
            DrawerNav["DrawerNav"]:::component
            click DrawerNav "https://github.com/mohan2002/melinia-web/blob/main/common/components/navbar/DrawerNav.js"
            
            EventCard["EventCard"]:::component
            click EventCard "https://github.com/mohan2002/melinia-web/blob/main/common/components/EventCard.js"
            EventDetailsCard["EventDetailsCard"]:::component
            click EventDetailsCard "https://github.com/mohan2002/melinia-web/blob/main/common/components/EventDetailsCard.js"
            EventBanner["EventBanner"]:::component
            click EventBanner "https://github.com/mohan2002/melinia-web/blob/main/common/components/EventBanner.js"
            EventRewards["EventRewards"]:::component
            click EventRewards "https://github.com/mohan2002/melinia-web/blob/main/common/components/EventRewards.js"
            EventRule["EventRule"]:::component
            click EventRule "https://github.com/mohan2002/melinia-web/blob/main/common/components/EventRule.js"
            EventsGrid["EventsGrid"]:::component
            click EventsGrid "https://github.com/mohan2002/melinia-web/blob/main/common/components/EventsGrid.js"
            
            Banner["Banner"]:::component
            click Banner "https://github.com/mohan2002/melinia-web/blob/main/common/components/Banner.js"
            Countdown["Countdown"]:::component
            click Countdown "https://github.com/mohan2002/melinia-web/blob/main/common/components/Countdown.js"
            ParticleComponent["ParticleComponent"]:::component
            click ParticleComponent "https://github.com/mohan2002/melinia-web/blob/main/common/components/ParticleComponent.js"
            
            AboutMelinia["AboutMelinia"]:::component
            click AboutMelinia "https://github.com/mohan2002/melinia-web/blob/main/common/components/AboutMelinia.js"
            ChiefGuest["ChiefGuest"]:::component
            click ChiefGuest "https://github.com/mohan2002/melinia-web/blob/main/common/components/ChiefGuest.js"
            Sponsors["Sponsors"]:::component
            click Sponsors "https://github.com/mohan2002/melinia-web/blob/main/common/components/Sponsors.js"
            ConnectUs["ConnectUs"]:::component
            click ConnectUs "https://github.com/mohan2002/melinia-web/blob/main/common/components/ConnectUs.js"
        end
        
        subgraph "Infrastructure"
            APIRoutes["API Routes"]:::api
            click APIRoutes "https://github.com/mohan2002/melinia-web/tree/main/pages/api"
            StaticAssets["Static Assets"]:::assets
            click StaticAssets "https://github.com/mohan2002/melinia-web/tree/main/public/images"
            Styles["Styling"]:::styles
            click Styles "https://github.com/mohan2002/melinia-web/tree/main/styles"
            Config["Configuration"]:::config
            click Config "https://github.com/mohan2002/melinia-web/blob/main/next.config.js"
            DataLayer["Data Layer"]:::data
            click DataLayer "https://github.com/mohan2002/melinia-web/blob/main/common/utils/data.js"
        end
    end
    
    %% Relationships
    NextApp --> Pages
    NextApp --> APIRoutes
    Pages --> Home
    Pages --> Committee
    Pages --> Developers
    Pages --> TechEvents
    Pages --> NonTechEvents
    Pages --> Workshops
    Pages --> Hackathon
    
    NavComponents --> Navbar
    NavComponents --> DrawerNav
    
    EventComponents --> EventCard
    EventComponents --> EventDetailsCard
    EventComponents --> EventBanner
    EventComponents --> EventRewards
    EventComponents --> EventRule
    EventComponents --> EventsGrid
    
    UIComponents --> Banner
    UIComponents --> Countdown
    UIComponents --> ParticleComponent
    
    InfoComponents --> AboutMelinia
    InfoComponents --> ChiefGuest
    InfoComponents --> Sponsors
    InfoComponents --> ConnectUs
    
    %% Styling
    classDef page fill:#4A90E2,stroke:#2171C7,color:white
    classDef pages fill:#2171C7,stroke:#0D47A1,color:white
    classDef component fill:#2ECC71,stroke:#27AE60,color:white
    classDef api fill:#F1C40F,stroke:#F39C12,color:black
    classDef assets fill:#9B59B6,stroke:#8E44AD,color:white
    classDef styles fill:#E74C3C,stroke:#C0392B,color:white
    classDef config fill:#34495E,stroke:#2C3E50,color:white
    classDef data fill:#1ABC9C,stroke:#16A085,color:white
```
