From c136308aad4bf9b7375b64a1237a6a754315c74f Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Thu, 2 Jul 2026 22:38:37 +0200 Subject: [PATCH] D4 Part 2: hub style.css v2 + template sweep MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - style.css: slate tokens -> the canonical navy block + @font-face (self-hosted, latin-ext for Hungarian customer names); single 2px radius; hairline table rows (--line-soft dividers, density kept); status classes re-expressed per the design-system addendum: .status-badge = outline tag + CSS ::before dot keyed by the raw status the templates emit (ok=blue, warn/blocked/stale=amber, down/fail=red, pending/disabled=quiet neutral); .status-dot = class-based 8px dot; severity badges stay filled amber/red (exceptions stay loud); config badges = filled informational chips in v2 colors; row tint only for warn/down (warn-dim/crit-dim). - Two-tone brand heading on all 8 'Felhom Hub' pages (

Felhom Hub

, span = blue-bright). - app_detail chart retinted: avg #2EA8F5 (primary data), peak #8E7CE8 (secondary DATA series — not status red), catalog-limit line #E0A93E (threshold marker); legend/tick/grid -> v2 literals. - customer_unified: JS status-message colors (success -> blue-bright, error -> crit), all inline slate hexes -> tokens. - Login page inline HTML retinted (#0088cc -> #0083D8). - Grep gate: every slate hex (#0f172a #1e293b #334155 #60a5fa #4ade80 #facc15 #f87171 #94a3b8 #64748b #475569 #e2e8f0) at ZERO across hub/internal/web (non-test); statusIcon 0; inline statusColor style 0. go build/vet/test green; api/ + store/ untouched. --- hub/internal/web/server.go | 4 +- hub/internal/web/templates/app_detail.html | 16 +- hub/internal/web/templates/apps.html | 2 +- hub/internal/web/templates/config_form.html | 2 +- hub/internal/web/templates/configs.html | 2 +- hub/internal/web/templates/configuration.html | 2 +- .../web/templates/customer_unified.html | 30 +- hub/internal/web/templates/dashboard.html | 2 +- hub/internal/web/templates/host_detail.html | 2 +- hub/internal/web/templates/hosts.html | 2 +- hub/internal/web/templates/style.css | 387 +++++++++++------- 11 files changed, 263 insertions(+), 188 deletions(-) diff --git a/hub/internal/web/server.go b/hub/internal/web/server.go index 2dd3764..f61e3eb 100644 --- a/hub/internal/web/server.go +++ b/hub/internal/web/server.go @@ -434,11 +434,11 @@ func (s *Server) handleLogin(w http.ResponseWriter, r *http.Request) { } // Render login with error w.WriteHeader(http.StatusUnauthorized) - w.Write([]byte(`Felhom Hub — Bejelentkezés

Felhom Hub

Hibás jelszó

`)) + w.Write([]byte(`Felhom Hub — Bejelentkezés

Felhom Hub

Hibás jelszó

`)) return } w.WriteHeader(http.StatusOK) - w.Write([]byte(`Felhom Hub — Bejelentkezés

Felhom Hub

`)) + w.Write([]byte(`Felhom Hub — Bejelentkezés

Felhom Hub

`)) } // validateCSRF checks the CSRF token for a session-based request. diff --git a/hub/internal/web/templates/app_detail.html b/hub/internal/web/templates/app_detail.html index 2778e92..e5917f2 100644 --- a/hub/internal/web/templates/app_detail.html +++ b/hub/internal/web/templates/app_detail.html @@ -11,7 +11,7 @@ {{template "icon_sprite"}}
-

Felhom Hub

+

Felhom Hub