04/16 Update the page footer
This commit is contained in:
@@ -100,10 +100,11 @@ def create_app() -> Flask:
|
|||||||
|
|
||||||
@app.context_processor
|
@app.context_processor
|
||||||
def inject_company_name():
|
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 {
|
return {
|
||||||
'COMPANY_NAME': os.environ.get('COMPANY_NAME', 'QR Code Management System'),
|
'COMPANY_NAME': os.environ.get('COMPANY_NAME', 'QR Code Management System'),
|
||||||
'THEME_NAME': os.environ.get('THEME_NAME', ''),
|
'THEME_NAME': os.environ.get('THEME_NAME', ''),
|
||||||
|
'CURRENT_YEAR': datetime.now().year,
|
||||||
}
|
}
|
||||||
|
|
||||||
@app.context_processor
|
@app.context_processor
|
||||||
|
|||||||
@@ -28,12 +28,12 @@
|
|||||||
/* 1. COLOR PALETTE — GOV Services green */
|
/* 1. COLOR PALETTE — GOV Services green */
|
||||||
/* ------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------ */
|
||||||
:root {
|
:root {
|
||||||
/* Primary brand color: institutional green */
|
/* Primary brand color: bright institutional green */
|
||||||
--primary-color: #1a6b3c;
|
--primary-color: #16a34a;
|
||||||
--primary-hover: #145530;
|
--primary-hover: #15803d;
|
||||||
|
|
||||||
/* Accent used for links, focus rings, active states */
|
/* Accent used for links, focus rings, active states */
|
||||||
--info-color: #1a6b3c;
|
--info-color: #16a34a;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------ */
|
||||||
@@ -70,15 +70,9 @@
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------ */
|
||||||
/* 4. FOOTER COPYRIGHT LINE */
|
/* 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 */
|
/* 5. SIDEBAR GRADIENT — re-declare to pick up new variables */
|
||||||
|
|||||||
+1
-1
@@ -67,7 +67,7 @@
|
|||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="footer-content">
|
<div class="footer-content">
|
||||||
<p>© 2025 QR Code Management System. All rights reserved.</p>
|
<p>© {{ CURRENT_YEAR }} {{ COMPANY_NAME }}. All rights reserved.</p>
|
||||||
<div class="footer-links">
|
<div class="footer-links">
|
||||||
<a href="#" class="footer-link">Privacy Policy</a>
|
<a href="#" class="footer-link">Privacy Policy</a>
|
||||||
<a href="#" class="footer-link">Terms of Service</a>
|
<a href="#" class="footer-link">Terms of Service</a>
|
||||||
|
|||||||
@@ -221,7 +221,7 @@
|
|||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="footer-content">
|
<div class="footer-content">
|
||||||
<p>© 2025 QR Code Management System. All rights reserved.</p>
|
<p>© {{ CURRENT_YEAR }} {{ COMPANY_NAME }}. All rights reserved.</p>
|
||||||
<div class="footer-links">
|
<div class="footer-links">
|
||||||
<a href="#" class="footer-link">Privacy Policy</a>
|
<a href="#" class="footer-link">Privacy Policy</a>
|
||||||
<a href="#" class="footer-link">Terms of Service</a>
|
<a href="#" class="footer-link">Terms of Service</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user