From f760e81309bff16e61ccd3f61b9cc560588df317 Mon Sep 17 00:00:00 2001 From: serversdown Date: Thu, 11 Jun 2026 20:10:29 +0000 Subject: [PATCH] style(portal): live-console location page, polished access splash, light/dark toggle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Location page rebuilt as a monitoring console: Leq hero readout (mono, level- colored, auto-flips with theme), instrument strip for Lp/Lmax/L1/L10, refined dark Chart.js (mono ticks, thin lines), panel-styled alert history, polished pause overlay. All live-stream/chart/alert JS hooks preserved. - Access page → centered branded splash. - Light/Dark toggle: CSS-variable theme system (structure + level/metric accent colors flip), header sun/moon button, localStorage + no-flash boot script, smooth body transition. On toggle, a 'portal-theme' event re-skins the Chart.js trace and swaps Leaflet tiles (CARTO dark <-> light) + recolors map dots. All JS hook IDs intact (verified); both themes validated to parse + balance. Co-Authored-By: Claude Opus 4.8 --- templates/portal/access_required.html | 15 ++- templates/portal/base.html | 117 +++++++++++++------ templates/portal/location.html | 159 ++++++++++++++++---------- templates/portal/overview.html | 21 ++-- 4 files changed, 205 insertions(+), 107 deletions(-) diff --git a/templates/portal/access_required.html b/templates/portal/access_required.html index b6d7423..95591d0 100644 --- a/templates/portal/access_required.html +++ b/templates/portal/access_required.html @@ -1,20 +1,19 @@ {% extends "portal/base.html" %} {% block title %}Access{% endblock %} {% block content %} -
-
- +
+
+
{% if reason == "invalid" %} -

This link isn't valid

-

The access link is expired or has been revoked. - Please contact TMI for a new link.

+

This link isn't valid

+

The access link is expired or has been revoked.
Please contact TMI for a new link.

{% else %} -

Access link required

-

Open the monitoring link TMI sent you to view your locations.

+

Access link required

+

Open the monitoring link TMI sent you to view your locations.

{% endif %}
{% endblock %} diff --git a/templates/portal/base.html b/templates/portal/base.html index e771c96..36e8109 100644 --- a/templates/portal/base.html +++ b/templates/portal/base.html @@ -5,6 +5,9 @@ {% block title %}Monitoring{% endblock %} · TMI + + + @@ -25,16 +28,45 @@ {% block head %}{% endblock %} -
+
- + TMI Monitoring @@ -117,9 +151,15 @@ {{ client.name }}{% endif %} - {% if client %} - Sign out - {% endif %} +
+ + {% if client %} + Sign out + {% endif %} +
@@ -127,10 +167,23 @@ {% block content %}{% endblock %} -