# meeki34/mywebsite architecture

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

- Interactive diagram: https://gitdiagram.com/meeki34/mywebsite
- Repository: https://github.com/meeki34/mywebsite

## Overview

##### Project type and purpose
- This is a simple, static portfolio website (“mywebsite”) consisting only of index.html and style.css.
- Purpose: serve personal portfolio content (bio, projects, contact) as static assets.

##### File structure
- Top-level files:
- index.html – the sole HTML entry point
- style.css – global styling sheet
- No backend code, no build scripts, no database directories.

##### README
- Confirms that this is “a portfolio website.”
- No further architectural details, dependencies, or runtime requirements.

##### Main components
a. Client (Web Browser)
– Renders HTML/CSS, displays portfolio UI.
b. Hosting Infrastructure (Web Server / Static-site host)
– Could be GitHub Pages, AWS S3 + CloudFront, Netlify, etc.
– Serves index.html and style.css over HTTP(S).
c. DNS / CDN (optional)
– Maps domain (e.g., mywebsite.com) to hosting endpoint, caches assets at edge.
d. (Optional) Third-party services
– Analytics (e.g., Google Analytics)
– Contact form backend (e.g., Formspree or serverless function)
– Social media embed APIs

##### Relationships and interactions
- Browser → DNS/CDN: resolve domain, retrieve cached record
- Browser ↔ CDN: fetch index.html, style.css
- CDN ↔ Origin Host: on cache miss, retrieve from S3/GitHub repo
- Browser → Third-party services: send pageview data or form submissions

##### Architectural patterns and design principles
- Client-server model (request static files over HTTP)
- Edge caching (CDN) to reduce latency
- Single-Page Resource: only one HTML file, no client-side routing
- Separation of concerns: structure (HTML) vs. presentation (CSS)

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "User Layer"
        Browser["Web Browser"]:::client
    end

    subgraph "Network Layer"
        DNS["DNS Resolver"]:::infra
        CDN["CDN / Cache"]:::infra
    end

    subgraph "Origin Host"
        Index["index.html"]:::static
        CSS["style.css"]:::static
        README["README.md"]:::docs
    end

    subgraph "External Services"
        Analytics["Google Analytics"]:::external
        Form["Contact Form Service"]:::external
    end

    Browser -->|"DNS Query"| DNS
    Browser -->|"HTTP GET index.html/css"| CDN
    CDN -->|"Cache Miss"| OriginHost[Origin Host]:::infra
    OriginHost -->|"HTTP 200"| CDN
    CDN -->|"HTTP 200"| Browser
    Browser -->|"Pageview Data (HTTPS)"| Analytics
    Browser -->|"Form Submission (HTTPS)"| Form

    click Index "https://github.com/meeki34/mywebsite/blob/main/index.html"
    click CSS "https://github.com/meeki34/mywebsite/blob/main/style.css"
    click README "https://github.com/meeki34/mywebsite/blob/main/README.md"

    classDef client fill:#cce5ff,stroke:#3399ff,color:#000
    classDef infra fill:#d4edda,stroke:#28a745,color:#000
    classDef static fill:#e2e3e5,stroke:#6c757d,color:#000
    classDef docs fill:#fff3cd,stroke:#ffc107,color:#000
    classDef external fill:#f8d7da,stroke:#dc3545,color:#000
```
