03e84c1f28
Storybook (SvelteKit-Framework, Tailwind v4, MSW, Translation-Decorator): Stories für Atoms/Molecules/Organisms + alle CMS-Blocks. Button-Atom: 5 .btn-*-Varianten (primary/secondary/tertiary/outline/warning), class-Merge-Prop, href→<a>, Loading-Spinner neben Label, rounded-md/font-medium. Alle rohen .btn-*- und Hand-Style-Buttons app-weit aufs Atom migriert. SectionHeader-Molecule (kicker/number/title/subtitle/action) + Integration in 7 CMS-Blocks (post_overview, organisations, organisations_map, searchable_text, image_gallery, youtube_video_gallery, files) via neuem section_header-Schema. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
14 lines
554 B
HTML
14 lines
554 B
HTML
<!--
|
|
SvelteKit liest $env/dynamic/public im Browser aus globalThis.__sveltekit_dev.env.
|
|
Dieses Global setzt sonst nur der echte SvelteKit-Dev-Server. In Storybook hier
|
|
vorab setzen, sonst crasht jede Komponente mit `env.PUBLIC_*` (Windkarte,
|
|
Stellingnahme, …) mit "__sveltekit_dev is undefined". Läuft vor dem Story-Bundle.
|
|
-->
|
|
<script>
|
|
window.__sveltekit_dev = window.__sveltekit_dev || { env: {} };
|
|
window.__sveltekit_dev.env = Object.assign(
|
|
{ PUBLIC_CMS_URL: 'https://cms.pm86.de' },
|
|
window.__sveltekit_dev.env,
|
|
);
|
|
</script>
|