# jaydipsinh13/college-website architecture

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

- Interactive diagram: https://gitdiagram.com/jaydipsinh13/college-website
- Repository: https://github.com/jaydipsinh13/college-website

## Overview

##### Project Type and Purpose
- This is a *static* college‐website project built entirely with client-side technologies (HTML, CSS, JavaScript).
- Purpose:
- College home page (index.html)
- Allow students to view fees (fees_page.html + fees_script.js)
- Provide an admission form (Admission_page.html)
- Contact info (Contact_page.html)
- Campus facilities via images

##### File Structure
- Top-level HTML pages: index.html, Admission_page.html, fees_page.html, Contact_page.html
- css/ directory: contains per-page style sheets and a main_style.css
- javascript/ directory: contains main_script.js and fees_script.js for client-side interactivity
- image/ directory: campus photos
- Poppins/ directory: custom font files and manifest
- README.md confirms hosting on Netlify (static hosting with built-in CDN)

##### Main Components
A. Client Browser
B. Static Hosting/CDN (Netlify)
C. Static Asset Store
- HTML files
- CSS files
- JavaScript files
- Images and fonts
D. (Optional) Third-party Form Handler – e.g., Netlify Forms or email backend for admissions

##### Relationships and Data Flows
- Client requests HTML/CSS/JS assets from the CDN
- CDN retrieves from the origin repo or object storage on deploy
- Client executes JS locally (e.g., fees calculator, form validation)
- On admission form submit, client POSTs data to the Form Handler endpoint
- Form Handler → stores/submits data to email or database (external service)

##### Architectural Patterns & Design Principles
- Static Single Page/Multipage Application pattern
- Client-side rendering for dynamic behaviors (fees calc, form validation)
- CDN for global asset distribution and caching
- Separation of concerns: HTML structure ↔ CSS styling ↔ JS behavior

##### Technologies & Frameworks
- HTML5 pages (multipage site)
- CSS3 (modular styles per page + shared main stylesheet)
- Plain JavaScript for interactivity
- Netlify (CI/CD + CDN + optional form handling)

## Diagram (Mermaid)

```mermaid
graph TB
    %% Client Layer
    subgraph "Client"
        Browser["Web Browser"]:::frontend
    end

    %% CI/CD and CDN Layer
    subgraph "Netlify CI/CD & CDN"
        GitHub["GitHub Repo"]:::hosting
        NetlifyCI["Netlify CI/CD"]:::hosting
        CDN["Netlify CDN"]:::hosting
    end

    %% Static Asset Store
    subgraph "Static Asset Store"
        subgraph "HTML Pages"
            Home["index.html"]:::assets
            AdmissionHTML["Admission_page.html"]:::assets
            FeesHTML["fees_page.html"]:::assets
            ContactHTML["Contact_page.html"]:::assets
            Preview["preview.jfif"]:::assets
        end
        subgraph "CSS Files"
            MainCSS["main_style.css"]:::assets
            AdmissionCSS["admission_style.css"]:::assets
            FeesCSS["fees_style.CSS"]:::assets
            ContactCSS["contact_style.css"]:::assets
        end
        subgraph "JS Files"
            MainJS["main_script.js"]:::assets
            FeesJS["fees_script.js"]:::assets
        end
        subgraph "Media Assets"
            Images["image/"]:::assets
            FontsDir["Poppins/"]:::assets
            Manifest["Poppins/manifest.json"]:::assets
            OFL["Poppins/OFL.txt"]:::assets
        end
        subgraph "Documentation"
            Readme["README.md"]:::assets
        end
    end

    %% External Service
    ExternalForm["Form Handler Service"]:::external

    %% Data Flows
    GitHub -->|Push code| NetlifyCI
    NetlifyCI -->|Deploy static assets| CDN
    CDN -->|HTTP GET *.html, *.css, *.js, images, fonts| Browser
    Browser -->|HTTP GET assets| CDN
    Browser -->|HTTP POST form data| ExternalForm
    ExternalForm -->|Store/Email submission| ExternalForm

    %% Click Events
    click Home "https://github.com/jaydipsinh13/college-website/blob/master/index.html"
    click AdmissionHTML "https://github.com/jaydipsinh13/college-website/blob/master/Admission_page.html"
    click AdmissionCSS "https://github.com/jaydipsinh13/college-website/blob/master/css/admission_style.css"
    click FeesHTML "https://github.com/jaydipsinh13/college-website/blob/master/fees_page.html"
    click FeesCSS "https://github.com/jaydipsinh13/college-website/blob/master/css/fees_style.CSS"
    click FeesJS "https://github.com/jaydipsinh13/college-website/blob/master/javascript/fees_script.js"
    click ContactHTML "https://github.com/jaydipsinh13/college-website/blob/master/Contact_page.html"
    click ContactCSS "https://github.com/jaydipsinh13/college-website/blob/master/css/contact_style.css"
    click MainCSS "https://github.com/jaydipsinh13/college-website/blob/master/css/main_style.css"
    click MainJS "https://github.com/jaydipsinh13/college-website/blob/master/javascript/main_script.js"
    click Images "https://github.com/jaydipsinh13/college-website/tree/master/image/"
    click FontsDir "https://github.com/jaydipsinh13/college-website/tree/master/Poppins/"
    click Manifest "https://github.com/jaydipsinh13/college-website/blob/master/Poppins/manifest.json"
    click OFL "https://github.com/jaydipsinh13/college-website/blob/master/Poppins/OFL.txt"
    click Readme "https://github.com/jaydipsinh13/college-website/blob/master/README.md"

    %% Styles
    classDef frontend fill:#e0f7fa,stroke:#006064,color:#000
    classDef hosting fill:#e8f5e9,stroke:#2e7d32,color:#000
    classDef assets fill:#fff3e0,stroke:#ef6c00,color:#000
    classDef external fill:#ffe0b2,stroke:#ef6c00,color:#000
```
