style(web): design token system + Firebreak branding pass

Dark-only Tailwind v4 @theme tokens, cinematic landing hero, operational
dashboard styling, and the Firebreak logo/wordmark assets. Templates use
semantic component classes instead of inline styles and color literals.
This commit is contained in:
ZTatman 2026-06-10 16:58:30 -04:00
parent 55d2718968
commit 4a3d045b85
7 changed files with 445 additions and 333 deletions

View file

@ -11,30 +11,37 @@
--color-brand-red: #c62030;
--color-brand-flame: #f04a36;
--color-background: var(--color-brand-obsidian);
--color-foreground: var(--color-brand-cream);
--color-card: #1f2226;
--color-card-foreground: var(--color-brand-cream);
--color-muted: #282b30;
--color-background: oklch(0.175 0.008 260);
--color-foreground: oklch(0.985 0.003 270);
--color-card: oklch(0.22 0.012 258);
--color-card-foreground: oklch(0.985 0.003 270);
--color-muted: oklch(0.26 0.014 258);
--color-muted-foreground: var(--color-brand-ash);
--color-accent: #2f2728;
--color-accent-foreground: var(--color-brand-cream);
--color-elevated: oklch(0.24 0.012 258);
--color-elevated-foreground: oklch(0.985 0.003 270);
--color-accent: oklch(0.25 0.015 255);
--color-accent-foreground: oklch(0.985 0.003 270);
--color-primary: #2a2d31;
--color-primary-foreground: var(--color-brand-cream);
--color-primary-hover: var(--color-brand-obsidian);
--color-primary-muted: rgb(247 242 232 / 14%);
--color-secondary: #282b30;
--color-secondary-foreground: var(--color-brand-cream);
--color-border: #34373d;
--color-border-subtle: #282b30;
--color-input: #1f2226;
--color-ring: var(--color-brand-cream);
--color-ring-muted: rgb(247 242 232 / 18%);
--color-secondary: oklch(0.26 0.014 258);
--color-secondary-foreground: oklch(0.985 0.003 270);
--color-border: oklch(0.3 0.016 256);
--color-border-subtle: oklch(0.24 0.01 258);
--color-input: oklch(0.2 0.01 258);
--color-ring: oklch(0.65 0.12 55);
--color-ring-muted: oklch(0.4 0.07 50 / 0.35);
--color-header: var(--color-brand-jet);
--color-header-foreground: var(--color-brand-cream);
--color-panel: #1f2226;
--color-panel-foreground: var(--color-brand-cream);
--color-overlay: var(--color-brand-obsidian);
--color-header-foreground: oklch(0.985 0.003 270);
--color-panel: oklch(0.22 0.012 258);
--color-panel-foreground: oklch(0.985 0.003 270);
--color-overlay: oklch(0.14 0.006 260);
--color-hero-ember: oklch(0.58 0.2 34 / 0.22);
--color-hero-burn: var(--color-brand-flame);
--color-slate: oklch(0.55 0.04 250);
--color-slate-foreground: oklch(0.985 0.003 270);
--color-slate-muted: oklch(0.26 0.035 245);
--color-success: oklch(75% 0.12 150);
--color-success-foreground: oklch(82% 0.12 150);
--color-success-muted: oklch(32% 0.07 150);
@ -56,10 +63,12 @@
--radius-xl: 0.5rem;
--radius-2xl: 0.75rem;
--shadow-card: 0 1px 2px rgb(0 0 0 / 22%);
--shadow-hero-logo: 0 14px 34px rgb(0 0 0 / 55%);
--shadow-hero-text: 0 4px 18px rgb(0 0 0 / 72%);
--shadow-hero-panel: 0 18px 50px rgb(0 0 0 / 24%);
--shadow-card: 0 1px 3px rgb(0 0 0 / 30%), 0 1px 2px rgb(0 0 0 / 18%);
--shadow-elevated: 0 4px 12px rgb(0 0 0 / 35%), 0 1px 3px rgb(0 0 0 / 20%);
--shadow-hero-logo: 0 14px 34px rgb(0 0 0 / 28%);
--shadow-hero-text: 0 4px 18px rgb(0 0 0 / 40%);
--shadow-hero-copy: 0 4px 18px rgb(0 0 0 / 62%);
--glow-hero: 0 0 80px oklch(0.58 0.2 34 / 0.16);
}
@layer base {
@ -74,7 +83,7 @@
}
body {
@apply bg-background text-foreground antialiased;
@apply antialiased bg-background text-foreground;
letter-spacing: 0;
}
@ -90,10 +99,6 @@
}
@layer components {
.skip-link {
@apply fixed left-4 top-4 z-50 -translate-y-16 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground opacity-0 transition focus-visible:translate-y-0 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background;
}
.btn {
@apply inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 py-2.5 text-sm font-medium transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50;
}
@ -106,24 +111,12 @@
@apply px-3 py-2 text-sm;
}
.btn-md {
@apply px-4 py-2.5 text-sm;
}
.btn-lg {
@apply px-5 py-3 text-base;
}
.btn-primary {
@apply bg-primary text-primary-foreground hover:bg-primary-hover hover:text-primary-foreground;
@apply border border-foreground/12 bg-primary text-primary-foreground hover:border-brand-flame/45 hover:bg-primary-hover hover:text-primary-foreground;
}
.btn-secondary {
@apply border border-border bg-card text-secondary-foreground hover:border-border hover:bg-accent hover:text-accent-foreground;
}
.btn-borderless {
@apply bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground;
@apply border border-foreground/12 bg-card text-secondary-foreground hover:border-foreground/22 hover:bg-accent hover:text-accent-foreground;
}
.btn-danger {
@ -131,15 +124,36 @@
}
.btn-link {
@apply inline-flex items-center justify-center gap-2 rounded-sm bg-transparent px-0 py-1 text-sm font-medium text-muted-foreground underline decoration-border underline-offset-4 transition hover:text-foreground hover:decoration-brand-red focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-4 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50;
@apply relative inline-flex items-center justify-center gap-2 px-0 py-1 text-sm font-medium transition bg-transparent rounded-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-4 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50;
}
.btn-link::after {
content: "";
position: absolute;
inset-inline: 0;
bottom: 0.125rem;
height: 1px;
background: var(--color-brand-flame);
transform: scaleX(0);
transform-origin: left center;
transition: transform 160ms ease;
}
.btn-link:hover::after,
.btn-link:focus-visible::after {
transform: scaleX(1);
}
.btn-disabled {
@apply pointer-events-none border-foreground/8 bg-foreground/6 text-foreground/35;
}
.app-header {
position: relative;
z-index: 10;
position: sticky;
top: 0;
z-index: 50;
background: var(--color-header);
border-bottom: 0;
box-shadow: none;
border-bottom: 1px solid oklch(0.2 0.012 260 / 0.5);
}
.app-header a,
@ -153,32 +167,31 @@
stroke: none;
}
.brand-mark {
color: var(--color-brand-red);
}
.brand-wordmark {
color: var(--color-header-foreground);
}
.app-header .btn-borderless {
color: var(--color-header-foreground);
}
.app-header .btn-borderless:hover {
background: color-mix(in oklab, var(--color-header-foreground) 10%, transparent);
color: var(--color-header-foreground);
}
.app-header .btn-secondary {
background: color-mix(in oklab, var(--color-header-foreground) 8%, transparent);
border-color: color-mix(in oklab, var(--color-header-foreground) 18%, transparent);
background: color-mix(
in oklab,
var(--color-header-foreground) 8%,
transparent
);
border-color: color-mix(
in oklab,
var(--color-header-foreground) 18%,
transparent
);
color: var(--color-header-foreground);
}
.app-header .btn-secondary:hover {
background: color-mix(in oklab, var(--color-header-foreground) 14%, transparent);
border-color: color-mix(in oklab, var(--color-header-foreground) 28%, transparent);
background: color-mix(
in oklab,
var(--color-header-foreground) 14%,
transparent
);
border-color: color-mix(
in oklab,
var(--color-header-foreground) 28%,
transparent
);
color: var(--color-header-foreground);
}
@ -190,46 +203,182 @@
background: var(--color-background);
}
.hero-section {
@apply relative flex min-h-dvh w-full items-center justify-center overflow-hidden bg-background px-6 py-20 text-center text-foreground;
}
.hero-video {
@apply absolute inset-0 h-full w-full object-cover;
}
.hero-overlay {
@apply absolute inset-0 bg-overlay/65;
.hero-vignette {
@apply absolute inset-0 pointer-events-none;
background:
radial-gradient(
circle at center,
transparent 0,
transparent 30%,
color-mix(in oklab, var(--color-overlay) 38%, transparent)
62%,
color-mix(in oklab, var(--color-overlay) 90%, transparent)
100%
),
linear-gradient(
180deg,
color-mix(in oklab, var(--color-overlay) 64%, transparent) 0,
transparent 28%,
color-mix(in oklab, var(--color-overlay) 70%, transparent) 100%
),
radial-gradient(
ellipse at center,
color-mix(in oklab, var(--color-overlay) 10%, transparent) 0,
color-mix(in oklab, var(--color-overlay) 26%, transparent)
36%,
transparent 58%
);
}
.hero-vignette {
@apply absolute inset-0;
.hero-ember {
@apply absolute pointer-events-none;
inset: 12% 18% 18%;
background: radial-gradient(
circle at center,
transparent 0,
transparent 30%,
color-mix(in oklab, var(--color-overlay) 44%, transparent) 62%,
color-mix(in oklab, var(--color-overlay) 92%, transparent) 100%
var(--color-hero-ember) 0%,
color-mix(in oklab, var(--color-hero-ember) 35%, transparent) 35%,
transparent 70%
);
mix-blend-mode: screen;
}
.hero-content {
@apply relative z-10 flex w-full max-w-4xl flex-col items-center;
.hero-logo {
@apply h-auto w-full max-w-24 sm:max-w-32 lg:max-w-40;
filter:
drop-shadow(var(--shadow-hero-logo))
drop-shadow(var(--glow-hero));
}
.hero-brand {
@apply h-auto w-full max-w-36 sm:max-w-48 lg:max-w-60;
filter: drop-shadow(var(--shadow-hero-logo));
}
.hero-tagline {
@apply mt-8 max-w-2xl text-balance text-base font-medium leading-8 tracking-normal text-foreground/90 sm:text-lg sm:leading-9;
.hero-wordmark {
@apply h-auto w-full max-w-40 sm:max-w-48 lg:max-w-56;
filter: drop-shadow(var(--shadow-hero-text));
}
.hero-copy-panel {
@apply mt-7 max-w-xl rounded-lg border border-foreground/14 bg-background/42 px-5 py-4 text-sm leading-6 text-foreground/76 backdrop-blur-sm sm:text-[0.9375rem];
box-shadow: var(--shadow-hero-panel);
.hero-statement {
@apply relative isolate flex max-w-lg flex-col items-center text-balance px-4 py-2 text-foreground sm:max-w-xl;
filter: drop-shadow(var(--shadow-hero-copy));
}
.hero-statement::before {
content: "";
position: absolute;
z-index: -1;
inset: -1.5rem -3rem;
background: radial-gradient(
ellipse at center,
color-mix(in oklab, var(--color-overlay) 72%, transparent) 0,
color-mix(in oklab, var(--color-overlay) 44%, transparent) 42%,
transparent 72%
);
filter: blur(10px);
pointer-events: none;
}
.hero-burn-line {
@apply my-4 h-px w-16 rounded-full sm:my-5;
background: linear-gradient(
90deg,
transparent,
color-mix(in oklab, var(--color-brand-red) 85%, transparent) 18%,
var(--color-hero-burn) 50%,
color-mix(in oklab, var(--color-brand-red) 85%, transparent) 82%,
transparent
);
box-shadow:
0 0 14px
color-mix(in oklab, var(--color-brand-flame) 45%, transparent),
0 0 1px var(--color-brand-cream);
}
.hero-meta {
@apply absolute inset-x-4 z-10 flex flex-wrap items-center justify-center gap-x-3 gap-y-2 text-[0.6875rem] font-semibold uppercase tracking-[0.12em] text-foreground/56 sm:text-xs;
bottom: clamp(1.5rem, 5dvh, 4rem);
filter: drop-shadow(var(--shadow-hero-text));
}
.hero-meta-separator {
@apply size-1 rounded-full;
background: var(--color-brand-flame);
box-shadow: 0 0 10px
color-mix(in oklab, var(--color-brand-flame) 55%, transparent);
}
.page-header {
@apply relative flex flex-col justify-between gap-6 pb-8 sm:flex-row sm:items-end;
}
.page-header::after {
content: "";
position: absolute;
inset-inline: 0;
bottom: 0;
height: 1px;
background: linear-gradient(
90deg,
color-mix(in oklab, var(--color-brand-flame) 46%, transparent),
color-mix(in oklab, var(--color-border) 80%, transparent) 28%,
transparent 100%
);
}
.notice-rail {
@apply border-l-2 border-warning px-5 py-1.5;
background: linear-gradient(
90deg,
color-mix(in oklab, var(--color-warning-muted) 42%, transparent),
transparent 72%
);
}
.table-panel {
@apply overflow-hidden rounded-lg border border-border bg-card;
box-shadow: var(--shadow-card);
}
.table-shell {
@apply overflow-x-auto;
}
.data-table {
@apply w-full min-w-[720px] text-left text-sm;
}
.data-table thead {
@apply border-b border-border bg-elevated text-xs font-semibold uppercase tracking-[0.12em] text-foreground/75;
}
.data-table th {
@apply px-4 py-2.5;
}
.data-table th:first-child,
.data-table td:first-child {
@apply pl-5;
}
.data-table th:last-child,
.data-table td:last-child {
@apply pr-5;
}
.data-table tbody {
@apply divide-y divide-border-subtle;
}
.data-table tbody tr:not(.table-empty) {
@apply transition-colors hover:bg-muted/30;
}
.data-table td {
@apply px-4 py-2.5;
}
.table-empty {
@apply text-center text-muted-foreground;
}
.setup-shell {
@ -238,66 +387,19 @@
.setup-logo {
@apply mx-auto h-auto w-full max-w-24;
}
.setup-title {
@apply mt-6 text-2xl font-semibold text-foreground;
}
.setup-copy {
@apply mt-2 text-sm leading-6 text-foreground/60;
}
.setup-link {
@apply text-foreground/80 underline underline-offset-2 hover:text-foreground;
}
.setup-help-panel {
@apply mb-8 rounded-lg border border-foreground/10 bg-card/60 px-5 py-4 text-xs leading-5 text-foreground/50;
}
.setup-help-title {
@apply mb-2.5 font-medium text-foreground/70;
}
.setup-strong {
@apply text-foreground/70;
}
.setup-code {
@apply mt-1 inline-block rounded bg-foreground/8 px-1.5 py-0.5 font-mono text-[10px] text-foreground/60;
filter: drop-shadow(var(--shadow-hero-logo));
}
.form-label {
@apply mb-1.5 block text-xs font-semibold uppercase tracking-[0.05em] text-foreground/50;
}
.form-label-note {
@apply ml-1 font-normal normal-case tracking-normal text-foreground/30;
}
.form-input {
@apply block w-full rounded-md border border-foreground/14 bg-input px-3 py-2.5 text-sm text-foreground placeholder:text-foreground/30 focus:border-foreground/30 focus:outline-none focus:ring-2 focus:ring-foreground/10;
}
.form-input-mono {
@apply font-mono;
}
.form-hint {
@apply mt-1.5 text-xs text-foreground/30;
}
.form-hint-code {
@apply font-mono text-foreground/40;
}
.error-shell {
@apply relative flex min-h-dvh items-center justify-center overflow-hidden px-6 py-20;
}
.error-backdrop-logo {
@apply absolute inset-bs-8 opacity-50;
@apply absolute left-1/2 -translate-x-1/2 opacity-50 inset-bs-8;
width: 100%;
height: 100%;
max-width: 800px;
@ -309,26 +411,6 @@
height: auto;
}
.error-content {
@apply relative z-10 w-full max-w-md text-center;
}
.error-code {
@apply text-8xl font-bold text-foreground/20 sm:text-9xl;
}
.error-title {
@apply mt-1 text-xl font-semibold text-foreground;
}
.error-detail {
@apply mt-4 text-sm leading-6 text-foreground/60;
}
.error-quip {
@apply text-xs italic text-foreground/30;
}
@keyframes creep-in {
from {
opacity: 0;
@ -444,7 +526,8 @@
background: var(--color-brand-red);
box-shadow:
0 0 8px 2px var(--color-brand-red),
0 0 24px 6px color-mix(in oklab, var(--color-brand-red) 45%, transparent);
0 0 24px 6px
color-mix(in oklab, var(--color-brand-red) 45%, transparent);
animation: laser-pulse 2s ease-in-out infinite;
animation-delay: 7.5s;
animation-fill-mode: both;
@ -472,8 +555,10 @@
color-mix(in oklab, var(--color-brand-red) 0%, transparent)
);
box-shadow:
0 0 8px 2px color-mix(in oklab, var(--color-brand-red) 67%, transparent),
0 0 20px 4px color-mix(in oklab, var(--color-brand-red) 27%, transparent);
0 0 8px 2px
color-mix(in oklab, var(--color-brand-red) 67%, transparent),
0 0 20px 4px
color-mix(in oklab, var(--color-brand-red) 27%, transparent);
opacity: 0;
transform-origin: left center;
}
@ -492,8 +577,10 @@
background: var(--color-brand-red) !important;
color: var(--color-brand-cream) !important;
box-shadow:
0 0 12px 4px color-mix(in oklab, var(--color-brand-red) 50%, transparent),
0 0 30px 8px color-mix(in oklab, var(--color-brand-red) 25%, transparent);
0 0 12px 4px
color-mix(in oklab, var(--color-brand-red) 50%, transparent),
0 0 30px 8px
color-mix(in oklab, var(--color-brand-red) 25%, transparent);
animation: rattle 0.15s linear infinite;
}
@ -524,56 +611,41 @@
height: auto;
}
.section-header-subtle {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground;
}
.badge {
@apply rounded-full px-2.5 py-1 text-xs font-medium;
}
.badge-success {
@apply rounded-full bg-success-muted px-2.5 py-1 text-xs font-medium text-success-foreground;
}
.badge-warning {
@apply rounded-full bg-warning-muted px-2.5 py-1 text-xs font-medium text-warning-foreground;
@apply rounded-full px-2.5 py-1 text-xs font-medium;
background: color-mix(in oklab, var(--color-warning) 30%, transparent);
border: 1px solid color-mix(in oklab, var(--color-warning) 42%, transparent);
color: var(--color-warning-foreground);
}
.badge-danger {
@apply rounded-full bg-danger-muted px-2.5 py-1 text-xs font-medium text-danger-foreground;
@apply rounded-full px-2.5 py-1 text-xs font-medium;
background: color-mix(in oklab, var(--color-danger) 30%, transparent);
border: 1px solid color-mix(in oklab, var(--color-danger) 42%, transparent);
color: var(--color-danger-foreground);
}
.badge-expired {
@apply rounded-full bg-expired-muted px-2.5 py-1 text-xs font-medium text-expired-foreground;
@apply rounded-full px-2.5 py-1 text-xs font-medium;
background: color-mix(in oklab, var(--color-expired) 26%, transparent);
border: 1px solid color-mix(in oklab, var(--color-expired) 38%, transparent);
color: var(--color-expired-foreground);
}
.badge-slate {
@apply rounded-full px-2.5 py-1 text-xs font-medium;
background: color-mix(in oklab, var(--color-slate) 32%, transparent);
border: 1px solid color-mix(in oklab, var(--color-slate) 44%, transparent);
color: oklch(0.82 0.04 250);
}
.card {
@apply rounded-lg border border-border bg-card text-card-foreground;
@apply border rounded-lg border-border bg-card text-card-foreground;
box-shadow: var(--shadow-card);
}
.card-header {
@apply border-b border-border px-4 py-3;
}
.card-header-label {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground;
}
.card-header-title {
@apply mt-1 text-base font-semibold text-card-foreground;
}
.card-body {
@apply px-4 py-4;
}
.input-mono {
@apply rounded-md border border-border bg-input px-3 py-2 font-mono text-[13px] leading-5 text-foreground transition placeholder:text-muted-foreground focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring-muted;
}
.input-error {
@apply text-sm font-medium text-danger-foreground;
}
}

View file

@ -0,0 +1,12 @@
<svg width="560" height="96" viewBox="0 0 560 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M239.045 0.0319824C240.53 1.43298 240.04 32.507 240.04 36.579C247.645 30.781 255.661 26.693 265.554 28.157C287.473 31.399 298.726 58.306 288.737 77.177C285.609 83.087 282.182 86.355 276.881 90.212C264.339 98.164 251.833 95.186 240.56 87.028C240.564 89.632 240.291 91.367 239.954 93.926C235.389 93.806 230.673 93.934 226.096 93.997C225.471 64.562 226.406 34.452 225.99 4.88702C230.259 3.63802 234.869 1.68498 239.045 0.0319824ZM260.64 81.431C284.761 76.056 282.438 38.664 255.615 41.617C249.413 44.028 244.263 47.121 241.468 53.456C237.184 63.166 240.963 76.132 251.256 79.975C254.258 81.071 257.447 81.566 260.64 81.431Z" fill="#F7F2E8"/>
<path d="M376.834 28.126C392.589 25.95 407.281 34.637 411.99 49.807C413.916 56.008 413.713 60.747 413.639 67.103C396.945 67.006 380.25 67.017 363.557 67.138C370.021 84.748 383.312 85.1801 398.211 77.7621C399.505 76.9421 399.654 76.7261 401.176 76.4131C404.595 77.4261 405.973 81.212 407.828 84.474C396.781 96.566 375.369 98.422 362.001 89.035C354.887 83.959 350.104 76.245 348.721 67.617C345.602 48.074 357.101 31.357 376.834 28.126ZM363.575 55.286C370.086 55.465 376.064 55.24 382.569 55.013C387.325 54.943 393.355 55.0171 397.989 54.5381C394.911 45.4401 390.287 40.019 379.923 40.6451C370.034 42.507 366.785 45.807 363.575 55.286Z" fill="#F7F2E8"/>
<path d="M450.783 27.678C463.381 26.391 478.525 32.427 480.177 45.961C482.013 60.992 481.097 78.711 481.059 93.967C476.834 93.911 471.01 94.4351 467.07 93.843C466.173 92.7681 466.562 91.536 466.57 89.699L466.096 89.326C453.885 95.572 438.62 99.262 427.46 87.26C425.658 85.322 424.818 83.109 423.811 80.698C418.781 55.154 448.1 51.963 466.25 54.217C464.708 33.354 441.917 39.683 430.435 48.858C428.5 45.379 426.645 42.293 424.541 38.909C433.821 31.827 439.131 29.112 450.783 27.678ZM449.019 83.188C456.215 83.371 462.633 80.747 466.804 74.728C466.664 71.366 466.477 67.953 466.484 64.591C463.339 64.763 460.779 64.773 457.63 64.733C451.389 64.994 444.694 64.968 440.086 69.845C436.914 73.204 436.393 77.565 440.481 80.382C443.187 82.246 445.834 82.811 449.019 83.188Z" fill="#F7F2E8"/>
<path d="M174.311 28.08C176.186 27.896 178.071 27.833 179.955 27.892C193.937 28.217 205.662 34.908 209.952 48.858C211.943 55.331 211.684 60.202 211.383 66.932C196.105 67.643 177.607 67.171 162.094 67.152C162.639 69.086 163.385 70.958 164.319 72.738C166.757 77.356 171.023 80.738 176.077 82.059C183.72 83.987 190.477 81.327 196.849 77.483C199.815 75.366 200.807 75.413 203.029 78.609C204.363 80.529 205.591 82.78 206.818 84.789C173.446 112.422 131.378 79.806 152.853 41.469C157.246 33.626 165.956 29.849 174.311 28.08ZM161.667 55.506C167.996 55.435 174.931 55.014 181.09 55.067C183.945 55.173 194.052 56.118 195.85 54.463C196.244 44.36 185.451 40.41 176.934 40.624C167.477 43.2 165.106 46.657 161.667 55.506Z" fill="#F7F2E8"/>
<path d="M510.587 0C511.181 0.054 510.77 -0.00898048 511.77 0.39502C512.16 19.151 511.996 38.453 512.018 57.239C519.805 48.965 529.089 38.101 536.717 29.52C543.54 29.56 550.363 29.514 557.184 29.382C548.665 38.491 539.906 47.019 531.014 55.757C538.813 66.164 546.737 76.478 554.783 86.695C555.562 87.968 558.892 92.115 559.962 93.521C554.024 93.506 548.088 93.681 542.162 94.048C537.701 89.416 525.057 72.37 520.404 66.438C517.653 69.067 515.051 71.158 512.094 73.559C511.931 80.282 512.076 87.533 512.092 94.296C507.521 94.072 502.222 94.228 497.597 94.255C497.181 64.483 497.492 34.175 497.415 4.33301C501.414 3.34401 506.602 1.381 510.587 0Z" fill="#F7F2E8"/>
<path d="M0.0149994 5.42902C20.369 5.93702 43.334 5.41398 63.895 5.47198C61.753 10.076 60.057 14.631 58.243 19.362C47.704 18.42 26.906 19.033 15.505 19.065L15.541 42.469C19.604 42.424 49.409 42.026 50.987 42.971L50.897 44.612C50.257 48.455 49.469 52.264 48.836 56.149C37.717 55.948 26.596 55.899 15.476 56.003L15.549 94.015L0 93.989L0.0149994 5.42902Z" fill="#F7F2E8"/>
<path d="M318.451 26.043L318.823 26.116C320.222 27.584 319.69 36.849 319.649 39.455C328.361 31.502 333.189 30.515 344.3 27.326C344.2 32.073 344.303 37.139 344.315 41.913C333.744 44.954 327.319 46.541 320.563 55.542L320.523 69.245L320.546 93.565C315.602 93.516 311.286 93.54 306.317 93.762C305.626 73.468 306.044 50.816 306.004 30.409C310.106 28.823 314.257 27.368 318.451 26.043Z" fill="#F7F2E8"/>
<path d="M118.058 26.01L118.792 26.513C119.261 30.074 119.091 36.224 119.097 40.004C128.728 32.089 132.245 30.99 144.057 27.502C144.041 32.331 143.921 37.263 144.369 42.062C133.869 44.569 127.89 47.132 120.539 54.929L120.496 69.245L120.527 94.027L105.912 93.938C105.635 73.111 105.962 51.423 105.994 30.547C110.156 28.83 113.8 27.48 118.058 26.01Z" fill="#F7F2E8"/>
<path d="M87.61 27.166L88.113 27.305C88.879 28.853 88.576 88.127 88.576 94.012L74.541 94.01C74.477 93.966 74.397 93.94 74.349 93.879C72.844 91.962 73.564 36.012 73.551 30.329C78.393 29.126 82.684 28.091 87.61 27.166Z" fill="#F7F2E8"/>
<path d="M77.945 1.83897C81.329 0.76297 85.031 1.61299 87.606 4.05699C90.181 6.50199 91.223 10.1539 90.325 13.5899C89.426 17.0249 86.73 19.7 83.288 20.571C78.181 21.863 72.973 18.862 71.528 13.797C70.083 8.73198 72.925 3.43497 77.945 1.83897Z" fill="#F7F2E8"/>
</svg>

After

Width:  |  Height:  |  Size: 5.1 KiB

View file

@ -2,13 +2,14 @@
<path d="M377.962 129.188C385.411 128.358 400.217 129.01 406.209 133.886C413.904 140.147 412.291 141.893 422.547 143.756C421.628 160.141 424.421 155.076 430.312 167.016C434.602 178.302 439.545 190.292 442.356 201.998C445.601 215.507 432.515 224.911 451.216 229.969C446.32 253.35 459.456 263.677 480.027 267.911C462.104 273.673 455.434 280.725 450.843 298.856C449.37 304.277 447.525 309.812 446.463 315.322C444.889 323.49 444.488 331.703 438.473 338.129C436.534 340.201 434.568 341.721 432.327 343.476C432.958 346.046 433.71 348.707 434.399 351.274C425.856 364.031 421.845 377.694 413.283 390.288C410.748 394.017 408.476 397.854 406.498 401.912C431.658 396.635 449.39 388.554 471.358 375.723C465.386 384.405 456.796 396.09 449.198 403.364C441.405 410.63 433.158 417.326 425.363 424.611C415.921 433.437 406.683 442.49 397.23 451.3C392.57 455.643 387.408 459.468 382.628 463.716C385.333 458.74 388.714 452.274 390.674 447.102C394.763 436.314 397.435 414.849 395.401 403.561C392.762 388.915 391.116 388.029 392.21 372.764C385.229 387.788 387.843 391.997 388.853 407.542C389.123 411.695 385.842 421.395 382.706 424.163C375.034 426.11 372.311 431.758 366.076 436.337C359.032 441.509 351.269 445.415 343.711 449.763C348.19 444.046 350.59 441.303 356.083 436.573C349.295 439.91 341.729 444.088 335.799 448.749C333.459 450.587 331.403 453.953 328.751 455.431C313.065 464.172 293.325 469.279 276.039 472.712C258.928 475.778 241.512 476.788 224.162 475.721C214.013 474.999 208.966 473.493 199.632 469.783C199.205 469.614 196.619 471.959 195.349 472.005C189.313 472.222 183.072 471.029 177.31 469.272C157.587 460.851 137.72 451.155 119.546 439.758C113.945 436.245 109.325 430.952 103.634 427.607C96.708 423.534 89.396 420.568 82.602 416.378C111.177 419.184 119.977 416.864 147.056 414.508C151.731 416.853 157.669 420.887 162.36 423.634C169.427 427.713 176.912 431.019 184.687 433.495C200.305 438.277 216.645 440.261 232.953 439.354C242.349 438.789 252.24 436.844 261.591 437.9C285.265 440.572 304.715 429.336 324.952 418.77L326.038 424.703C334.169 417.28 336.549 412.358 342.402 403.525C343.909 401.252 352.335 395.226 355.1 392.996C362.155 387.306 369.542 381.653 375.996 375.179C398.834 352.405 397.48 335.602 428.694 320.978C404.129 308.756 411.471 302.401 419.259 281.878C420.756 277.933 421.035 270.918 421.175 266.656C425.479 268.107 430.277 269.341 434.68 270.567C433.784 269.589 432.906 268.594 432.048 267.582C420.454 253.795 411.214 230.104 408.873 212.131C408.386 208.393 408.945 202.195 409.261 198.376C407.73 195.834 401.413 189.401 400.938 188.184C391.64 164.373 379.381 151.492 359.801 135.067C366.73 131.041 369.995 130.362 377.962 129.188Z" fill="#F7F2E8"/>
<path d="M233.09 0.233836C239.92 -0.550164 246.953 0.807827 253.728 1.79283C242.942 6.95983 233.51 9.77284 224.799 18.6518C211.193 32.4778 203.036 52.4348 202.226 71.7428C201.701 84.2438 204.18 95.4258 200.525 107.755C196.896 119.993 189.464 128.06 180.664 136.796C185.966 124.088 187.51 119.167 186.617 105.616C182.859 115.368 178.414 122.814 167.981 126.433C168.108 123.403 169.119 115.356 167.05 113.39C166.027 113.655 165.24 114.297 164.658 115.17C159.014 123.635 153.833 131.929 147.055 139.629C136.807 151.126 123.274 158.896 111.837 169.138C100.722 179.091 93.941 190.385 85.782 202.569C82.658 207.234 77.789 211.293 75.204 216.478C72.024 222.859 71.583 230.133 68.559 236.545C66.751 240.277 61.259 244.21 59.499 248.4C55.219 258.59 60.558 261.489 63.887 269.894C66.696 276.986 63.132 283.023 60.034 289.207C76.493 302.204 62.469 320.543 76.305 335.334C81.966 341.385 86.628 351.947 90.994 359.408C102.636 379.306 117.441 392.376 135.358 406.178C126.656 409.773 108.823 415.301 99.721 413.476C93.64 412.257 91.358 409.007 88.226 404.357C62.442 400.535 75.754 422.835 81.118 436.794C84.956 446.781 90.972 457.846 95.633 467.627C80.875 455.728 70.339 442.378 56.494 429.717C50.004 423.783 43.833 417.666 37.704 411.363C27.601 401.183 17.367 387.401 9.07001 375.795C14.478 378.808 19.28 382.412 25.181 385.498C40.18 393.343 54.036 396.27 70.312 399.064C56.907 383.747 49.129 368.374 41.22 349.856L47.14 353.238C43.236 345.434 37.962 336.712 34.82 328.753C35.195 326.153 36.024 322.598 36.57 319.944C35.051 317.799 29.407 310.199 28.567 308.256C25.684 301.589 25.272 293.991 22.384 286.725C17.915 275.48 10.472 271.542 0 266.979C19.649 264.03 34.605 247.297 29.595 226.935C33.332 225.178 37.073 223.071 40.714 221.095C39.847 217.611 37.029 209.094 35.714 205.857C27.59 185.845 47.007 178.747 53.997 164.814C57.965 156.907 58.542 143.283 64.029 133.218C75.733 111.748 92.948 94.1708 114.612 82.5658C121.073 79.1048 127.964 76.8178 134.758 74.5428C128.397 79.4308 122.414 84.7938 116.86 90.5838C106.665 101.327 98.586 114.076 98.795 129.561C98.85 133.652 100.296 136.776 103.338 139.452C105.443 141.303 108.883 142.651 111.712 142.052C129.245 138.335 145.112 109.966 151.098 94.9598C152.793 90.7118 154.446 79.3968 155.078 74.9898C157.244 59.8748 162.929 46.7948 172.274 34.7808C187.043 15.5188 208.981 3.05584 233.09 0.233836Z" fill="#F7F2E8"/>
<path d="M302.906 63.3759C324.544 68.7329 347.484 77.6769 366.374 89.6779C371.294 92.9379 375.736 97.3269 380.765 100.384C388.39 105.019 396.29 109.134 403.262 114.779C406.793 117.638 407.973 119.451 409.903 123.422C397.077 121.539 390.051 121.087 377.302 121.153C369.465 121.675 362.223 123.046 354.485 123.814C343.82 124.873 330.679 117.679 321.338 112.932C317.886 111.178 314.245 105.6 309.246 103.579C303.405 101.217 298.13 102.173 292.824 100.863C285.99 99.1749 278.719 96.9778 271.835 95.1358C276.31 90.4778 281.356 86.0619 285.853 81.4429C291.603 75.5379 297.278 69.4059 302.906 63.3759Z" fill="#F7F2E8"/>
<path d="M287.056 10.4429C288.037 11.3969 287.52 13.4899 287.303 14.7619C281.065 51.3959 257.636 83.0359 227.436 104.285C229.836 97.4399 234.914 87.3949 238.097 80.8129C246.617 64.7889 256.313 49.4179 267.106 34.8279C255.57 38.1369 251.519 39.9349 241.219 45.5469C241.084 44.2189 240.834 40.9859 240.922 39.8279C241.384 33.7359 256.869 29.2769 262.106 27.1309C265.158 25.8869 268.112 24.4149 270.943 22.7289C276.714 19.2989 281.887 14.7429 287.056 10.4429Z" fill="#C62030"/>
<path d="M313.295 127.731C326.3 130.726 350.649 145.122 360.516 154.765C365.829 159.957 371.104 168.71 370.706 176.294C370.577 178.752 370.194 182.806 368.312 184.636C367.044 180.931 366.414 178.883 364.518 175.496C355.642 160.155 347.281 153.013 331.484 146.495C333.699 151.229 335.938 154.654 338.913 158.906C328.23 151.42 319.031 139.345 313.295 127.731Z" fill="#F04A36"/>
<path d="M135.504 384.543C139.568 385.886 150.072 391.509 155.134 393.578C175.841 402.041 194.371 406.735 216.5 409.936C212.334 411.154 207.55 412.128 203.279 413.095C200.573 413.511 197.76 414.362 195.1 415.079L200.952 420.249C196.758 419.368 192.594 418.351 188.466 417.199C171.288 412.324 144.646 400.866 135.504 384.543Z" fill="#C62030"/>
<path d="M377.687 183.898C379.552 185.267 383.983 192.853 385.126 195.036C395.247 214.352 398.461 234.795 400.779 256.162C398.497 253.472 395.878 249.815 393.705 246.951C383.873 232.804 380.907 227.958 377.006 211.575L385.181 220.88C383.437 211.047 378.321 192.628 377.687 183.898Z" fill="#F04A36"/>
<path d="M287.056 10.4429C288.037 11.3969 287.52 13.4899 287.303 14.7619C281.065 51.3959 257.636 83.0359 227.436 104.285C229.836 97.4399 234.914 87.3949 238.097 80.8129C246.617 64.7889 256.313 49.4179 267.106 34.8279C255.57 38.1369 251.519 39.9349 241.219 45.5469C241.084 44.2189 240.834 40.9859 240.922 39.8279C241.384 33.7359 256.869 29.2769 262.106 27.1309C265.158 25.8869 268.112 24.4149 270.943 22.7289C276.714 19.2989 281.887 14.7429 287.056 10.4429Z" fill="#F04A36"/>
<path d="M117 197.726C123.052 185.832 142.911 165.689 154.655 158.448C160.978 154.549 170.747 151.548 178.009 153.769C180.363 154.489 184.204 155.841 185.525 158.11C181.623 158.444 179.483 158.56 175.738 159.58C158.706 164.481 149.753 170.866 139.607 184.617C144.736 183.613 148.601 182.269 153.447 180.411C143.598 188.966 129.657 194.97 117 197.726Z" fill="#E23A32"/>
<path d="M313.295 127.731C326.3 130.726 350.649 145.122 360.516 154.765C365.829 159.957 371.104 168.71 370.706 176.294C370.577 178.752 370.194 182.806 368.312 184.636C367.044 180.931 366.414 178.883 364.518 175.496C355.642 160.155 347.281 153.013 331.484 146.495C333.699 151.229 335.938 154.654 338.913 158.906C328.23 151.42 319.031 139.345 313.295 127.731Z" fill="#C62030"/>
<path d="M137.214 381.081C141.146 382.773 151.12 389.29 155.982 391.793C175.873 402.028 193.923 408.319 215.689 413.437C211.432 414.287 206.582 414.84 202.243 415.432C199.511 415.61 196.634 416.213 193.922 416.695L199.301 422.355C195.2 421.112 191.14 419.736 187.128 418.229C170.441 411.875 144.899 398.139 137.214 381.081Z" fill="#C62030"/>
<path d="M377.687 183.898C379.552 185.267 383.983 192.853 385.126 195.036C395.247 214.352 398.461 234.795 400.779 256.162C398.497 253.472 395.878 249.815 393.705 246.951C383.873 232.804 380.907 227.958 377.006 211.575L385.181 220.88C383.437 211.047 378.321 192.628 377.687 183.898Z" fill="#C62030"/>
<path d="M328.964 392.524L329.393 393.126C305.874 418.773 283.705 424.874 249.834 422.345C252.977 420.089 273.915 414.168 279.126 412.07C286.096 409.597 292.775 406.338 299.75 403.895C301.091 403.425 302.054 404.213 303.239 404.853C308.169 404.855 323.67 395.351 328.964 392.524Z" fill="#C62030"/>
<path d="M90.246 298C92.786 299.846 95.633 310.986 97.042 314.645C103.097 330.367 111.323 347.35 119.659 361.921C114.567 358.33 111.052 355.072 106.72 350.613C95.59 338.8 86.954 325.256 82 309.696L93.363 324.312C91.611 315.192 89.999 307.351 90.246 298Z" fill="#C62030"/>
<path d="M105.051 202.535L105.305 202.827C105.237 206.488 93.189 225.359 91.587 234.04C93.139 235.388 93.534 233.475 95.311 234.764C94.858 240.699 92.687 246.476 91.678 252.249C90.789 257.34 90.215 262.897 89.535 268.059L88.965 268.208C82.262 254.16 79.902 246.014 85.351 231.004C89.806 218.734 95.713 211.415 105.051 202.535Z" fill="#C62030"/>
<path d="M401.596 276.713C404.265 283.545 396.981 311.688 394.308 319.3L391.233 314.499C386.709 307.62 385.704 299.885 384.799 291.86C389.118 285.628 395.349 280.866 401.596 276.713Z" fill="#E23A32"/>
<path d="M383.222 318.362C383.812 319.528 384.142 320.983 384.332 322.268C386.525 337.098 383.732 345.071 375.024 356.974C367.081 367.831 356.567 376.413 343.097 378.576C346.105 374.81 352.659 370.215 356.435 366.233C359.063 363.46 366.8 352.512 368.899 351.734C370.399 352.657 369.77 352.56 371.347 352.601C378.414 346.511 381.048 327.399 383.222 318.362Z" fill="#E23A32"/>
<path d="M90.246 298C92.786 299.846 95.633 310.986 97.042 314.645C103.097 330.367 111.323 347.35 119.659 361.921C114.567 358.33 111.052 355.072 106.72 350.613C95.59 338.8 86.954 325.256 82 309.696L93.363 324.312C91.611 315.192 89.999 307.351 90.246 298Z" fill="#E23A32"/>
<path d="M104.719 211L104.973 211.292C104.905 214.953 92.8572 233.824 91.2552 242.505C92.8072 243.853 93.2022 241.94 94.9792 243.229C94.5262 249.164 92.3552 254.941 91.3462 260.714C90.4572 265.805 89.8832 271.362 89.2032 276.524L88.6332 276.673C81.9302 262.625 79.5702 254.479 85.0192 239.469C89.4742 227.199 95.3812 219.88 104.719 211Z" fill="#E23A32"/>
<path d="M401.596 276.713C404.265 283.545 396.981 311.688 394.308 319.3L391.233 314.499C386.709 307.62 385.704 299.885 384.799 291.86C389.118 285.628 395.349 280.866 401.596 276.713Z" fill="#C62030"/>
<path d="M383.222 318.362C383.812 319.528 384.142 320.983 384.332 322.268C386.525 337.098 383.732 345.071 375.024 356.974C367.081 367.831 356.567 376.413 343.097 378.576C346.105 374.81 352.659 370.215 356.435 366.233C359.063 363.46 366.8 352.512 368.899 351.734C370.399 352.657 369.77 352.56 371.347 352.601C378.414 346.511 381.048 327.399 383.222 318.362Z" fill="#C62030"/>
</svg>

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

View file

@ -1,19 +1,18 @@
{% extends "base.html" %}
{% block title %}{{ status_code }} — Firebreak{% endblock %}
{% block body_class %}landing-page{% endblock %}
{% block main_class %}{% endblock %}
{% block main_class %}flex-1 flex flex-col{% endblock %}
{% block content %}
<section class="error-shell">
<section class="relative flex flex-1 items-center justify-center px-6 py-20 overflow-hidden">
<div class="error-backdrop-logo">
<img src="/static/img/firebreak-logo-red.svg"
alt="Firebreak"
width="240"
height="268" />
</div>
<div class="error-content">
<p class="error-code">{{ status_code }}</p>
<h1 class="error-title">{{ title }}</h1>
<p class="error-detail">{{ detail }}</p>
<div class="relative z-10 w-full max-w-md text-center">
<p class="font-bold text-8xl text-foreground/20 sm:text-9xl">{{ status_code }}</p>
<h1 class="mt-1 text-xl font-semibold text-foreground">{{ title }}</h1>
<p class="mt-4 text-sm leading-6 text-foreground/60">{{ detail }}</p>
{% if status_code == 401 %}
{% set quips = [
"I'm not saying you're a data scraper, but I AM saying that this page is off-limits.",
@ -22,14 +21,14 @@
"Move along clanker! Nothing to see here.",
"Just get out of here you STUPID, DUMB ANIMAL!"
] %}
<p class="error-quip">{{ quips | random }}</p>
<p class="text-xs italic text-foreground/30">{{ quips | random }}</p>
{% endif %}
<div class="mt-8">
<a href="/" class="btn-link" id="go-home-btn">Go Home</a>
</div>
</div>
{% if status_code == 401 %}
<div class="guard-dog-wrap pointer-events-none absolute -bottom-4 -right-8 w-44 sm:w-56"
<div class="absolute pointer-events-none guard-dog-wrap -bottom-4 -right-8 w-44 sm:w-56"
aria-hidden="true">
<div class="guard-dog-trot">
<div class="guard-dog-look">

View file

@ -1,9 +1,9 @@
{% extends "base.html" %}
{% block title %}Firebreak — protect your code from scraping{% endblock %}
{% block body_class %}landing-page{% endblock %}
{% block main_class %}{% endblock %}
{% block main_class %}flex-1{% endblock %}
{% block content %}
<section class="hero-section">
<section class="relative flex min-h-dvh w-full items-center justify-center overflow-hidden bg-background px-4 py-10 text-center text-foreground sm:px-6 sm:py-14 lg:py-16">
<video class="hero-video"
autoplay
muted
@ -14,23 +14,29 @@
aria-hidden="true">
<source src="/static/video/firebreak-hero.mp4" type="video/mp4" />
</video>
<div class="hero-overlay"></div>
<div class="hero-vignette"></div>
<div class="hero-content">
<img src="/static/img/firebreak-brand.svg"
alt="Firebreak"
<div class="hero-ember"></div>
<div class="relative z-10 flex w-full max-w-4xl -translate-y-[2dvh] flex-col items-center gap-6 sm:gap-8 lg:gap-9">
<img src="/static/img/firebreak-logo-cream-red.svg"
alt=""
width="240"
height="268"
class="hero-brand" />
<p class="hero-tagline">
<span class="block">Fight Fire with Fire.</span>
<span class="mt-2 block">Draw a boundary around your code. Let them look, but don't let them scrape.</span>
</p>
<p class="hero-copy-panel">
Firebreak creates temporary, read-only links to private Forgejo repository snapshots.
Sign in using Forgejo, register an access token, and control what can be viewed and by whom.
</p>
<div class="mt-7 flex flex-wrap items-center justify-center gap-3">
height="238"
class="hero-logo"
aria-hidden="true" />
<img src="/static/img/firebreak-brand-text.svg"
alt="Firebreak"
width="280"
height="48"
class="hero-wordmark" />
<div class="hero-statement">
<p class="text-base font-semibold leading-7 text-foreground sm:text-lg">Fight Fire with Fire.</p>
<div class="hero-burn-line" aria-hidden="true"></div>
<p class="max-w-md text-sm leading-6 text-foreground/90 sm:max-w-lg sm:text-[0.9375rem] sm:leading-7">
Temporary read-only access to private Forgejo snapshots.
Let them inspect what you allow. Nothing more.
</p>
</div>
<div class="flex flex-wrap items-center justify-center gap-3">
{% if user %}
<a href="/dashboard" class="btn btn-primary">Open Dashboard</a>
{% else %}
@ -46,5 +52,12 @@
{% endif %}
</div>
</div>
<p class="hero-meta" aria-label="Firebreak security properties">
<span>Snapshot scoped</span>
<span class="hero-meta-separator" aria-hidden="true"></span>
<span>Read-only</span>
<span class="hero-meta-separator" aria-hidden="true"></span>
<span>Forgejo-native</span>
</p>
</section>
{% endblock %}

View file

@ -1,62 +1,96 @@
{% extends "base.html" %}
{% block title %}Settings — Firebreak{% endblock %}
{% block content %}
<div class="flex flex-col gap-6">
<section class="pb-6 border-b border-border">
<h1 class="text-2xl font-semibold">Settings</h1>
<p class="mt-2 text-sm text-muted-foreground">Manage your Firebreak configuration.</p>
<div class="flex flex-col gap-10">
<section class="page-header">
<div>
<p class="text-xs font-semibold uppercase tracking-[0.14em] text-muted-foreground">Settings</p>
<h1 class="mt-3 text-3xl font-semibold leading-tight text-foreground sm:text-4xl">
Configuration
</h1>
<p class="mt-2 text-base leading-7 text-foreground/68 sm:text-lg">
Manage your Firebreak configuration.
</p>
</div>
</section>
{% if pat_deleted %}
<div class="rounded-md border-l-4 border-warning bg-warning-muted px-4 py-3 text-sm font-semibold text-warning-foreground"
role="status">Access token removed.</div>
{% endif %}
<div id="forgejo-access-token">
<h2 class="text-base font-semibold">Forgejo access token</h2>
<p class="mt-2 text-sm text-muted-foreground">
A <code class="rounded-sm bg-secondary px-1.5 py-0.5 text-foreground">read:repository</code>-scoped
Personal Access Token is required for share link viewing.
</p>
{% if pat_registered %}
<div class="mt-4 card">
<div class="flex items-center justify-between px-4 py-3.5">
<div class="flex items-center gap-3">
<div class="flex size-8 items-center justify-center rounded-md bg-success-muted text-success-foreground">
<svg xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" />
</svg>
</div>
<div>
<p class="text-sm font-medium text-foreground">Access token</p>
<p class="mt-0.5 text-xs text-muted-foreground">
{% if pat_registered_at %}
Registered <time datetime="{{ pat_registered_at.isoformat() }}" data-local-date>{{ pat_registered_at.isoformat() }}</time>
{% else %}
Registered
{% endif %}
</p>
<div class="max-w-3xl">
{% if pat_deleted %}
<div class="rounded-md border-l-4 border-warning bg-warning-muted px-4 py-3 text-sm font-semibold text-warning-foreground"
role="status">Access token removed.</div>
{% endif %}
<div id="forgejo-access-token">
<h2 class="text-base font-semibold">Forgejo access token</h2>
<p class="mt-2 text-sm text-muted-foreground">
A <code class="rounded-sm bg-secondary px-1.5 py-0.5 text-foreground">read:repository</code>-scoped
Personal Access Token is required for share link viewing.
</p>
{% if user.has_pat %}
<div class="mt-4 card">
<div class="flex items-center justify-between px-4 py-3.5">
<div class="flex items-center gap-3">
<div class="flex size-8 items-center justify-center rounded-md bg-success-muted text-success-foreground">
<svg xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" />
</svg>
</div>
<div>
<p class="text-sm font-medium text-foreground">Access token</p>
<p class="mt-0.5 text-xs text-muted-foreground">
{% if user.pat_registered_at %}
Registered <time datetime="{{ user.pat_registered_at.isoformat() }}" data-local-date>{{ user.pat_registered_at.isoformat() }}</time>
{% else %}
Registered
{% endif %}
</p>
</div>
</div>
<form method="post"
action="/settings/pat/delete"
data-confirm="Delete this access token? You can register a new token later.">
<button type="submit" class="btn btn-xs btn-danger">Delete</button>
</form>
</div>
<form method="post"
action="/settings/pat/delete"
data-confirm="Delete this access token? You can register a new token later.">
<button type="submit" class="btn btn-xs btn-danger">Delete</button>
</form>
</div>
</div>
<details class="mt-4">
<summary class="cursor-pointer text-sm text-muted-foreground hover:text-foreground">
Update token
</summary>
<details class="mt-4">
<summary class="cursor-pointer text-sm text-muted-foreground hover:text-foreground">
Update token
</summary>
<form id="pat-form"
class="mt-3"
method="post"
action="/settings/pat"
novalidate>
<div class="grid gap-2 sm:gap-4 sm:grid-cols-[1fr_auto] sm:items-end">
<input type="password"
id="pat"
name="pat"
class="block w-full input-mono"
placeholder="Paste new token…"
aria-describedby="pat-error"
aria-invalid="false"
autocomplete="off"
spellcheck="false"
required />
<button type="submit" class="btn btn-sm btn-primary self-center">Update</button>
</div>
<div class="mt-2">
<p id="pat-error"
class="text-sm font-medium text-danger-foreground hidden"
aria-live="polite">A Forgejo token is required.</p>
</div>
</form>
</details>
{% else %}
<form id="pat-form"
class="mt-3"
class="mt-4"
method="post"
action="/settings/pat"
novalidate>
@ -65,43 +99,22 @@
id="pat"
name="pat"
class="block w-full input-mono"
placeholder="Paste new token…"
placeholder="ad8j3…"
aria-describedby="pat-error"
aria-invalid="false"
autocomplete="off"
spellcheck="false"
required />
<button type="submit" class="btn btn-sm btn-primary self-center">Update</button>
<button type="submit" class="btn btn-sm btn-primary self-center">Register</button>
</div>
<div class="mt-2">
<p id="pat-error" class="input-error hidden" aria-live="polite">A Forgejo token is required.</p>
<p id="pat-error"
class="text-sm font-medium text-danger-foreground hidden"
aria-live="polite">A Forgejo token is required.</p>
</div>
</form>
</details>
{% else %}
<form id="pat-form"
class="mt-4"
method="post"
action="/settings/pat"
novalidate>
<div class="grid gap-2 sm:gap-4 sm:grid-cols-[1fr_auto] sm:items-end">
<input type="password"
id="pat"
name="pat"
class="block w-full input-mono"
placeholder="ad8j3…"
aria-describedby="pat-error"
aria-invalid="false"
autocomplete="off"
spellcheck="false"
required />
<button type="submit" class="btn btn-sm btn-primary self-center">Register</button>
</div>
<div class="mt-2">
<p id="pat-error" class="input-error hidden" aria-live="polite">A Forgejo token is required.</p>
</div>
</form>
{% endif %}
{% endif %}
</div>
</div>
</div>
<script>

View file

@ -1,9 +1,9 @@
{% extends "base.html" %}
{% block title %}{{ "Reconfigure" if reconfiguring else "Setup" }} — Firebreak{% endblock %}
{% block body_class %}landing-page{% endblock %}
{% block main_class %}{% endblock %}
{% block main_class %}flex-1{% endblock %}
{% block content %}
<section class="setup-shell">
<section class="flex min-h-dvh items-center justify-center px-6 py-20">
<div class="w-full max-w-lg">
<div class="mb-8 text-center">
<img src="/static/img/firebreak-brand.svg"
@ -11,40 +11,42 @@
width="240"
height="268"
class="setup-logo" />
<h1 class="setup-title">{{ "Reconfigure" if reconfiguring else "Setup" }}</h1>
<h1 class="mt-6 text-2xl font-semibold text-foreground">
{{ "Reconfigure" if reconfiguring else "Setup" }}
</h1>
{% if reconfiguring %}
<p class="setup-copy">
<p class="mt-2 text-sm leading-6 text-foreground/60">
Update your Forgejo OAuth connection. Make sure the OAuth application
is registered in your Forgejo instance before continuing.
</p>
{% else %}
<p class="setup-copy">
<p class="mt-2 text-sm leading-6 text-foreground/60">
Connect Firebreak to your Forgejo instance. You'll need to
<a href="https://forgejo.org/docs/latest/user/oauth2-provider/"
target="_blank"
rel="noopener"
class="setup-link">register an OAuth application</a>
class="text-foreground/80 underline underline-offset-2 hover:text-foreground">register an OAuth application</a>
in Forgejo first.
</p>
{% endif %}
</div>
{% if not reconfiguring %}
<div class="setup-help-panel">
<p class="setup-help-title">How to get your OAuth credentials:</p>
<div class="mb-8 rounded-lg border border-foreground/10 bg-card/60 px-5 py-4 text-xs leading-5 text-foreground/50">
<p class="mb-2.5 font-medium text-foreground/70">How to get your OAuth credentials:</p>
<ol class="list-decimal list-inside space-y-1.5">
<li>
In Forgejo, go to <strong class="setup-strong">Settings &rarr; Applications</strong>
In Forgejo, go to <strong class="text-foreground/70">Settings &rarr; Applications</strong>
</li>
<li>
Under <strong class="setup-strong">Manage OAuth2 Applications</strong>, create a new app
Under <strong class="text-foreground/70">Manage OAuth2 Applications</strong>, create a new app
</li>
<li>
Set the redirect URI to
<br />
<code class="setup-code">{{ oauth_callback_url }}</code>
<code class="mt-1 inline-block rounded bg-foreground/8 px-1.5 py-0.5 font-mono text-[10px] text-foreground/60">{{ oauth_callback_url }}</code>
</li>
<li>
Copy the <strong class="setup-strong">Client ID</strong> and <strong class="setup-strong">Client Secret</strong> into the form below
Copy the <strong class="text-foreground/70">Client ID</strong> and <strong class="text-foreground/70">Client Secret</strong> into the form below
</li>
</ol>
</div>
@ -56,12 +58,12 @@
<input type="password"
id="setup_token"
name="setup_token"
class="form-input form-input-mono"
class="form-input font-mono"
placeholder="Paste the token from your server logs"
autocomplete="off"
spellcheck="false"
required />
<p class="form-hint">Printed to the server console on first boot.</p>
<p class="mt-1.5 text-xs text-foreground/30">Printed to the server console on first boot.</p>
</div>
{% endif %}
<div>
@ -80,7 +82,7 @@
<input type="text"
id="forgejo_oauth_client_id"
name="forgejo_oauth_client_id"
class="form-input form-input-mono"
class="form-input font-mono"
placeholder="c8ab3315-537d-44f3-…"
autocomplete="off"
spellcheck="false"
@ -91,13 +93,13 @@
<label for="forgejo_oauth_client_secret" class="form-label">
OAuth Client Secret
{% if reconfiguring %}
<span class="form-label-note">(leave blank to keep current)</span>
<span class="ml-1 font-normal tracking-normal normal-case text-foreground/30">(leave blank to keep current)</span>
{% endif %}
</label>
<input type="password"
id="forgejo_oauth_client_secret"
name="forgejo_oauth_client_secret"
class="form-input form-input-mono"
class="form-input font-mono"
placeholder="gto_wkxxnv4ewa…"
autocomplete="off"
spellcheck="false"
@ -106,7 +108,7 @@
<div>
<label for="firebreak_public_base_url" class="form-label">
Public Base URL
<span class="form-label-note">(optional)</span>
<span class="ml-1 font-normal tracking-normal normal-case text-foreground/30">(optional)</span>
</label>
<input type="url"
id="firebreak_public_base_url"
@ -115,8 +117,8 @@
placeholder="https://share.example.com"
autocomplete="off"
value="{{ firebreak_public_base_url }}" />
<p class="form-hint">
Your production domain for OAuth redirects. Leave blank on localhost &mdash; Firebreak will use <code class="form-hint-code">http://localhost:8000</code> automatically.
<p class="mt-1.5 text-xs text-foreground/30">
Your production domain for OAuth redirects. Leave blank on localhost &mdash; Firebreak will use <code class="font-mono text-foreground/40">http://localhost:8000</code> automatically.
</p>
</div>
<button type="submit" class="btn btn-primary w-full mt-2">