# w2pwinlinux/holamundoday architecture

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

- Interactive diagram: https://gitdiagram.com/w2pwinlinux/holamundoday
- Repository: https://github.com/w2pwinlinux/holamundoday

## Overview

##### Project type and purpose
- This is a static, component-based, full-stack web site built entirely in Python using the Reflex framework. The goal is to generate a 100% static conference website (holamundo.day) that is hosted on Vercel. There is no runtime server-side API—everything is compiled ahead of time by Reflex into HTML/CSS/JS and served as static assets.

##### File structure
- Top-level directories/files:
- assets/ – raw CSS, JS, and media (partners, speakers, preview.jpg)
- web/ – the Reflex application module
· components/ – low-level UI building blocks (button, divider, text, etc.)
· views/ – high-level pages/views (about, schedule, speakers, raffle, etc.)
· constants.py – shared configuration values
· web.py – the Reflex app entry point (app layout + routing)
- build.sh – shell script to run Reflex export/production build
- vercel.json – Vercel configuration for static deployment
- requirements.txt – Python dependencies (Reflex, etc.)

##### README for additional insights
- Confirms Python 3.11+, Reflex 0.4.4+, hosted on Vercel.
- Build/deploy is “static export” style; no database or serverless functions are mentioned.

a. Main components
- Developer Workstation (IDE + Git)
- Source Code Repository (GitHub)
- Build Pipeline
- build.sh (invokes Reflex export)
- vercel.json (defines Vercel build settings)
- Reflex Compiler
- Static Asset Bundle
- HTML/CSS/JS (from Reflex + assets/*)
- Hosting / CDN (Vercel)
- End-User Browser

b. Relationships and interactions
1. Developer writes Python/Reflex code in web/ and edits assets/.
2. Code is committed/pushed to GitHub repo.
3. Vercel (or CI) pulls latest code, runs build.sh → invokes Reflex → static files generated.
4. Vercel deploys the static bundle to its CDN.
5. End user’s browser requests assets from Vercel CDN; user navigates between pages (Reflex-rendered HTML).

c. Architectural patterns / design principles
- Component-based UI (atomic components in web/components, composed into pages in web/views).
- Separation of concerns: styling modules (web/styles), constants, UI components, page views.
- Static site generation pattern: build-time rendering with Reflex, zero server runtime.
- GitOps: deployment triggered by Git push, controlled by vercel.json and build.sh.

d. Key technologies/frameworks
- Python 3.11+
- Reflex 0.4.4 (UI framework & compiler)
- Static site generation (Reflex export)
- Vercel (hosting & CDN)
- Plain CSS/JS for any custom interactive elements (assets/css, assets/js)

## Diagram (Mermaid)

```mermaid
graph TB
  %% Development
  subgraph "Development" 
    style Development fill:#AED6F1,stroke:#2980B9
    Dev["Developer Workstation<br/>(IDE + Git)"]:::dev
    Repo["Source Code Repo<br/>(GitHub)"]:::dev
  end

  %% Build & Deploy
  subgraph "Build & Deploy"
    style BuildDeploy fill:#ABEBC6,stroke:#27AE60
    BuildScript["build.sh"]:::build
    VercelConfig["vercel.json"]:::build
    Requirements["requirements.txt"]:::build
    RxConfig["rxconfig.py"]:::build
    ReflexCompiler["Reflex Compiler"]:::build
    StaticBundle["Static Asset Bundle<br/>(HTML/CSS/JS)"]:::build

    subgraph "Reflex App (web/)"
      style ReflexApp fill:#D6EAF8,stroke:#2471A3
      WebAppDir["web/"]:::build
      Constants["web/constants.py"]:::build
      Entry["web/web.py"]:::build

      subgraph "UI Atomic Components<br/>(web/components/)"
        style Components fill:#EBF5FB,stroke:#5DADE2
        Button["button.py"]  
        Divider["divider.py"]
        TextGroup["text.py<br/>event_text.py<br/>terminal_text.py<br/>print_text.py<br/>span.py"]
        Navbar["navbar.py"]
        PartnerComp["partner.py"]
        Ticket["ticket.py"]
      end

      subgraph "Page Views<br/>(web/views/)"
        style Views fill:#EBF5FB,stroke:#5DADE2
        About["about.py"]
        Event["event.py"]
        Hackathon["hackathon.py"]
        Info["info.py"]
        Networking["networking.py"]
        PartnersPage["partners.py"]
        Raffle["raffle.py"]
        Schedule["schedule.py"]
        Speakers["speakers.py"]
        Header["header.py"]
        Footer["footer.py"]
      end

      subgraph "Style Definitions<br/>(web/styles/)"
        style Styles fill:#EBF5FB,stroke:#5DADE2
        Colors["colors.py"]
        Fonts["fonts.py"]
        GlobalStyles["styles.py"]
      end
    end

    subgraph "Static Assets (assets/)"
      style Assets fill:#FCF3CF,stroke:#B7950B
      AssetsDir["assets/"]
      CSS["css/styles.css"]
      JS["js/countdown.js"]
      PartnersMedia["partners/"]
      SpeakersMedia["speakers/"]
    end
  end

  %% Production
  subgraph "Production"
    style Production fill:#F5CBA7,stroke:#D35400
    CDN["Vercel CDN"]:::deploy
    Browser["End-User Browser"]:::runtime
  end

  %% Connections
  Dev -->|git push| Repo
  Repo -->|trigger build| BuildScript
  BuildScript -->|reads| VercelConfig
  BuildScript -->|reads| Requirements
  BuildScript -->|reads| RxConfig
  BuildScript -->|"invoke reflex export"| ReflexCompiler
  ReflexCompiler -->|compiles| StaticBundle
  WebAppDir --> ReflexCompiler
  AssetsDir --> StaticBundle
  CSS --> StaticBundle
  JS --> StaticBundle
  PartnersMedia --> StaticBundle
  SpeakersMedia --> StaticBundle
  Entry --> ReflexCompiler
  Constants --> ReflexCompiler
  Components --> ReflexCompiler
  Views --> ReflexCompiler
  Styles --> ReflexCompiler
  StaticBundle -->|deploy| CDN
  CDN -->|serve assets| Browser

  %% Click Events
  click AssetsDir "https://github.com/w2pwinlinux/holamundoday/tree/main/assets/"
  click CSS "https://github.com/w2pwinlinux/holamundoday/blob/main/assets/css/styles.css"
  click JS "https://github.com/w2pwinlinux/holamundoday/blob/main/assets/js/countdown.js"
  click PartnersMedia "https://github.com/w2pwinlinux/holamundoday/tree/main/assets/partners/"
  click SpeakersMedia "https://github.com/w2pwinlinux/holamundoday/tree/main/assets/speakers/"
  click WebAppDir "https://github.com/w2pwinlinux/holamundoday/tree/main/web/"
  click Button "https://github.com/w2pwinlinux/holamundoday/blob/main/web/components/button.py"
  click Divider "https://github.com/w2pwinlinux/holamundoday/blob/main/web/components/divider.py"
  click TextGroup "https://github.com/w2pwinlinux/holamundoday/blob/main/web/components/text.py"
  click Navbar "https://github.com/w2pwinlinux/holamundoday/blob/main/web/components/navbar.py"
  click PartnerComp "https://github.com/w2pwinlinux/holamundoday/blob/main/web/components/partner.py"
  click Ticket "https://github.com/w2pwinlinux/holamundoday/blob/main/web/components/ticket.py"
  click About "https://github.com/w2pwinlinux/holamundoday/blob/main/web/views/about.py"
  click Event "https://github.com/w2pwinlinux/holamundoday/blob/main/web/views/event.py"
  click Hackathon "https://github.com/w2pwinlinux/holamundoday/blob/main/web/views/hackathon.py"
  click Info "https://github.com/w2pwinlinux/holamundoday/blob/main/web/views/info.py"
  click Networking "https://github.com/w2pwinlinux/holamundoday/blob/main/web/views/networking.py"
  click PartnersPage "https://github.com/w2pwinlinux/holamundoday/blob/main/web/views/partners.py"
  click Raffle "https://github.com/w2pwinlinux/holamundoday/blob/main/web/views/raffle.py"
  click Schedule "https://github.com/w2pwinlinux/holamundoday/blob/main/web/views/schedule.py"
  click Speakers "https://github.com/w2pwinlinux/holamundoday/blob/main/web/views/speakers.py"
  click Header "https://github.com/w2pwinlinux/holamundoday/blob/main/web/views/header.py"
  click Footer "https://github.com/w2pwinlinux/holamundoday/blob/main/web/views/footer.py"
  click Colors "https://github.com/w2pwinlinux/holamundoday/blob/main/web/styles/colors.py"
  click Fonts "https://github.com/w2pwinlinux/holamundoday/blob/main/web/styles/fonts.py"
  click GlobalStyles "https://github.com/w2pwinlinux/holamundoday/blob/main/web/styles/styles.py"
  click Constants "https://github.com/w2pwinlinux/holamundoday/blob/main/web/constants.py"
  click Entry "https://github.com/w2pwinlinux/holamundoday/blob/main/web/web.py"
  click BuildScript "https://github.com/w2pwinlinux/holamundoday/blob/main/build.sh"
  click VercelConfig "https://github.com/w2pwinlinux/holamundoday/blob/main/vercel.json"
  click Requirements "https://github.com/w2pwinlinux/holamundoday/blob/main/requirements.txt"
  click RxConfig "https://github.com/w2pwinlinux/holamundoday/blob/main/rxconfig.py"

  %% Styles
  classDef dev fill:#AED6F1,stroke:#2980B9
  classDef build fill:#ABEBC6,stroke:#27AE60
  classDef deploy fill:#F5CBA7,stroke:#D35400
  classDef runtime fill:#D5D8DC,stroke:#566573
```
