# hackinf0/hackinfo-siteweb architecture

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

- Interactive diagram: https://gitdiagram.com/hackinf0/hackinfo-siteweb
- Repository: https://github.com/hackinf0/hackinfo-siteweb

## Overview

##### Main Components
- Pages/Views: There are several HTML files (e.g., home.html, about.html, academie.html, formation-vue.html, formulaire.html, linkTree.html) that represent the different views or pages on the website.
- Styling: Each page is paired with its own CSS file (e.g., about.css, academie.css, formation-vue.css, formulaire.css, index.css, linkTree.css) to manage visual presentation.
- Client-Side Logic: JavaScript files like formation-vue.js, formulaire.js, and navbar.js manage interactivity—the navbar.js likely handles global navigation across pages.
- Assets: The img directory holds visual resources and, interestingly, a shell script (LinEnum.sh) which might serve as an additional resource or tool.
- Development Configuration: The .vscode folder is used for development environment settings in VS Code but is not part of the runtime architecture.

##### Relationships and Interactions
- The user's browser serves as the client, loading HTML pages. Each page requests its associated CSS and JS resources to render a complete UI.
- The navbar.js likely acts as a shared module that enables navigation between the various pages, ensuring consistency in user experience.
- The design pattern is a simple separation of concerns: content (HTML), presentation (CSS), and behavior (JavaScript). There isn’t a distinct backend since this is a static site—everything runs on the client side.
- The image assets enhance the presentation, and while the presence of a shell script (LinEnum.sh) in the assets may be unusual, it could be a tool/script provided as part of the project’s documentation or as an auxiliary resource.

##### Architectural Patterns or Design Principles
- Separation of Concerns: Different files are dedicated to structure (HTML), aesthetics (CSS), and functionality (JS).
- Multi-page Navigation: Instead of a single-page application, the project uses several HTML files to represent different pages, which are likely linked via the navbar.js.
- Static Web Application: The entire project is a client-side application with no backend server component. It is designed to be served statically (e.g., hosted on CodeSandbox as seen in the demo URL).

## Diagram (Mermaid)

```mermaid
flowchart TD
    Client["Browser/Client"]:::client

    subgraph "HTML Pages"
        Home["Home Page (home.html)"]:::html
        About["About Page (about.html)"]:::html
        Academie["Academie Page (academie.html)"]:::html
        FormationVue["Formation-Vue Page (formation-vue.html)"]:::html
        Formulaire["Formulaire Page (formulaire.html)"]:::html
        LinkTree["LinkTree Page (linkTree.html)"]:::html
    end

    subgraph "CSS Resources"
        HomeCSS["CSS (index.css)"]:::css
        AboutCSS["CSS (about.css)"]:::css
        AcademieCSS["CSS (academie.css)"]:::css
        FormationVueCSS["CSS (formation-vue.css)"]:::css
        FormulaireCSS["CSS (formulaire.css)"]:::css
        LinkTreeCSS["CSS (linkTree.css)"]:::css
    end

    subgraph "JavaScript Resources"
        FormationVueJS["JS (formation-vue.js)"]:::js
        FormulaireJS["JS (formulaire.js)"]:::js
        Navbar["Navbar (navbar.js)"]:::js
    end

    Assets["Assets (/img & LinEnum.sh)"]:::assets

    %% Browser loads HTML pages
    Client -->|"loads"| Home
    Client -->|"loads"| About
    Client -->|"loads"| Academie
    Client -->|"loads"| FormationVue
    Client -->|"loads"| Formulaire
    Client -->|"loads"| LinkTree

    %% Each page uses its CSS resource
    Home -->|"uses"| HomeCSS
    About -->|"uses"| AboutCSS
    Academie -->|"uses"| AcademieCSS
    FormationVue -->|"uses"| FormationVueCSS
    Formulaire -->|"uses"| FormulaireCSS
    LinkTree -->|"uses"| LinkTreeCSS

    %% Pages with JavaScript resources
    FormationVue -->|"uses"| FormationVueJS
    Formulaire -->|"uses"| FormulaireJS

    %% All pages include the global Navbar
    Home ---|"includes"| Navbar
    About ---|"includes"| Navbar
    Academie ---|"includes"| Navbar
    FormationVue ---|"includes"| Navbar
    Formulaire ---|"includes"| Navbar
    LinkTree ---|"includes"| Navbar

    %% Shared Assets used by all pages
    Home ---|"loads_assets"| Assets
    About ---|"loads_assets"| Assets
    Academie ---|"loads_assets"| Assets
    FormationVue ---|"loads_assets"| Assets
    Formulaire ---|"loads_assets"| Assets
    LinkTree ---|"loads_assets"| Assets

    %% Click Events for Component Mappings
    click Home "https://github.com/hackinf0/hackinfo-siteweb/blob/main//home.html"
    click HomeCSS "https://github.com/hackinf0/hackinfo-siteweb/blob/main//index.css"
    click About "https://github.com/hackinf0/hackinfo-siteweb/blob/main//about.html"
    click AboutCSS "https://github.com/hackinf0/hackinfo-siteweb/blob/main//about.css"
    click Academie "https://github.com/hackinf0/hackinfo-siteweb/blob/main//academie.html"
    click AcademieCSS "https://github.com/hackinf0/hackinfo-siteweb/blob/main//academie.css"
    click FormationVue "https://github.com/hackinf0/hackinfo-siteweb/blob/main//formation-vue.html"
    click FormationVueCSS "https://github.com/hackinf0/hackinfo-siteweb/blob/main//formation-vue.css"
    click FormationVueJS "https://github.com/hackinf0/hackinfo-siteweb/blob/main//formation-vue.js"
    click Formulaire "https://github.com/hackinf0/hackinfo-siteweb/blob/main//formulaire.html"
    click FormulaireCSS "https://github.com/hackinf0/hackinfo-siteweb/blob/main//formulaire.css"
    click FormulaireJS "https://github.com/hackinf0/hackinfo-siteweb/blob/main//formulaire.js"
    click LinkTree "https://github.com/hackinf0/hackinfo-siteweb/blob/main//linkTree.html"
    click LinkTreeCSS "https://github.com/hackinf0/hackinfo-siteweb/blob/main//linkTree.css"
    click Navbar "https://github.com/hackinf0/hackinfo-siteweb/blob/main//navbar.js"
    click Assets "https://github.com/hackinf0/hackinfo-siteweb/tree/main//img"

    %% Styles
    classDef client fill:#cce5ff,stroke:#007bff,stroke-width:2px;
    classDef html fill:#d4edda,stroke:#28a745,stroke-width:2px;
    classDef css fill:#fff3cd,stroke:#ffc107,stroke-width:2px;
    classDef js fill:#f8d7da,stroke:#dc3545,stroke-width:2px;
    classDef assets fill:#e2e3e5,stroke:#6c757d,stroke-width:2px;
```
