Redesign the admin UI

Replaces the single-page dashboard with a structured app shell:
sidebar on desktop, bottom tab bar on mobile (PWA), and separate
screens for overview, short links, link pages, API tokens and
administration.

- detail view with tabs: content, appearance, analytics, QR code,
  settings
- small component kit (buttons, form controls, cards, dialogs,
  toasts, tabs) built on semantic color tokens with light and dark
  mode following the system
- native <dialog> modals for creating pages, editing blocks and
  confirmations instead of window.confirm
- theme presets and a live preview of unsaved appearance changes
- removed the v1 screenshots for now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 14:21:07 +02:00
co-authored by Claude Opus 5.5
parent b217214512
commit 3929ed7663
36 changed files with 2477 additions and 876 deletions
+22
View File
@@ -0,0 +1,22 @@
import type { ReactNode } from "react";
// A phone-shaped frame for previewing link pages.
export function PhoneFrame({ children, caption }: { children: ReactNode; caption?: ReactNode }) {
return (
<div className="sticky top-6 mx-auto w-full max-w-[300px]">
<div className="overflow-hidden rounded-[2.25rem] border-[7px] border-zinc-800 bg-zinc-800 shadow-2xl ring-1 ring-border dark:border-zinc-700">
<div className="relative aspect-[9/18.5] overflow-hidden rounded-[1.75rem] bg-black">{children}</div>
</div>
{caption && <p className="mt-3 text-center text-xs text-muted">{caption}</p>}
</div>
);
}
// Shows the real, server-rendered page. `version` forces a reload after edits.
export function LivePreview({ path, version }: { path: string; version: number }) {
return (
<PhoneFrame caption="Live preview">
<iframe key={version} src={`${path}?preview`} title="Preview" className="absolute inset-0 h-full w-full border-0" />
</PhoneFrame>
);
}