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>
29 lines
766 B
TypeScript
29 lines
766 B
TypeScript
import type { Meta, StoryObj } from '@storybook/sveltekit';
|
|
import PostCardCompact from './PostCardCompact.svelte';
|
|
|
|
const CMS_ASSET =
|
|
'https://cms.pm86.de/api/assets/pages/img_2814-ar4x2.webp?_environment=windwiderstand';
|
|
|
|
const meta = {
|
|
title: 'Organisms/PostCardCompact',
|
|
component: PostCardCompact,
|
|
tags: ['autodocs'],
|
|
} satisfies Meta<typeof PostCardCompact>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Standard: Story = {
|
|
args: {
|
|
post: {
|
|
_slug: 'frist-laeuft',
|
|
slug: 'frist-laeuft',
|
|
headline: 'Frist für Einwendungen läuft',
|
|
created: '2026-06-01T09:00:00Z',
|
|
postTag: [{ name: 'Verfahren' }],
|
|
_resolvedImageUrl: CMS_ASSET,
|
|
} as never,
|
|
href: '/posts/frist-laeuft',
|
|
},
|
|
};
|