# saboo24/sabo architecture

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

- Interactive diagram: https://gitdiagram.com/saboo24/sabo
- Repository: https://github.com/saboo24/sabo

## Overview

##### Main components
- Frontend (Static Files): index.html, style.css, script.js
- Host/Delivery Network: GitHub Pages (or any static‐site host/CDN)
- External Service: EmailJS for contact form handling
- End User: Web Browser (Desktop, Mobile, Tablet)

##### Relationships and data flows
- The browser requests the static files from GitHub Pages.
- index.html pulls in style.css and script.js.
- script.js drives animations (typing effect, smooth scroll via IntersectionObserver) and handles the contact form.
- On form submission, script.js calls EmailJS APIs over HTTPS.
- EmailJS processes the request and forwards an email to the site owner.
- The browser renders the response (success/failure notification).

##### Architectural patterns and design principles
- Client‐side MVC-ish separation (HTML = view structure; CSS = styling; JS = behavior).
- Modular, component‐based JS (e.g., functions for typing animation, scroll listener, form handler).
- Single‐page architecture: no page reloads, smooth in‐page navigation.

##### Technologies to call out
- HTML5 for semantic markup
- CSS3 (Flex/Grid, keyframe animations)
- JavaScript ES6+ (modules, IntersectionObserver API)
- EmailJS (external form processing service)
- GitHub Pages (static asset hosting/CDN)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% End User / Browser
    Browser["Browser<br/>(Desktop / Mobile / Tablet)"]:::browser

    %% Static Hosting and Files
    subgraph "Static Site Hosting (GitHub Pages CDN)"
        Host["GitHub Pages"]:::host
        subgraph "Static Files"
            HTML["index.html"]:::staticfile
            CSS["style.css"]:::staticfile
            JS["script.js"]:::staticfile
        end
    end

    %% JS Modules
    subgraph "script.js Modules"
        Animations["Animations Module<br/>(Typing Effect)"]:::module
        Scroll["Scroll Module<br/>(IntersectionObserver)"]:::module
        Form["Form Module<br/>(EmailJS Integration)"]:::module
    end

    %% External Services
    EmailJS["EmailJS Service"]:::external
    SiteOwner["Site Owner Email"]:::external

    %% Data Flows
    Browser -->|HTTP GET index.html, style.css, script.js| Host
    Host -->|serves| HTML
    Host -->|serves| CSS
    Host -->|serves| JS
    JS -->|executes| Animations
    JS -->|executes| Scroll
    JS -->|handles| Form
    Form -->|HTTPS POST contact form JSON| EmailJS
    EmailJS -->|SMTP delivery| SiteOwner

    %% Click Events
    click HTML "https://github.com/saboo24/sabo/blob/main/index.html"
    click CSS "https://github.com/saboo24/sabo/blob/main/style.css"
    click JS "https://github.com/saboo24/sabo/blob/main/script.js"

    %% Styles
    classDef browser fill:#e0f7fa,stroke:#006064,color:#006064;
    classDef host fill:#fff3e0,stroke:#e65100,color:#e65100;
    classDef staticfile fill:#e8eaf6,stroke:#3949ab,color:#3949ab;
    classDef module fill:#f1f8e9,stroke:#33691e,color:#33691e;
    classDef external fill:#fce4ec,stroke:#880e4f,color:#880e4f;
```
