import type { Meta, StoryObj } from '@storybook/react' import { Hero } from '@/components/ui/hero' import { Button } from '@/components/ui/button' const meta = { title: 'Composition/Hero', component: Hero, tags: ['autodocs'], parameters: { layout: 'fullscreen' }, argTypes: { variant: { control: 'select', options: ['centered', 'left-aligned', 'split'], }, background: { control: 'select', options: ['default', 'muted', 'accent', 'dark'], }, }, } satisfies Meta export default meta type Story = StoryObj const defaultActions = ( <> ) export const Centered: Story = { args: { variant: 'centered', heading: 'Build better products with Greyhaven', subheading: 'A modern design system that helps you create consistent, accessible, and beautiful user interfaces.', actions: defaultActions, }, } export const LeftAligned: Story = { args: { variant: 'left-aligned', heading: 'Ship faster with confidence', subheading: 'Pre-built components, design tokens, and patterns so your team can focus on what matters.', actions: defaultActions, }, } export const Split: Story = { args: { variant: 'split', heading: 'Design meets engineering', subheading: 'Bridging the gap between design and code with a shared language of components and tokens.', actions: defaultActions, media: (
Image / Media Placeholder
), }, } export const MutedBackground: Story = { args: { variant: 'centered', background: 'muted', heading: 'Welcome to the platform', subheading: 'Everything you need to build and scale your project.', actions: defaultActions, }, } export const AccentBackground: Story = { args: { variant: 'centered', background: 'accent', heading: 'Start building today', subheading: 'Join thousands of developers using our design system.', actions: defaultActions, }, } export const DarkBackground: Story = { args: { variant: 'centered', background: 'dark', heading: 'The future of design systems', subheading: 'A bold new approach to building consistent user interfaces at scale.', actions: ( <> ), }, } export const WithoutActions: Story = { args: { variant: 'centered', heading: 'A hero section without action buttons', subheading: 'Sometimes you just need a heading and description.', }, }