From 8c61a557f8bd0d7a47745d7ac2f50937de0582b5 Mon Sep 17 00:00:00 2001 From: Adriano Dal Pastro Date: Thu, 11 Jun 2026 16:01:08 +0000 Subject: [PATCH] ui: redesign brand icon and fix clipped wordmark MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - new mark: measurement-span glyph on rounded brand-gradient badge (favicon, inline logo, standalone tmflow-logo.svg) - wordmark moved from SVG with hardcoded x offsets (clipped "Flow" past the 260px viewBox, font-dependent overlap) to plain HTML spans — never clips, natural kerning, theme-adaptive - _app_logo.html params: logo_class, wordmark_class, logo_id (unique gradient id when logo appears twice per page) Co-Authored-By: Claude Fable 5 --- .../flask_app/static/img/tmflow-icon.svg | 40 +++++------- .../flask_app/static/img/tmflow-logo.svg | 58 ++++++----------- .../flask_app/templates/auth/login.html | 4 +- .../templates/components/_app_logo.html | 64 +++++++++---------- .../templates/components/navbar.html | 4 +- 5 files changed, 74 insertions(+), 96 deletions(-) diff --git a/src/frontend/flask_app/static/img/tmflow-icon.svg b/src/frontend/flask_app/static/img/tmflow-icon.svg index a225b99..30d7401 100644 --- a/src/frontend/flask_app/static/img/tmflow-icon.svg +++ b/src/frontend/flask_app/static/img/tmflow-icon.svg @@ -1,27 +1,21 @@ - - + + + + + + + + - - - - + + - - - + + + - - - - - - - - - - - - + + + + diff --git a/src/frontend/flask_app/static/img/tmflow-logo.svg b/src/frontend/flask_app/static/img/tmflow-logo.svg index 82e925c..3c6432a 100644 --- a/src/frontend/flask_app/static/img/tmflow-logo.svg +++ b/src/frontend/flask_app/static/img/tmflow-logo.svg @@ -1,41 +1,23 @@ - - - - - - - + + + + + + + + - - - + + + + + + + - - - - - - - - - - - - - - - - - - - Tie - - Measure - - Flow - + + + TieMeasureFlow + diff --git a/src/frontend/flask_app/templates/auth/login.html b/src/frontend/flask_app/templates/auth/login.html index 9ab41fb..08d1423 100644 --- a/src/frontend/flask_app/templates/auth/login.html +++ b/src/frontend/flask_app/templates/auth/login.html @@ -16,7 +16,9 @@
- {% set logo_class = 'h-16 w-auto' %} + {% set logo_class = 'h-14 w-14' %} + {% set wordmark_class = 'text-3xl' %} + {% set logo_id = 'login' %} {% include 'components/_app_logo.html' %}

diff --git a/src/frontend/flask_app/templates/components/_app_logo.html b/src/frontend/flask_app/templates/components/_app_logo.html index 8f60b26..cd54453 100644 --- a/src/frontend/flask_app/templates/components/_app_logo.html +++ b/src/frontend/flask_app/templates/components/_app_logo.html @@ -1,35 +1,33 @@ - - - - - - - - - - - - - - - - - +TieMeasureFlow logo: brand badge (SVG) + HTML wordmark. +The wordmark inherits `color` from the parent (set e.g. `text-slate-900 +dark:text-white`); "Measure" keeps the brand blue. - - - Tie - Measure - Flow - - +Parameters (set before include): + logo_class — badge size, default 'h-10 w-10' + wordmark_class — wordmark text size, default 'text-xl'; '' hides the text + logo_id — unique suffix for the SVG gradient id when the logo + appears more than once per page (default 'tmf') +--> +{% set _logo_id = logo_id|default('tmf') %} + + + {% if wordmark_class is not defined or wordmark_class %} + TieMeasureFlow + {% endif %} + diff --git a/src/frontend/flask_app/templates/components/navbar.html b/src/frontend/flask_app/templates/components/navbar.html index b7c8eec..f44b7ec 100644 --- a/src/frontend/flask_app/templates/components/navbar.html +++ b/src/frontend/flask_app/templates/components/navbar.html @@ -51,7 +51,9 @@ Logo {% else %} - {% set logo_class = 'h-10 w-auto' %} + {% set logo_class = 'h-9 w-9' %} + {% set wordmark_class = 'text-xl' %} + {% set logo_id = 'nav' %} {% include 'components/_app_logo.html' %} {% endif %}