From d9e6f21e2ede65a776e5fb698566913d67ee5abf Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Thu, 29 Jan 2026 16:31:32 +0100 Subject: [PATCH] ui: centralize design system styles --- .gitignore | 3 + .../components/ui/DesignSystemStyles.astro | 330 +++++++++++++++++ frontend/src/layouts/Layout.astro | 334 +----------------- frontend/src/layouts/PublicLayout.astro | 95 +---- 4 files changed, 337 insertions(+), 425 deletions(-) create mode 100644 frontend/src/components/ui/DesignSystemStyles.astro diff --git a/.gitignore b/.gitignore index 03030e5..7102f95 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,9 @@ Thumbs.db *.log npm-debug.log* +# Local demo verification artifacts +demo_cookie*.txt + # Podman .podman/ diff --git a/frontend/src/components/ui/DesignSystemStyles.astro b/frontend/src/components/ui/DesignSystemStyles.astro new file mode 100644 index 0000000..5b98500 --- /dev/null +++ b/frontend/src/components/ui/DesignSystemStyles.astro @@ -0,0 +1,330 @@ + diff --git a/frontend/src/layouts/Layout.astro b/frontend/src/layouts/Layout.astro index 0b3f4b3..c2419c5 100644 --- a/frontend/src/layouts/Layout.astro +++ b/frontend/src/layouts/Layout.astro @@ -6,6 +6,7 @@ interface Props { import { DEFAULT_THEME, themes as themeRegistry } from '../lib/themes'; import { API_BASE as apiBase } from '../lib/api'; import VotingIcons from '../components/icons/VotingIcons.astro'; +import DesignSystemStyles from '../components/ui/DesignSystemStyles.astro'; function isEnabled(v: string | undefined): boolean { if (!v) return false; @@ -179,338 +180,7 @@ const publicDemoSite = isEnabled((globalThis as any).process?.env?.PUBLIC_DEMO_S - + +