Files
Evection/templates/base.html
T
ksmithandClaude Sonnet 5 20dd61e938 Add the logo to login/setup pages and raise light-mode contrast
The brand logo only appeared in the sidebar, so unauthenticated pages
(login, first-run setup, create-user) had no branding at all. Added an
.auth-brand block to base.html's shared unauthenticated shell so all
three get it automatically, and generalized the theme-swapped logo
show/hide rules (previously scoped to .sidebar-brand) so the same
.brand-wordmark-dark/.brand-wordmark-light classes work in both places —
safe to de-scope since neither .sidebar-brand img nor .auth-brand img
touches `display`, so there's no repeat of the earlier specificity bug.

Raised light-mode contrast across the board (WCAG contrast vs white,
computed): --text-dim 3.64:1 -> 5.80:1 (was failing AA for normal text —
this is the timestamp/feed-name color, used constantly), --star 3.65:1 ->
5.0:1, --border 1.25:1 -> 1.58:1 (still a hairline by design, just more
visible), and widened the --bg/--bg-sidebar/--bg-row-hover/--bg-row-
selected tiers, which were previously all within a few points of white
and made the whole theme look flat.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-30 22:03:13 -06:00

60 lines
2.2 KiB
HTML

{% load static %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Evection{% endblock %}</title>
<link rel="stylesheet" href="{% static 'css/base.css' %}">
<script src="{% static 'js/htmx.min.js' %}" defer></script>
<script src="{% static 'js/theme-init.js' %}"></script>
<link rel="manifest" href="{% url 'pwa:manifest' %}">
<meta name="theme-color" content="#0f2038">
<link rel="icon" href="{% static 'pwa/icons/icon-192.png' %}">
<link rel="apple-touch-icon" href="{% static 'pwa/icons/apple-touch-icon.png' %}">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="Evection">
</head>
<body hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
{% if user.is_authenticated %}
<div class="app-shell">
{% include "core/_sidebar.html" %}
<div class="app-main">
<header class="app-topbar">
<form method="get" action="{% url 'search:search' %}" class="topbar-search">
<input type="search" name="q" placeholder="Search words or #tags" aria-label="Search">
</form>
</header>
{% endif %}
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li class="message message-{{ message.tags }}">{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
<main class="{% if user.is_authenticated %}app-content{% else %}auth-content{% endif %}">
{% if not user.is_authenticated %}
<div class="auth-brand">
<img src="{% static 'img/brand-full-dark.png' %}" alt="Evection" class="brand-wordmark-dark">
<img src="{% static 'img/brand-full-light.png' %}" alt="Evection" class="brand-wordmark-light">
</div>
{% endif %}
{% block content %}{% endblock %}
</main>
{% if user.is_authenticated %}
</div>
</div>
{% endif %}
<script src="{% static 'js/stream.js' %}" defer></script>
{% if user.is_authenticated %}<script src="{% static 'js/theme.js' %}" defer></script>{% endif %}
<script src="{% static 'js/register-sw.js' %}" defer></script>
</body>
</html>