diff --git a/app.py b/app.py index 5808e96..be8c595 100644 --- a/app.py +++ b/app.py @@ -22,7 +22,10 @@ def create_app() -> Flask: @app.context_processor def inject_globals() -> dict: - return {"is_admin": is_admin()} + return { + "app_version": app.config["APP_VERSION"], + "is_admin": is_admin(), + } app.register_blueprint(public_bp) app.register_blueprint(admin_bp) diff --git a/config.py b/config.py index f1c9d6a..e8d5d7b 100644 --- a/config.py +++ b/config.py @@ -8,6 +8,7 @@ BASE_DIR = Path(__file__).resolve().parent DATA_PATH = BASE_DIR / "data" / "entries.csv" ELIGIBLE_MIN_SESSIONS = 3 +APP_VERSION = "v1.8.4" def load_local_env(env_path: Path) -> None: @@ -29,6 +30,7 @@ load_local_env(BASE_DIR / ".env") class Config: + APP_VERSION: str = APP_VERSION SECRET_KEY: str = os.getenv("SECRET_KEY", "change-this-before-deploying") ADMIN_USERNAME: str = os.getenv("ADMIN_USERNAME", "admin") ADMIN_PASSWORD: str = os.getenv("ADMIN_PASSWORD", "change-me") diff --git a/static/css/style.css b/static/css/style.css index 50c4fc6..449212f 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -116,6 +116,37 @@ h1, h2, h3, h4 { margin: 0; } padding-right: 28px; } } +.site-footer { + margin-top: clamp(44px, 6vw, 76px); + padding-top: 18px; + border-top: 1px solid var(--divider); + display: grid; + grid-template-columns: 1fr auto 1fr; + align-items: center; + gap: 8px 18px; + color: var(--faintest); + font-size: 12.5px; +} +.site-footer span { + white-space: nowrap; +} +.site-footer span:nth-child(2) { + color: var(--muted); + justify-self: center; +} +.site-footer span:nth-child(3) { + justify-self: end; +} +@media (max-width: 640px) { + .site-footer { + grid-template-columns: 1fr; + justify-items: start; + } + .site-footer span:nth-child(2), + .site-footer span:nth-child(3) { + justify-self: start; + } +} /* ================================================================ FLASH MESSAGES diff --git a/static/favicon.svg b/static/favicon.svg new file mode 100644 index 0000000..fe83d79 --- /dev/null +++ b/static/favicon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/templates/base.html b/templates/base.html index 4188485..d54121c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,6 +4,7 @@ {% block title %}myboker.org{% endblock %} + @@ -47,6 +48,12 @@ {% endwith %} {% block content %}{% endblock %} + +