firebreak/web/app/templates/index.html
Zach Tatman 200226015e
[codex] Update boilerplate UI design system (#12)
* feat(web): Jinja2 + HTMX + Pico CSS boilerplate

- Add jinja2, aiofiles, jinja2-fragments, python-multipart deps
- Wire up Jinja2Blocks (jinja2-fragments) and static file serving
- Create base.html (Pico Jade theme, HTMX, nav with auth state)
- Create index.html (landing) and dashboard.html (user profile)
- Add get_optional_session dependency for anonymous template context
- Refactor get_current_session to share session lookup logic

* feat(web): replace Pico CSS with Tailwind standalone CLI (dark+pink theme)

- Download Tailwind v4.3.0 standalone CLI binary (gitignored)
- Define custom dark+pink theme tokens in input.css
- Add dev.sh for parallel Tailwind watcher + uvicorn
- Update Dockerfile to build Tailwind during image build
- Update templates with Tailwind utility classes
- Generate minified output.css at build time

* Update boilerplate UI design system

* Refine Forgejo sign-in button

* feat(ui): adjust starting ui template html structure and theme styling

* refactor(ui): normalize Tailwind design tokens

* refactor(ui): fix Forgejo token input styling and validation styling

* refactor(ui): move panel titles and sub titles outside panels

* refactor(ui): vendor forgejo logo svg from /web/static/img
2026-05-26 22:50:25 -04:00

80 lines
3.5 KiB
HTML

{% extends "base.html" %}
{% block title %}Myst — share Forgejo repositories easily{% endblock %}
{% block content %}
<section class="grid min-h-[calc(100vh-9rem)] items-center gap-8 py-6 lg:grid-cols-[0.9fr_1.1fr]">
<div class="max-w-2xl">
<p class="section-header-primary">Secure repository snapshots</p>
<h1 class="mt-4 text-4xl font-semibold leading-tight tracking-normal text-foreground sm:text-[3.25rem] sm:leading-[1.05]">
Myst
</h1>
<p class="max-w-xl mt-4 text-base leading-7 text-muted-foreground">
Share pinned Forgejo repository snapshots through read-only links with expiration,
revocation, and audit visibility built in.
</p>
<div class="flex flex-wrap items-center gap-3 mt-8">
{% if user %}
<a href="/dashboard" class="btn btn-primary">Open dashboard</a>
{% else %}
<a href="/auth/login/forgejo" class="btn btn-primary">
<img src="/static/img/forgejo-logo.svg"
alt=""
width="16"
height="16"
class="size-4 shrink-0 brightness-0 invert dark:invert-0"
aria-hidden="true" />
<span>Sign in with Forgejo</span>
</a>
{% endif %}
<span class="text-sm text-muted-foreground">Time-limited. Read-only. Auditable.</span>
</div>
</div>
<div class="card rounded-xl">
<div class="flex items-center justify-between card-header">
<div>
<p class="card-header-label">Activity</p>
<h2 class="card-header-title">Repository snapshots</h2>
</div>
<span>
<svg xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 256 256"
class="text-muted-foreground"
fill="currentColor">
<path d="M200,136a8,8,0,0,1-8,8H64a8,8,0,0,1,0-16H192A8,8,0,0,1,200,136Zm32-56H24a8,8,0,0,0,0,16H232a8,8,0,0,0,0-16Zm-80,96H104a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Z">
</path>
</svg>
</span>
</div>
<div>
<div class="flex justify-between items-center px-4 py-3 border-b border-border-subtle">
<div>
<p class="font-mono text-[13px] leading-5 text-foreground">infra/deployment</p>
<p class="mt-1 text-xs text-muted-foreground">Pinned commit 9f2a1c8 · expires in 7 days</p>
</div>
<div class="place-content-center">
<span class="self-start badge-success">Active</span>
</div>
</div>
<div class="flex justify-between items-center px-4 py-3 border-b border-border-subtle">
<div>
<p class="font-mono text-[13px] leading-5 text-foreground">audit/policies</p>
<p class="mt-1 text-xs text-muted-foreground">Pinned commit 31e0b77 · revoked yesterday</p>
</div>
<div class="place-content-center">
<span class="self-start badge-danger">Revoked</span>
</div>
</div>
<div class="flex justify-between items-center px-4 py-3 border-b border-border-subtle">
<div>
<p class="font-mono text-[13px] leading-5 text-foreground">platform/utils</p>
<p class="mt-1 text-xs text-muted-foreground">Pinned commit a81dc40 · 14 views</p>
</div>
<div class="place-content-center">
<span class="self-start badge-expired">Expired</span>
</div>
</div>
</div>
</div>
</section>
{% endblock %}