# roshan9419/learned_e-learning_website architecture

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

- Interactive diagram: https://gitdiagram.com/roshan9419/learned_e-learning_website
- Repository: https://github.com/roshan9419/learned_e-learning_website

## Overview

##### Main Components
- User Interface (Frontend): Include the core HTML pages such as index.html (the main landing page), login.html, and the subject-specific pages (e.g., computer_courses.html, gate.html, jee.html, quiz.html). These represent what the end user sees.
- Styling & Presentation Layer: Represent the CSS files (style.css, loginStyle.css, subjects/subjects.css, subjects/quizStyle.css) that define the look and feel of the website.
- Client-Side Logic: Identify script.js (and any inline scripts within HTML pages), which handles client-side interactivity such as the quiz functionality and possibly the login interactions.

##### Relationships and Data Flow
- Client (user’s web browser) making requests that load the static HTML, CSS, and JS files.
- Point out how the pages pull in static assets (images, PDFs, etc.) via URL references.
- Possible interactions such as:
- Navigation flows between pages (from index.html to subjects pages or login).
- The quiz system’s data flow: loading questions, calculating scores, and displaying results.
- If there is any form or question submission functionality (mentioned in the README), highlight that it might either send data to a backend or simply process data client-side.

##### Architectural Patterns and Design Principles
- That the project uses a simple static, modular architecture, with a clear separation of concerns:
- Presentation: Handled by HTML and CSS.
- Behavior: Managed by client-side JavaScript.
- Content/Assets: Organized in dedicated directories for images and PDFs.
- Responsiveness of the design, which means CSS media queries or similar techniques are used to adapt the layout for various devices.

##### Relevant Technologies and Tools
- HTML5, CSS3, and JavaScript form the core stack.
- GitHub Pages is used to deploy the website.
- Optionally, mark the use of static assets management (even if done manually by organizing the file tree).

## Diagram (Mermaid)

```mermaid
graph TD
    %% Top-Level Entities
    User("User"):::user
    Browser("Browser (Web Browser)"):::browser
    User -->|"loads"| Browser

    %% Frontend Pages Subgraph
    subgraph "User Interface (Frontend Pages)"
        indexPage["Index Page (index.html)"]:::html
        loginPage["Login Page (login.html)"]:::html
        ccPage["Computer Courses (subjects/computer_courses.html)"]:::html
        gatePage["Gate (subjects/gate.html)"]:::html
        jeePage["JEE (subjects/jee.html)"]:::html
        quizPage["Quiz (subjects/quiz.html)"]:::html
    end

    %% Styling & Presentation Subgraph
    subgraph "Styling & Presentation"
        globalCss["Global Styles (style.css)"]:::css
        loginCss["Login Styles (loginStyle.css)"]:::css
        subjectsCss["Subjects Styles (subjects/subjects.css)"]:::css
        quizCss["Quiz Styles (subjects/quizStyle.css)"]:::css
    end

    %% Client-Side Logic Subgraph
    subgraph "Client-Side Logic"
        scriptJS["Client-Side Logic (script.js)"]:::js
    end

    %% Static Assets Subgraph
    subgraph "Static Assets"
        imagesAssets["Images & Icons (images/)"]:::assets
        samplePapers["Sample Papers (samplePapers/)"]:::assets
    end

    %% External/Third-Party Services
    githubPages["GitHub Pages Deployment"]:::external

    %% Data Flows: Browser loading components
    Browser -->|"loads"| indexPage
    Browser -->|"loads"| loginPage
    Browser -->|"loads"| ccPage
    Browser -->|"loads"| gatePage
    Browser -->|"loads"| jeePage
    Browser -->|"loads"| quizPage
    Browser -->|"retrieves"| imagesAssets
    Browser -->|"retrieves"| samplePapers
    Browser -->|"hosted_on"| githubPages

    %% Navigation flow between pages
    indexPage -->|"navigates_to"| loginPage
    indexPage -->|"navigates_to"| ccPage
    indexPage -->|"navigates_to"| gatePage
    indexPage -->|"navigates_to"| jeePage
    indexPage -->|"navigates_to"| quizPage

    %% HTML Pages referencing their styling
    indexPage -->|"styles_with"| globalCss
    loginPage -->|"styles_with"| loginCss
    ccPage -->|"styles_with"| subjectsCss
    gatePage -->|"styles_with"| subjectsCss
    jeePage -->|"styles_with"| subjectsCss
    quizPage -->|"styles_with"| quizCss

    %% HTML Pages invoking client-side logic
    indexPage -->|"invokes"| scriptJS
    loginPage -->|"invokes"| scriptJS
    ccPage -->|"invokes"| scriptJS
    gatePage -->|"invokes"| scriptJS
    jeePage -->|"invokes"| scriptJS
    quizPage -->|"invokes"| scriptJS

    %% HTML pages reference static assets
    indexPage -->|"references"| imagesAssets
    ccPage -->|"references"| imagesAssets
    gatePage -->|"references"| imagesAssets
    jeePage -->|"references"| imagesAssets
    quizPage -->|"references"| samplePapers

    %% Click Events
    click indexPage "https://github.com/roshan9419/learned_e-learning_website/blob/master/index.html"
    click loginPage "https://github.com/roshan9419/learned_e-learning_website/blob/master/login.html"
    click ccPage "https://github.com/roshan9419/learned_e-learning_website/blob/master/subjects/computer_courses.html"
    click gatePage "https://github.com/roshan9419/learned_e-learning_website/blob/master/subjects/gate.html"
    click jeePage "https://github.com/roshan9419/learned_e-learning_website/blob/master/subjects/jee.html"
    click quizPage "https://github.com/roshan9419/learned_e-learning_website/blob/master/subjects/quiz.html"
    click globalCss "https://github.com/roshan9419/learned_e-learning_website/blob/master/style.css"
    click loginCss "https://github.com/roshan9419/learned_e-learning_website/blob/master/loginStyle.css"
    click subjectsCss "https://github.com/roshan9419/learned_e-learning_website/blob/master/subjects/subjects.css"
    click quizCss "https://github.com/roshan9419/learned_e-learning_website/blob/master/subjects/quizStyle.css"
    click scriptJS "https://github.com/roshan9419/learned_e-learning_website/blob/master/script.js"
    click imagesAssets "https://github.com/roshan9419/learned_e-learning_website/tree/master/images/"
    click samplePapers "https://github.com/roshan9419/learned_e-learning_website/tree/master/samplePapers/"

    %% Styles
    classDef html fill:#cce5ff,stroke:#333,stroke-width:2px;
    classDef css fill:#d4edda,stroke:#333,stroke-width:2px;
    classDef js fill:#fff3cd,stroke:#333,stroke-width:2px;
    classDef assets fill:#f8d7da,stroke:#333,stroke-width:2px;
    classDef external fill:#e2e3e5,stroke:#333,stroke-width:2px;
    classDef user fill:#ffcccb,stroke:#333,stroke-width:2px;
    classDef browser fill:#d1c4e9,stroke:#333,stroke-width:2px;
```
