Django 5.2 with dev/test/prod settings, SQLite tuned for Litestream (WAL, IMMEDIATE transactions), ULID primary keys via a shared base model, and a custom User model ahead of the first migration. Minimal accessible base template with dark mode via color-scheme and an optional theme picker. /healthz answers before host validation so Fly checks pass. Dockerfile (dev and prod targets), compose for local dev, fly.toml with placeholder app/region, Litestream backups to B2, and a Forgejo Actions workflow. Migrations run in bin/start because Fly release machines don't mount volumes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
{% load static %}<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="color-scheme" content="light dark">
|
|
<title>{% block title %}Intent{% endblock %}</title>
|
|
{# Blocking on purpose: applies the saved theme before first paint. #}
|
|
<script src="{% static 'js/theme.js' %}"></script>
|
|
<link rel="stylesheet" href="{% static 'css/intent.css' %}">
|
|
</head>
|
|
<body>
|
|
<a class="skip-link" href="#main">Skip to content</a>
|
|
<header>
|
|
<nav aria-label="Main">
|
|
<a href="{% url 'home' %}">Intent</a>
|
|
</nav>
|
|
</header>
|
|
<main id="main" tabindex="-1">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
<footer>
|
|
{# Shown by theme.js; without JS the system preference applies. #}
|
|
<form id="theme-form" hidden>
|
|
<label for="theme-select">Theme</label>
|
|
<select id="theme-select" name="theme">
|
|
<option value="system">System</option>
|
|
<option value="light">Light</option>
|
|
<option value="dark">Dark</option>
|
|
</select>
|
|
</form>
|
|
</footer>
|
|
</body>
|
|
</html>
|