# daviddominguez-11/lab3_htmlonly architecture

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

- Interactive diagram: https://gitdiagram.com/daviddominguez-11/lab3_htmlonly
- Repository: https://github.com/daviddominguez-11/lab3_htmlonly

## Overview

##### Main Components
- Homepage: The index.html file serves as the entry point.
- Content/Branch Pages: Each additional HTML file (decision1.html, derrota.html, etc.) represents a unique state or view within the website’s narrative or decision flow.
- Navigation Links: Although not separate files, the hyperlinks between pages are critical components that drive interaction.

##### Relationships and Interactions
- That index.html links to one or more of the branch pages.
- Out the flow between pages: for example, after a decision in decision1.html, the user might be directed to final_victoria.html, derrota.html, or another outcome page.

##### Architectural Patterns and Design Principles
- This is a static website design with no dynamic server-side processing. Its “architecture” is focused on content flow rather than, for example, MVC separation.
- Separation of the content into distinct HTML pages, representing discrete states or narrative segments.
- No external libraries, frameworks, or backend components are included, so the emphasis is on static navigation and user-driven flow.

## Diagram (Mermaid)

```mermaid
flowchart TD
    A["index.html (Homepage)"]:::homepage
    D["decision1.html (Decision Point)"]:::decision
    DR["derrota.html (Defeat Outcome)"]:::outcome_defeat
    ES["espada.html (Weapon Choice)"]:::outcome_weapon
    FA["fallo.html (Failure Outcome)"]:::outcome_fail
    FU["final_huir.html (Escape Outcome)"]:::outcome_escape
    FV["final_victoria.html (Victory Outcome)"]:::outcome_victory
    HO["honda.html (Alternate Route)"]:::outcome_alternate

    A -->|"to_decision"| D
    D -->|"option_defeat"| DR
    D -->|"option_weapon"| ES
    D -->|"option_fail"| FA
    D -->|"option_escape"| FU
    D -->|"option_victory"| FV
    D -->|"option_alternate"| HO

    click A "https://github.com/daviddominguez-11/lab3_htmlonly/blob/main/html/index.html"
    click D "https://github.com/daviddominguez-11/lab3_htmlonly/blob/main/html/decision1.html"
    click DR "https://github.com/daviddominguez-11/lab3_htmlonly/blob/main/html/derrota.html"
    click ES "https://github.com/daviddominguez-11/lab3_htmlonly/blob/main/html/espada.html"
    click FA "https://github.com/daviddominguez-11/lab3_htmlonly/blob/main/html/fallo.html"
    click FU "https://github.com/daviddominguez-11/lab3_htmlonly/blob/main/html/final_huir.html"
    click FV "https://github.com/daviddominguez-11/lab3_htmlonly/blob/main/html/final_victoria.html"
    click HO "https://github.com/daviddominguez-11/lab3_htmlonly/blob/main/html/honda.html"

    classDef homepage fill:#AED6F1,stroke:#1F618D,stroke-width:2px;
    classDef decision fill:#F9E79F,stroke:#B7950B,stroke-width:2px;
    classDef outcome_defeat fill:#F1948A,stroke:#922B21,stroke-width:2px;
    classDef outcome_weapon fill:#D7BDE2,stroke:#6C3483,stroke-width:2px;
    classDef outcome_fail fill:#FAD7A0,stroke:#B9770E,stroke-width:2px;
    classDef outcome_escape fill:#A9DFBF,stroke:#1E8449,stroke-width:2px;
    classDef outcome_victory fill:#82E0AA,stroke:#196F3D,stroke-width:2px;
    classDef outcome_alternate fill:#D5F5E3,stroke:#117864,stroke-width:2px;
```
