From a7a0d1aabb11e50ed79bf8657878a512737818ab Mon Sep 17 00:00:00 2001 From: ZTatman Date: Sat, 4 Jul 2026 14:17:52 -0400 Subject: [PATCH] refactor(web): single-ink brand mark system + header and 404 polish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Full-color brand art (cream + red) is hero/dark-ground only; on light ground the mark is a single-ink stamp that takes its context's text color. This is the one treatment that survives a future ash-and-ember dark mode with zero new assets — currentColor follows --color-foreground on flip. - Add partials/_brand.html: one currentColor Firebreak mark, colored by a text-* utility at each call site. - Header: mark + real-text wordmark in text-foreground (replaces the cold #17191C logo that clashed with the warm page); also fold the inline border style into border-b border-border. - Complete the account-dropdown Alpine migration (same file): wire the panel id/aria-controls, drive the open-state highlight and focus-return through Alpine, drop the
cruft, add a transition. - Setup: replace the invisible cream-on-light logo (and its compensating drop-shadow) with the ink mark. - 404: "Outside the break" copy, token-driven watermark at 25%, and a guard so the duplicate detail line no longer renders. - Delete 3 now-unused logo SVGs (black, red, brand). Co-Authored-By: Claude Opus 4.8 --- web/app/static/img/firebreak-brand.svg | 43 ------ web/app/static/img/firebreak-logo-black.svg | 3 - web/app/static/img/firebreak-logo-red.svg | 3 - web/app/templates/base.html | 138 +++++++++++++------- web/app/templates/error.html | 27 ++-- web/app/templates/partials/_brand.html | 13 ++ web/app/templates/setup.html | 35 +++-- 7 files changed, 139 insertions(+), 123 deletions(-) delete mode 100644 web/app/static/img/firebreak-brand.svg delete mode 100644 web/app/static/img/firebreak-logo-black.svg delete mode 100644 web/app/static/img/firebreak-logo-red.svg create mode 100644 web/app/templates/partials/_brand.html diff --git a/web/app/static/img/firebreak-brand.svg b/web/app/static/img/firebreak-brand.svg deleted file mode 100644 index 600ab1f..0000000 --- a/web/app/static/img/firebreak-brand.svg +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/web/app/static/img/firebreak-logo-black.svg b/web/app/static/img/firebreak-logo-black.svg deleted file mode 100644 index 809a132..0000000 --- a/web/app/static/img/firebreak-logo-black.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/web/app/static/img/firebreak-logo-red.svg b/web/app/static/img/firebreak-logo-red.svg deleted file mode 100644 index ea22167..0000000 --- a/web/app/static/img/firebreak-logo-red.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/web/app/templates/base.html b/web/app/templates/base.html index 37a5e9b..9fb9d03 100644 --- a/web/app/templates/base.html +++ b/web/app/templates/base.html @@ -1,3 +1,4 @@ +{% from "partials/_brand.html" import mark %} @@ -13,60 +14,106 @@ rel="stylesheet" /> + -
-
+
+
- - - - - - - - - - - - - - - - - - - - - - - - - - + {{ mark("size-7 shrink-0") }} + Firebreak - -
+
{% if user %} - Logout + {% set account_name = user.display_name or user.email or "User" %} + +
+ + + +
+
+

{{ account_name }}

+ {% if user.email and user.email != account_name %} +

{{ user.email }}

+ {% endif %} +
+ + + Settings + + + + Logout + +
+
{% else %}
+ class="{% block main_class %}flex-1 w-full px-4 py-8 mx-auto max-w-5xl sm:px-8{% endblock %}"> {% block content %}{% endblock %}
{% if debug %} @@ -106,7 +153,6 @@ } } - // Check every second. setInterval(checkForCssChanges, 1000); {% endif %} diff --git a/web/app/templates/error.html b/web/app/templates/error.html index 152d867..925940a 100644 --- a/web/app/templates/error.html +++ b/web/app/templates/error.html @@ -1,18 +1,26 @@ {% extends "base.html" %} +{% from "partials/_brand.html" import mark %} {% block title %}{{ status_code }} — Firebreak{% endblock %} {% block main_class %}flex-1 flex flex-col{% endblock %} {% block content %}
-