2026-04-23 20:52:43 +03:00
|
|
|
|
import type { Meta, StoryObj } from '@storybook/nextjs-vite';
|
|
|
|
|
|
import { ExperienceCard } from './ExperienceCard';
|
2026-04-19 09:19:17 +03:00
|
|
|
|
|
|
|
|
|
|
const meta: Meta<typeof ExperienceCard> = {
|
|
|
|
|
|
title: 'Entities/ExperienceCard',
|
|
|
|
|
|
component: ExperienceCard,
|
|
|
|
|
|
decorators: [
|
|
|
|
|
|
(Story) => (
|
|
|
|
|
|
<div className="p-8 bg-white max-w-2xl">
|
|
|
|
|
|
<Story />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
),
|
|
|
|
|
|
],
|
2026-04-23 20:52:43 +03:00
|
|
|
|
};
|
2026-04-19 09:19:17 +03:00
|
|
|
|
|
2026-04-23 20:52:43 +03:00
|
|
|
|
export default meta;
|
2026-04-19 09:19:17 +03:00
|
|
|
|
|
2026-04-23 20:52:43 +03:00
|
|
|
|
type Story = StoryObj<typeof ExperienceCard>;
|
2026-04-19 09:19:17 +03:00
|
|
|
|
|
|
|
|
|
|
const baseArgs = {
|
|
|
|
|
|
title: 'Senior Frontend Engineer',
|
|
|
|
|
|
company: 'Acme Corp',
|
|
|
|
|
|
period: '2021 – 2024',
|
2026-04-23 20:52:43 +03:00
|
|
|
|
description:
|
|
|
|
|
|
'Led frontend development for the core product, established design system practices, and mentored junior engineers across two distributed teams.',
|
|
|
|
|
|
};
|
2026-04-19 09:19:17 +03:00
|
|
|
|
|
|
|
|
|
|
export const Default: Story = {
|
|
|
|
|
|
args: baseArgs,
|
2026-04-23 20:52:43 +03:00
|
|
|
|
};
|
2026-04-19 09:19:17 +03:00
|
|
|
|
|
|
|
|
|
|
export const SlateBackground: Story = {
|
|
|
|
|
|
render: () => (
|
|
|
|
|
|
<div className="bg-slate-indigo p-8 max-w-2xl">
|
2026-04-23 20:52:43 +03:00
|
|
|
|
<ExperienceCard {...baseArgs} className="border-ochre-clay" />
|
2026-04-19 09:19:17 +03:00
|
|
|
|
</div>
|
|
|
|
|
|
),
|
2026-04-23 20:52:43 +03:00
|
|
|
|
};
|