# shinazbinshajahan/hash2.0-website architecture

> Architecture diagram of the GitHub repository shinazbinshajahan/hash2.0-website, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shinazbinshajahan/hash2.0-website
- Repository: https://github.com/shinazbinshajahan/hash2.0-website

## Overview

##### Main Components
- Frontend Application: Represent the core Next.js application that includes pages, layout, and UI components. This includes the main entry points like src/app/page.tsx (landing page), src/app/layout.tsx, and src/app/events/page.tsx.
- UI Components: Group the reusable components found in src/app/_components (e.g., About.tsx, EventSlider.tsx, EventsPage.tsx, Gridmotion.tsx, Header.tsx, landing.tsx) as well as the UI utilities in src/app/_components/ui.
- Data Source: Include the JSON file (src/app/data/events.json) that provides dynamic data for the website (e.g., event details).
- Public Assets: Illustrate the public folder which contains static assets like images or media (e.g., public/band, public/events) that support the visual aspects of the site.
- Configuration & Build Tools: Show ancillary components such as next.config.ts, tailwind.config.ts, tsconfig.json, postcss.config.mjs, and eslint.config.mjs that configure the build, linting, and styling pipelines.

##### Relationships and Interactions
- Static Assets: Illustrate how the front-end components refer to the images and media stored in the public directory.
- Configurations: Link the configuration files to the build and runtime environment indicating they influence project structure and functionality (e.g., how Tailwind CSS and Next.js configurations affect styling and routing).

##### Architectural Patterns and Principles
- Next.js Routing and Component-based Architecture: Emphasize how the Next.js file structure (src/app) corresponds to the page routes.
- Separation of Concerns: Distinguish between UI components/app logic and static data/assets.
- Use of Modern Frontend Techniques: Note the integration of Tailwind CSS for styling and the modular design with individual React components.

##### Relevant Technologies
- React and Next.js for rendering and routing.
- Tailwind CSS for styling, supported by its own config file.
- JSON data for dynamic content.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Global Entities
    Browser("User Browser"):::frontend

    %% Frontend Application
    subgraph "Frontend Application"
        Layout("Layout (src/app/layout.tsx)"):::frontend
        LP("Landing Page (src/app/page.tsx)"):::frontend
        EP("Events Page (src/app/events/page.tsx)"):::frontend
    end

    %% UI Components
    subgraph "UI Components"
        subgraph "Reusable Components"
            About("About Component (About.tsx)"):::components
            ES("EventSlider Component (EventSlider.tsx)"):::components
            EPComp("EventsPage Component (EventsPage.tsx)"):::components
            Grid("Gridmotion Component (Gridmotion.tsx)"):::components
            Header("Header Component (Header.tsx)"):::components
            LandingComp("Landing Component (landing.tsx)"):::components
        end
        subgraph "UI Utilities"
            Decrypt("Decrypted Text Utility (decryptedText.tsx)"):::components
        end
    end

    %% Data Source
    Data("Events Data (src/app/data/events.json)"):::data

    %% Public Assets
    subgraph "Public Assets"
        Assets("Public Folder"):::assets
    end

    %% Configuration & Build Tools
    subgraph "Configuration & Build Tools"
        NextConf("Next.js Config (next.config.ts)"):::config
        TailConf("Tailwind Config (tailwind.config.ts)"):::config
        TSConf("TypeScript Config (tsconfig.json)"):::config
        PostCSS("PostCSS Config (postcss.config.mjs)"):::config
        ESLint("ESLint Config (eslint.config.mjs)"):::config
    end

    %% Relationships - Frontend Application and Routing
    Browser -->|"accesses"| Layout
    Layout -->|"renders"| LP
    Layout -->|"renders"| EP

    %% Relationships - UI Components Composition
    LP -->|"composes"| Header
    LP -->|"composes"| About
    LP -->|"composes"| LandingComp
    EP -->|"composes"| ES
    EP -->|"composes"| EPComp
    EP -->|"composes"| Grid

    %% Relationships - Data Flow
    ES -->|"fetchesDataFrom"| Data
    EPComp -->|"fetchesDataFrom"| Data

    %% Relationships - Static Assets
    Header -->|"loadsAssetsFrom"| Assets
    ES -->|"loadsAssetsFrom"| Assets
    About -->|"loadsAssetsFrom"| Assets

    %% Relationships - Configuration Influence
    NextConf -->|"influences"| Layout
    TailConf -->|"influences"| Layout
    TSConf -->|"influences"| Layout
    PostCSS -->|"influences"| Layout
    ESLint -->|"influences"| Layout

    %% Styles
    classDef frontend fill:#ADD8E6,stroke:#000,stroke-width:2px;
    classDef components fill:#90EE90,stroke:#000,stroke-width:2px;
    classDef data fill:#FFFFE0,stroke:#000,stroke-width:2px;
    classDef assets fill:#FFD700,stroke:#000,stroke-width:2px;
    classDef config fill:#D3D3D3,stroke:#000,stroke-width:2px;

    %% Click Events
    click LP "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/src/app/page.tsx"
    click EP "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/src/app/events/page.tsx"
    click Layout "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/src/app/layout.tsx"
    click About "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/src/app/_components/About.tsx"
    click ES "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/src/app/_components/EventSlider.tsx"
    click EPComp "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/src/app/_components/EventsPage.tsx"
    click Grid "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/src/app/_components/Gridmotion.tsx"
    click Header "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/src/app/_components/Header.tsx"
    click LandingComp "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/src/app/_components/landing.tsx"
    click Decrypt "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/src/app/_components/ui/decryptedText.tsx"
    click Data "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/src/app/data/events.json"
    click Assets "https://github.com/shinazbinshajahan/hash2.0-website/tree/main/public"
    click NextConf "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/next.config.ts"
    click TailConf "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/tailwind.config.ts"
    click TSConf "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/tsconfig.json"
    click PostCSS "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/postcss.config.mjs"
    click ESLint "https://github.com/shinazbinshajahan/hash2.0-website/blob/main/eslint.config.mjs"
```
