From 94db74f030f4a771bf3572bda282542284ad0454 Mon Sep 17 00:00:00 2001 From: NguyenND Date: Thu, 16 Apr 2026 15:08:57 -0400 Subject: [PATCH] 04/16 Update the page footer --- app.py | 3 ++- static/css/theme-gov.css | 18 ++++++------------ templates/base.html | 2 +- templates/base_authenticated.html | 2 +- 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/app.py b/app.py index b87e980..01d418c 100644 --- a/app.py +++ b/app.py @@ -100,10 +100,11 @@ def create_app() -> Flask: @app.context_processor def inject_company_name(): - """Make COMPANY_NAME and THEME_NAME available to all templates""" + """Make COMPANY_NAME, THEME_NAME, and CURRENT_YEAR available to all templates""" return { 'COMPANY_NAME': os.environ.get('COMPANY_NAME', 'QR Code Management System'), 'THEME_NAME': os.environ.get('THEME_NAME', ''), + 'CURRENT_YEAR': datetime.now().year, } @app.context_processor diff --git a/static/css/theme-gov.css b/static/css/theme-gov.css index 155aee1..46db514 100644 --- a/static/css/theme-gov.css +++ b/static/css/theme-gov.css @@ -28,12 +28,12 @@ /* 1. COLOR PALETTE — GOV Services green */ /* ------------------------------------------------------------------ */ :root { - /* Primary brand color: institutional green */ - --primary-color: #1a6b3c; - --primary-hover: #145530; + /* Primary brand color: bright institutional green */ + --primary-color: #16a34a; + --primary-hover: #15803d; /* Accent used for links, focus rings, active states */ - --info-color: #1a6b3c; + --info-color: #16a34a; } /* ------------------------------------------------------------------ */ @@ -70,15 +70,9 @@ /* ------------------------------------------------------------------ */ /* 4. FOOTER COPYRIGHT LINE */ +/* Now handled dynamically in base.html / base_authenticated.html */ +/* via {{ CURRENT_YEAR }} and {{ COMPANY_NAME }} — no CSS needed. */ /* ------------------------------------------------------------------ */ -.footer-content p { - font-size: 0; -} -.footer-content p::after { - content: "© 2025 GOV Services, Inc. All rights reserved."; - font-size: 0.875rem; - color: var(--gray-500); -} /* ------------------------------------------------------------------ */ /* 5. SIDEBAR GRADIENT — re-declare to pick up new variables */ diff --git a/templates/base.html b/templates/base.html index a107553..d3f2a37 100644 --- a/templates/base.html +++ b/templates/base.html @@ -67,7 +67,7 @@