# ceres2808/ec-iot-website architecture

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

- Interactive diagram: https://gitdiagram.com/ceres2808/ec-iot-website
- Repository: https://github.com/ceres2808/ec-iot-website

## Overview

##### Project type and purpose
- This is a Next.js-based static or server-side rendered website (“ec-iot-website”) built in the new App Router paradigm (app/ directory), using React components for each page and shared UI pieces. Its purpose is to present information about the Ec-IoT group: pages for home, about, achievements, events, members, projects, contact, etc.

##### File structure
- Top-level directories/files:
- app/ — Next.js App Router folder containing your page routes (app/pages/*.jsx), shared components (app/components/*.jsx), global stylesheet, and layout/page root files.
- public/ — static assets (video.mp4, desktop.ini placeholder).
- jsconfig.json, next.config.mjs, postcss.config.mjs — configure path aliases, Next.js behavior, PostCSS.
- package.json / package-lock.json — Node dependencies (React, Next.js, etc.).
- Patterns & architecture:
- File-system routing via app/pages.
- Component-based design under app/components (Navbar, Footer, FaceCard, Members).
- Global CSS in app/globals.css.
- Build / deploy pipeline implied (Next.js build → static HTML & JS bundles).

##### README
- Minimal; confirms “Ec-IoT Website.” No additional architectural details.

##### Detailed breakdown to capture all elements
- At the top, show “Git Repository (GitHub)” → CI/CD pipeline → “Next.js Build” → “Deployment to CDN.”
- In the Next.js Build block, show sub-blocks:
- app/layout.js (root layout)
- app/page.js (homepage)
- app/pages/*.jsx (other pages)
- app/components/*.jsx (shared UI)
- app/globals.css & postcss.config.mjs
- Then to “User Browser” which fetches assets and hydrates via React.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Pipeline
    GitRepo["Git Repository (GitHub)"]:::pipeline
    CI["CI/CD Pipeline"]:::pipeline
    Build["Next.js Build"]:::pipeline

    %% Build Code
    subgraph "Next.js Build Artifacts"
        direction TB
        subgraph "App Router Code"
            direction TB
            Layout["Root Layout (app/layout.js)"]:::frontend
            click Layout "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/layout.js"
            RootPage["Root Page (app/page.js)"]:::frontend
            click RootPage "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/page.js"
            subgraph "Page Routes"
                direction TB
                Home["Home (app/pages/home.jsx)"]:::frontend
                click Home "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/pages/home.jsx"
                About["About (app/pages/about.jsx)"]:::frontend
                click About "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/pages/about.jsx"
                Achievements["Achievements (app/pages/achievements.jsx)"]:::frontend
                click Achievements "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/pages/achievements.jsx"
                Events["Events (app/pages/events.jsx)"]:::frontend
                click Events "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/pages/events.jsx"
                MembersPage["Members (app/pages/members.jsx)"]:::frontend
                click MembersPage "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/pages/members.jsx"
                Projects["Projects (app/pages/projects.jsx)"]:::frontend
                click Projects "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/pages/projects.jsx"
                Contact["Contact (app/pages/contact.jsx)"]:::frontend
                click Contact "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/pages/contact.jsx"
            end
            subgraph "Shared Components"
                direction TB
                Navbar["Navbar (app/components/navbar.jsx)"]:::frontend
                click Navbar "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/components/navbar.jsx"
                Footer["Footer (app/components/footer.jsx)"]:::frontend
                click Footer "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/components/footer.jsx"
                FaceCard["FaceCard (app/components/facecard.jsx)"]:::frontend
                click FaceCard "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/components/facecard.jsx"
                MembersUI["Members UI (app/components/members.jsx)"]:::frontend
                click MembersUI "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/components/members.jsx"
            end
        end
        subgraph "Styles & Config"
            direction TB
            GlobalsCSS["Global Stylesheet (app/globals.css)"]:::static
            click GlobalsCSS "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/app/globals.css"
            PostCSS["PostCSS Config (postcss.config.mjs)"]:::static
            click PostCSS "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/postcss.config.mjs"
            JSConfig["Path Alias Config (jsconfig.json)"]:::static
            click JSConfig "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/jsconfig.json"
            NextConfig["Next.js Config (next.config.mjs)"]:::static
            click NextConfig "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/next.config.mjs"
            PackageJSON["Dependencies & Scripts (package.json)"]:::static
            click PackageJSON "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/package.json"
        end
        subgraph "Static Assets"
            direction TB
            Video["Video Asset (public/video.mp4)"]:::static
            click Video "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/public/video.mp4"
            Placeholder["Placeholder File (public/desktop.ini)"]:::static
            click Placeholder "https://github.com/ceres2808/ec-iot-website/blob/main/ec-iot-website/public/desktop.ini"
        end
    end

    %% Deployment & Hosting
    Deploy["Deploy to Hosting"]:::infra
    CDN["CDN / Edge Cache"]:::infra
    Browser["User Browser"]:::infra

    %% Connections
    GitRepo --> CI --> Build
    Build --> Deploy --> CDN --> Browser
    CDN -->|Serves HTML/CSS/JS/Assets| Browser

    classDef frontend fill:#D0E8FF,stroke:#0366d6,color:#0366d6;
    classDef static fill:#E6FFEA,stroke:#28a745,color:#28a745;
    classDef infra fill:#FFF5D7,stroke:#DAA520,color:#DAA520;
    classDef pipeline fill:#F0F0F0,stroke:#999999,color:#333333;
```
