Replaces the Angular 18 app with Next.js 16 / React 19 / Tailwind 4 / shadcn, the same stack and design system as nachklang-feedback, planned in docs/rewrite-plan.md. - Admin: all calendars in one mobile-friendly list (month groups, calendar chips, Kommend/Vergangen/Alle, search, sort, filters in the URL), an edit sheet for create/edit/duplicate/delete, publish confirmation, and an "Abonnieren" dialog with subscription links for every calendar. - Public landing page: subscribe links from env instead of hardcoded, plus the next public events, server-rendered and revalidated every 5 minutes. - All times handled explicitly as Europe/Berlin; whole-day events stored as 00:00-23:59. Fixes carried over from the Angular app: the move dialog leaking a cancelled calendar change, saves that looked saved when they failed, in-place Date mutation, and duplicated calendar-id mappings. - Same shared-session auth as before (proxy.ts gate, /admin/me, 401 vs 403). - 112 Vitest tests over lib/; docs in docs/ (architecture, features, gotchas, API wish list, deployment). Needs the API branch feature/calendar-ical-escaping-subscriptions deployed first (GET /calendar/events/subscriptions). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
174 lines
6.0 KiB
CSS
174 lines
6.0 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "shadcn/tailwind.css";
|
|
/*
|
|
---break---
|
|
*/
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
/*
|
|
* Design system: shadcn preset b7ClO5que (style: luma, base color: mist,
|
|
* theme: indigo, radius: small). --primary/--accent/--muted-foreground etc.
|
|
* below come from that preset — see https://ui.shadcn.com/create?preset=b7ClO5que
|
|
* or run `npx shadcn@latest preset decode b7ClO5que`.
|
|
*
|
|
* A few tokens remain hand-tuned to nachklang.art's actual computed styles
|
|
* (see lib/brand.ts and IMPLEMENTATION_PLAN.md §5.7 in nachklang-feedback) rather than coming from
|
|
* the preset, since the preset has no equivalent for them: --surface-alt,
|
|
* --radius-card/--radius-pill/--radius-small, and --shadow-card below.
|
|
* Light-mode only for v1 — the source site has no dark mode either.
|
|
*/
|
|
:root {
|
|
--surface-alt: #f7f7f7;
|
|
--radius-pill: 25px;
|
|
--radius-small: 4px;
|
|
--radius-card: 10px;
|
|
/* Matches nachklang.art's actual .card shadow (re-verified live). */
|
|
--shadow-card: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
|
|
--background: oklch(1 0 0);
|
|
--foreground: oklch(0.148 0.004 228.8);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.148 0.004 228.8);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.148 0.004 228.8);
|
|
--primary: oklch(0.457 0.24 277.023);
|
|
--primary-foreground: oklch(0.962 0.018 272.314);
|
|
--secondary: oklch(0.967 0.001 286.375);
|
|
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
--muted: oklch(0.963 0.002 197.1);
|
|
--muted-foreground: oklch(0.56 0.021 213.5);
|
|
--accent: oklch(0.963 0.002 197.1);
|
|
--accent-foreground: oklch(0.218 0.008 223.9);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--border: oklch(0.925 0.005 214.3);
|
|
--input: oklch(0.925 0.005 214.3);
|
|
--ring: oklch(0.723 0.014 214.4);
|
|
--chart-1: oklch(0.872 0.007 219.6);
|
|
--chart-2: oklch(0.56 0.021 213.5);
|
|
--chart-3: oklch(0.45 0.017 213.2);
|
|
--chart-4: oklch(0.378 0.015 216);
|
|
--chart-5: oklch(0.275 0.011 216.9);
|
|
--radius: 0.45rem;
|
|
--sidebar: oklch(0.987 0.002 197.1);
|
|
--sidebar-foreground: oklch(0.148 0.004 228.8);
|
|
--sidebar-primary: oklch(0.511 0.262 276.966);
|
|
--sidebar-primary-foreground: oklch(0.962 0.018 272.314);
|
|
--sidebar-accent: oklch(0.963 0.002 197.1);
|
|
--sidebar-accent-foreground: oklch(0.218 0.008 223.9);
|
|
--sidebar-border: oklch(0.925 0.005 214.3);
|
|
--sidebar-ring: oklch(0.723 0.014 214.4);
|
|
}
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-muted: var(--muted);
|
|
--color-accent: var(--accent);
|
|
--font-sans: var(--font-sans);
|
|
--font-heading: var(--font-sans);
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-ring: var(--ring);
|
|
--color-input: var(--input);
|
|
--color-border: var(--border);
|
|
--color-destructive: var(--destructive);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-card: var(--card);
|
|
--radius-sm: calc(var(--radius) * 0.6);
|
|
--radius-md: calc(var(--radius) * 0.8);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) * 1.4);
|
|
--radius-2xl: calc(var(--radius) * 1.8);
|
|
--radius-3xl: calc(var(--radius) * 2.2);
|
|
--radius-4xl: calc(var(--radius) * 2.6);
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans), Arial, Helvetica, sans-serif;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-family: var(--font-heading), var(--font-sans), sans-serif;
|
|
}
|
|
|
|
/* Plain box-shadow rather than Tailwind's shadow-lg utility, which composes
|
|
via chained --tw-shadow custom properties that didn't resolve correctly
|
|
in some environments during testing (rendered as no shadow at all). */
|
|
.card-shadow {
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
/*
|
|
---break---
|
|
*/
|
|
.dark {
|
|
--background: oklch(0.148 0.004 228.8);
|
|
--foreground: oklch(0.987 0.002 197.1);
|
|
--card: oklch(0.218 0.008 223.9);
|
|
--card-foreground: oklch(0.987 0.002 197.1);
|
|
--popover: oklch(0.218 0.008 223.9);
|
|
--popover-foreground: oklch(0.987 0.002 197.1);
|
|
--primary: oklch(0.398 0.195 277.366);
|
|
--primary-foreground: oklch(0.962 0.018 272.314);
|
|
--secondary: oklch(0.274 0.006 286.033);
|
|
--secondary-foreground: oklch(0.985 0 0);
|
|
--muted: oklch(0.275 0.011 216.9);
|
|
--muted-foreground: oklch(0.723 0.014 214.4);
|
|
--accent: oklch(0.275 0.011 216.9);
|
|
--accent-foreground: oklch(0.987 0.002 197.1);
|
|
--destructive: oklch(0.704 0.191 22.216);
|
|
--border: oklch(1 0 0 / 10%);
|
|
--input: oklch(1 0 0 / 15%);
|
|
--ring: oklch(0.56 0.021 213.5);
|
|
--chart-1: oklch(0.872 0.007 219.6);
|
|
--chart-2: oklch(0.56 0.021 213.5);
|
|
--chart-3: oklch(0.45 0.017 213.2);
|
|
--chart-4: oklch(0.378 0.015 216);
|
|
--chart-5: oklch(0.275 0.011 216.9);
|
|
--sidebar: oklch(0.218 0.008 223.9);
|
|
--sidebar-foreground: oklch(0.987 0.002 197.1);
|
|
--sidebar-primary: oklch(0.585 0.233 277.117);
|
|
--sidebar-primary-foreground: oklch(0.962 0.018 272.314);
|
|
--sidebar-accent: oklch(0.275 0.011 216.9);
|
|
--sidebar-accent-foreground: oklch(0.987 0.002 197.1);
|
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
--sidebar-ring: oklch(0.56 0.021 213.5);
|
|
}
|
|
/*
|
|
---break---
|
|
*/
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
html {
|
|
@apply font-sans;
|
|
}
|
|
}
|