Scaffold Phase 0: Django project, deploy config, base layout
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>
2026-10-27 06:59:34 -04:00
|
|
|
{% 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' %}">
|
2026-10-27 07:10:27 -04:00
|
|
|
{% block head %}{% endblock %}
|
Scaffold Phase 0: Django project, deploy config, base layout
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>
2026-10-27 06:59:34 -04:00
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<a class="skip-link" href="#main">Skip to content</a>
|
|
|
|
|
<header>
|
|
|
|
|
<nav aria-label="Main">
|
2026-10-27 07:10:27 -04:00
|
|
|
<ul>
|
|
|
|
|
<li><a href="{% url 'home' %}">Intent</a></li>
|
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
|
<li><a href="{% url 'invites:list' %}">Invitations</a></li>
|
|
|
|
|
<li><a href="{% url 'account_email' %}">Account</a></li>
|
|
|
|
|
<li>
|
|
|
|
|
<form method="post" action="{% url 'account_logout' %}">
|
|
|
|
|
{% csrf_token %}
|
|
|
|
|
<button type="submit">Sign out <span class="visually-hidden">{{ user.username }}</span></button>
|
|
|
|
|
</form>
|
|
|
|
|
</li>
|
|
|
|
|
{% else %}
|
|
|
|
|
<li><a href="{% url 'account_login' %}">Sign in</a></li>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</ul>
|
Scaffold Phase 0: Django project, deploy config, base layout
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>
2026-10-27 06:59:34 -04:00
|
|
|
</nav>
|
|
|
|
|
</header>
|
|
|
|
|
<main id="main" tabindex="-1">
|
2026-10-27 07:10:27 -04:00
|
|
|
{% if messages %}
|
|
|
|
|
<ul class="messages" role="status">
|
|
|
|
|
{% for message in messages %}
|
|
|
|
|
<li>{% if message.level_tag == "error" %}<strong>Error:</strong> {% endif %}{{ message }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
{% endif %}
|
Scaffold Phase 0: Django project, deploy config, base layout
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>
2026-10-27 06:59:34 -04:00
|
|
|
{% 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>
|
2026-10-27 07:10:27 -04:00
|
|
|
{% block body_end %}{% endblock %}
|
Scaffold Phase 0: Django project, deploy config, base layout
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>
2026-10-27 06:59:34 -04:00
|
|
|
</body>
|
|
|
|
|
</html>
|