# hidravneno/temperature architecture

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

- Interactive diagram: https://gitdiagram.com/hidravneno/temperature
- Repository: https://github.com/hidravneno/temperature

## Overview

##### Main Components

- User Interface (HTML/CSS):
– Pages: Include all the HTML files (index.html, Assignment2.html, Assignmnt1.html, activity.html, convert temperature.html, convert-temp.html) as separate UI components.
– Styling: Represent the various CSS files (mystyle.css, style.css, stylees.css, styles.css) that define the look and feel across pages.

- Client-side Logic (JavaScript):
– Scripts: Illustrate the directory “scripts” which holds several JavaScript files (e.g., Assignment1.js, Assignment2.js, Conditional.js, Function-challenge.js, Functions.js, activity1.js, convert temperature.js, convert-temp.js, script.js).
– Explain that these JS files provide interactive functionality, such as temperature conversion calculations and handling user interactions.

- Resources:

- Supporting Documentation/Content:
– Other files such as notes.txt can be depicted as supplementary documentation or references aiding the project’s development.

##### Relationships and Data Flow

- User Interaction Flow:
– Connect CSS files to the HTML components, noting that style influences presentation but does not directly interact with the logic.

- Script Interactions:

##### Important Architectural Patterns/Design Principles

- Separation of Concerns:

- Modular and Reusable Components:
– Since multiple assignment or conversion components are spread out as different files, indicate potential grouping or modularity (e.g., grouping similar assignment-related scripts or conversion functionalities).

- Static Frontend Architecture:
– Illustrate that this is a static website with client-side dynamic behavior, with no explicit backend services.

##### Relevant Technologies

- HTML5, CSS3, and Vanilla JavaScript for the construction of the user interface and interactive elements.

##### Elements

- Use clear and descriptive labels for each component (e.g., “Index Page”, “Temperature Conversion Page”, “Assignment Functionality”).
– Rectangles for HTML pages
– Ovals or circles for JavaScript modules
– Rounded rectangles for CSS/style elements

## Diagram (Mermaid)

```mermaid
flowchart TD
    A["User (Browser)"]:::user

    %% Presentation Layer - HTML Pages
    subgraph "Presentation Layer (HTML)"
        HTML1["index.html"]:::html
        HTML2["Assignment2.html"]:::html
        HTML3["Assignmnt1.html"]:::html
        HTML4["activity.html"]:::html
        HTML5["convert temperature.html"]:::html
        HTML6["convert-temp.html"]:::html
    end

    %% Styling Layer - CSS Files
    subgraph "Styling Layer (CSS)"
        CSS1["mystyle.css"]:::css
        CSS2["style.css"]:::css
        CSS3["stylees.css"]:::css
        CSS4["styles.css"]:::css
    end

    %% Logic Layer - JavaScript Files
    subgraph "Logic Layer (JavaScript)"
        JS1["Assignment1.js"]:::js
        JS2["Assignment2.js"]:::js
        JS3["Conditional.js"]:::js
        JS4["Function-challenge.js"]:::js
        JS5["Functions.js"]:::js
        JS6["activity1.js"]:::js
        JS7["convert temperature.js"]:::js
        JS8["convert-temp.js"]:::js
        JS9["script.js"]:::js
    end

    %% Resources and Documentation
    R1["img (Images)"]:::resource
    D1["notes.txt"]:::doc

    %% Relationships
    A -->|"accesses"| HTML1
    HTML1 -->|"styled_by"| CSS1
    HTML1 -->|"triggers"| JS9
    JS9 -->|"updates"| HTML1
    HTML1 -->|"loads"| R1
    HTML1 -->|"references"| D1

    %% Styles
    classDef user fill:#ADD8E6,stroke:#333,stroke-width:2px;
    classDef html fill:#90EE90,stroke:#333,stroke-width:2px;
    classDef css fill:#FFB6C1,stroke:#333,stroke-width:2px;
    classDef js fill:#FFFFE0,stroke:#333,stroke-width:2px;
    classDef resource fill:#D3D3D3,stroke:#333,stroke-width:2px;
    classDef doc fill:#FFC0CB,stroke:#333,stroke-width:2px;

    %% Click Events for HTML Pages
    click HTML1 "https://github.com/hidravneno/temperature/blob/main/index.html"
    click HTML2 "https://github.com/hidravneno/temperature/blob/main/Assignment2.html"
    click HTML3 "https://github.com/hidravneno/temperature/blob/main/Assignmnt1.html"
    click HTML4 "https://github.com/hidravneno/temperature/blob/main/activity.html"
    click HTML5 "https://github.com/hidravneno/temperature/blob/main/convert temperature.html"
    click HTML6 "https://github.com/hidravneno/temperature/blob/main/convert-temp.html"

    %% Click Events for CSS Files
    click CSS1 "https://github.com/hidravneno/temperature/blob/main/mystyle.css"
    click CSS2 "https://github.com/hidravneno/temperature/blob/main/style.css"
    click CSS3 "https://github.com/hidravneno/temperature/blob/main/stylees.css"
    click CSS4 "https://github.com/hidravneno/temperature/blob/main/styles.css"

    %% Click Events for JavaScript Files (in scripts directory)
    click JS1 "https://github.com/hidravneno/temperature/blob/main/scripts/Assignment1.js"
    click JS2 "https://github.com/hidravneno/temperature/blob/main/scripts/Assignment2.js"
    click JS3 "https://github.com/hidravneno/temperature/blob/main/scripts/Conditional.js"
    click JS4 "https://github.com/hidravneno/temperature/blob/main/scripts/Function-challenge.js"
    click JS5 "https://github.com/hidravneno/temperature/blob/main/scripts/Functions.js"
    click JS6 "https://github.com/hidravneno/temperature/blob/main/scripts/activity1.js"
    click JS7 "https://github.com/hidravneno/temperature/blob/main/scripts/convert temperature.js"
    click JS8 "https://github.com/hidravneno/temperature/blob/main/scripts/convert-temp.js"
    click JS9 "https://github.com/hidravneno/temperature/blob/main/scripts/script.js"

    %% Click Events for Resources and Documentation
    click R1 "https://github.com/hidravneno/temperature/tree/main/img"
    click D1 "https://github.com/hidravneno/temperature/blob/main/notes.txt"
```
