# xgavinp/compsdeptwebsite architecture

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

- Interactive diagram: https://gitdiagram.com/xgavinp/compsdeptwebsite
- Repository: https://github.com/xgavinp/compsdeptwebsite

## Overview

##### Main Components
- Frontend/UI – This is built using plain HTML, CSS, and JavaScript. Key files include the homepage (index.html), navigation components (nav.html and nav.js), and several independent pages under directories like academics, cocurricular, faculty, students, aboutus, etc.
- Content Modules – Break down the website into its logical submodules:
- Academics: Contains pages for academic calendars, timetables, syllabi, exam calendars, and other academic resources (found in “academics”).
- CO (Course/CO materials): This folder holds various PDF documents for past exam papers, statements, and related academic resources.
- Faculty and Testimonials: These directories include faculty profiles, research, recognition, and testimonial pages.
- Placement & Internship: Contains pages, graphs, and data related to placement and internship information.
- Multimedia Assets: Directories like “assets”, “images”, and “videos” host resource files (PDFs, images, and video files) that the website uses.
- Others: Additional sections such as “cocurricular”, “datascience.html”, “Website Team”, and “aboutus” add further context and support for the website’s informational structure.

##### Relationships and Interactions
- External Resources: Documents (PDFs) in directories like CO and academics are referenced within the web pages. Represent these external files as separate storage/asset nodes that the UI retrieves dynamically when requested.

##### Architectural Patterns and Design Principles
- Static Resource Delivery: Since the website is static (no dynamic server-side logic visible in the repository), highlight that pages, media, and resources will be delivered as-is from a web server or CDN.
- Simple Client-Side Architecture: The inclusion of JavaScript for navigation and minor interactivity indicates a lightweight client-side architecture typical of static websites.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Global Entities
    U["User Browser"]:::user
    S["Static Web Server / CDN"]:::server

    %% Frontend/UI Layer
    subgraph "Frontend/UI"
        FE1["Homepage (index.html)"]:::frontend
        FE2["Navigation (nav.html)"]:::frontend
        FE3["Navigation Script (nav.js)"]:::frontend
        FE4["Common Styles (style/)"]:::frontend
    end

    %% Content Modules
    subgraph "Content Modules"
        Ac["Academics Module"]:::module
        Co["CO Module"]:::module
        Fa["Faculty Module"]:::module
        Pl["Placement & Internship Module"]:::module
        CoCurr["Cocurricular Module"]:::module
        Ab["About Us Module"]:::module
        WT["Website Team Module"]:::module
        Te["Testimonials Module"]:::module
        DS1["Data Science Page (datascience.html)"]:::module
        DS2["Data Science CSS (style/datascience.css)"]:::module

        subgraph "Multimedia Assets"
            MA1["Assets"]:::assets
            MA2["Images"]:::assets
            MA3["Videos"]:::assets
        end
    end

    %% Relationships
    U -->|"requests"| S
    S -->|"delivers"| FE1
    S -->|"delivers"| FE2
    S -->|"delivers"| FE3
    S -->|"delivers"| FE4

    FE1 -->|"navigates_to"| Ac
    FE1 -->|"navigates_to"| Co
    FE1 -->|"navigates_to"| Fa
    FE1 -->|"navigates_to"| Pl
    FE1 -->|"navigates_to"| CoCurr
    FE1 -->|"navigates_to"| Ab
    FE1 -->|"navigates_to"| WT
    FE1 -->|"navigates_to"| Te
    FE1 -->|"navigates_to"| DS1
    FE1 -->|"loads"| MA1

    FE4 -->|"applies_to"| Ac
    FE4 -->|"applies_to"| Co
    FE4 -->|"applies_to"| Fa
    FE4 -->|"applies_to"| Pl
    FE4 -->|"applies_to"| CoCurr
    FE4 -->|"applies_to"| Ab
    FE4 -->|"applies_to"| WT
    FE4 -->|"applies_to"| Te
    FE4 -->|"applies_to"| DS2

    %% Click Events
    click FE1 "https://github.com/xgavinp/compsdeptwebsite/blob/master/index.html"
    click FE2 "https://github.com/xgavinp/compsdeptwebsite/blob/master/nav.html"
    click FE3 "https://github.com/xgavinp/compsdeptwebsite/blob/master/nav.js"
    click FE4 "https://github.com/xgavinp/compsdeptwebsite/tree/master/style/"
    click Ac "https://github.com/xgavinp/compsdeptwebsite/tree/master/academics/"
    click Co "https://github.com/xgavinp/compsdeptwebsite/tree/master/CO/"
    click Fa "https://github.com/xgavinp/compsdeptwebsite/tree/master/faculty/"
    click Pl "https://github.com/xgavinp/compsdeptwebsite/tree/master/placement&internship/"
    click CoCurr "https://github.com/xgavinp/compsdeptwebsite/tree/master/cocurricular/"
    click Ab "https://github.com/xgavinp/compsdeptwebsite/tree/master/aboutus/"
    click WT "https://github.com/xgavinp/compsdeptwebsite/tree/master/Website Team/"
    click Te "https://github.com/xgavinp/compsdeptwebsite/tree/master/Testimonials/"
    click DS1 "https://github.com/xgavinp/compsdeptwebsite/blob/master/datascience.html"
    click DS2 "https://github.com/xgavinp/compsdeptwebsite/blob/master/style/datascience.css"
    click MA1 "https://github.com/xgavinp/compsdeptwebsite/tree/master/assets/"
    click MA2 "https://github.com/xgavinp/compsdeptwebsite/tree/master/images/"
    click MA3 "https://github.com/xgavinp/compsdeptwebsite/tree/master/videos/"

    %% Styles
    classDef user fill:#ffdddd,stroke:#770000,stroke-width:2px;
    classDef server fill:#ddffdd,stroke:#007700,stroke-width:2px;
    classDef frontend fill:#ddeeff,stroke:#003366,stroke-width:2px;
    classDef module fill:#ffffcc,stroke:#666600,stroke-width:2px;
    classDef assets fill:#ffddcc,stroke:#993300,stroke-width:2px;
```
