Update environment configuration, enhance component functionality, and improve project structure. Added Umami analytics configuration to .env.example and updated astro.config.mjs to use the new site URL. Introduced pagination component in BlogOverview.svelte, refactored image handling in ImageGalleryBlock.svelte, and improved SearchableTextBlock.svelte with tooltip support. Updated package.json with new scripts for Firebase deployment and added new dependencies for Storybook and Firebase. Enhanced styling and layout across various components for better user experience.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import type { Meta, StoryObj } from '@storybook/svelte';
|
||||
import Header from './Header.svelte';
|
||||
|
||||
const meta = {
|
||||
title: 'UI/Header',
|
||||
component: Header,
|
||||
tags: ['autodocs'],
|
||||
parameters: {
|
||||
docs: {
|
||||
description: {
|
||||
component: 'Seiten-Header mit Navigation (links), CTA-Button und optionalem Mobilmenü.',
|
||||
},
|
||||
},
|
||||
},
|
||||
argTypes: {
|
||||
mobileMenuOpen: { control: 'boolean' },
|
||||
},
|
||||
} satisfies Meta<Header>;
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof meta>;
|
||||
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
links: [
|
||||
{ href: '/ueber-uns', label: 'Über uns' },
|
||||
{ href: '/aktuelles', label: 'Aktuelles', active: true },
|
||||
{ href: '/fakten', label: 'Fakten' },
|
||||
{ href: '/initiativen', label: 'Initiativen' },
|
||||
],
|
||||
ctaLabel: 'Mitmachen',
|
||||
ctaHref: '/mitmachen',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user