feat(admin): neuer Rahmen und Startseite für das Admin-Panel
- Sidebar nach Aufgaben gruppiert (Moderation, Inhalte, Community, Verwaltung), komplett deutsch, mit Zählern für offene Meldungen, Verifizierungen, Vermisst-Meldungen und ungelesene Team-Nachrichten - Kopfzeile mit Breadcrumb, globaler Suche (Tiere + Halter), Hell/Dunkel und eigenem Namen + Rolle; hell als Standard, Wahl im Cookie - Startseite: Kennzahlen mit Vorwochen-Vergleich, Moderationsstatus mit Wartezeit, letzte Eingänge, Schnellzugriff, Notschalter als Schalter, ein Aktivitäts-Diagramm mit Umschalter statt fünf Karten - Eigene Admin-Farbtokens (Orange in beiden Modi, Statusfarben); alle Admin-Seiten von festen Dunkel-Klassen auf Tokens umgestellt - Neuer Router adminOverview (getQueues, getKpis, getInbox, search) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9ba965ae11
commit
c4fb9aefb7
44 files changed
+2074
-973
No files matched your search
@@ -35,6 +35,9 @@
|
||||
--color-input: var(--input);
|
||||
--color-border: var(--border);
|
||||
--color-destructive: var(--destructive);
|
||||
--color-success: var(--success);
|
||||
--color-warning: var(--warning);
|
||||
--color-info: var(--info);
|
||||
--color-accent-foreground: var(--accent-foreground);
|
||||
--color-accent: var(--accent);
|
||||
--color-muted-foreground: var(--muted-foreground);
|
||||
@@ -125,6 +128,74 @@
|
||||
--sidebar-ring: oklch(0.556 0 0);
|
||||
}
|
||||
|
||||
/* Admin-Panel (/p/[secret]): eigene, warme Palette mit Orange als Primärfarbe in
|
||||
beiden Modi (die Website-.dark-Tokens sind neutral grau, Primär = hellgrau).
|
||||
Hell ist Standard; `dark` kommt zusätzlich zu `admin-theme` dazu (Cookie
|
||||
pf_admin_theme, siehe AdminThemeToggle). Dazu Statusfarben für Abzeichen. */
|
||||
.admin-theme {
|
||||
--background: oklch(0.982 0.004 70);
|
||||
--foreground: oklch(0.2 0.012 50);
|
||||
--card: oklch(1 0 0);
|
||||
--card-foreground: oklch(0.2 0.012 50);
|
||||
--popover: oklch(1 0 0);
|
||||
--popover-foreground: oklch(0.2 0.012 50);
|
||||
--primary: oklch(0.62 0.19 42);
|
||||
--primary-foreground: oklch(1 0 0);
|
||||
--secondary: oklch(0.955 0.006 70);
|
||||
--secondary-foreground: oklch(0.25 0.012 50);
|
||||
--muted: oklch(0.955 0.006 70);
|
||||
--muted-foreground: oklch(0.48 0.014 55);
|
||||
--accent: oklch(0.95 0.02 60);
|
||||
--accent-foreground: oklch(0.25 0.012 50);
|
||||
--destructive: oklch(0.55 0.21 27);
|
||||
--border: oklch(0.91 0.008 70);
|
||||
--input: oklch(0.89 0.01 70);
|
||||
--ring: oklch(0.62 0.19 42);
|
||||
--success: oklch(0.52 0.12 155);
|
||||
--warning: oklch(0.58 0.14 70);
|
||||
--info: oklch(0.52 0.13 245);
|
||||
--chart-1: oklch(0.62 0.19 42);
|
||||
--chart-2: oklch(0.52 0.12 155);
|
||||
--chart-3: oklch(0.52 0.13 245);
|
||||
--sidebar: oklch(1 0 0);
|
||||
--sidebar-foreground: oklch(0.3 0.012 50);
|
||||
--sidebar-accent: oklch(0.96 0.03 60);
|
||||
--sidebar-accent-foreground: oklch(0.45 0.16 42);
|
||||
--sidebar-border: oklch(0.91 0.008 70);
|
||||
}
|
||||
|
||||
.admin-theme.dark {
|
||||
--background: oklch(0.17 0.008 50);
|
||||
--foreground: oklch(0.96 0.006 70);
|
||||
--card: oklch(0.215 0.009 50);
|
||||
--card-foreground: oklch(0.96 0.006 70);
|
||||
--popover: oklch(0.24 0.01 50);
|
||||
--popover-foreground: oklch(0.96 0.006 70);
|
||||
--primary: oklch(0.72 0.17 45);
|
||||
--primary-foreground: oklch(0.18 0.02 45);
|
||||
--secondary: oklch(0.27 0.01 50);
|
||||
--secondary-foreground: oklch(0.94 0.006 70);
|
||||
--muted: oklch(0.26 0.01 50);
|
||||
--muted-foreground: oklch(0.72 0.012 60);
|
||||
--accent: oklch(0.29 0.025 50);
|
||||
--accent-foreground: oklch(0.96 0.006 70);
|
||||
--destructive: oklch(0.7 0.17 25);
|
||||
--border: oklch(1 0 0 / 9%);
|
||||
--input: oklch(1 0 0 / 14%);
|
||||
--ring: oklch(0.72 0.17 45);
|
||||
--success: oklch(0.74 0.13 155);
|
||||
--warning: oklch(0.8 0.13 80);
|
||||
--info: oklch(0.74 0.11 245);
|
||||
--chart-1: oklch(0.72 0.17 45);
|
||||
--chart-2: oklch(0.74 0.13 155);
|
||||
--chart-3: oklch(0.74 0.11 245);
|
||||
--sidebar: oklch(0.195 0.009 50);
|
||||
--sidebar-foreground: oklch(0.85 0.008 70);
|
||||
--sidebar-accent: oklch(0.3 0.04 45);
|
||||
--sidebar-accent-foreground: oklch(0.85 0.12 50);
|
||||
--sidebar-border: oklch(1 0 0 / 8%);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
|
||||
Reference in new issue
Block a user