firebreak/web/app/templates/index.html

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="http://myst-forgejo-pk9mpr-31e452-76-13-111-87.sslip.io/assets/img/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 %}