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>
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/sveltekit';
|
|
import OrganisationsMapBlock from './OrganisationsMapBlock.svelte';
|
|
|
|
// Leaflet-Karte mit Organisations-Markern (location.lat/lng nötig). Kartentiles
|
|
// laden von externem Tile-Server bei Netzzugriff.
|
|
const meta = {
|
|
title: 'CMS-Blocks/OrganisationsMap',
|
|
component: OrganisationsMapBlock,
|
|
tags: ['autodocs'],
|
|
argTypes: { block: { control: 'object' } },
|
|
} satisfies Meta<typeof OrganisationsMapBlock>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Standard: Story = {
|
|
args: {
|
|
block: {
|
|
number: '05',
|
|
kicker: 'Karte',
|
|
headline: 'Organisationen in der Region',
|
|
action: { url: '/adressbuch', linkName: 'Alle anzeigen' },
|
|
organisations: [
|
|
{ name: 'BI Steigerwald', location: { text: 'Schleusingen', lat: 50.51, lng: 10.75 } },
|
|
{ name: 'Waldfreunde e.V.', location: { text: 'Ebrach', lat: 49.85, lng: 10.5 } },
|
|
{ name: 'Naturschutz Nord', location: { text: 'Bamberg', lat: 49.89, lng: 10.9 } },
|
|
],
|
|
},
|
|
},
|
|
};
|