feat(client): event card

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2026-02-01 09:54:19 +08:00
committed by Asai Neko
parent e5c12b4cfe
commit cee71097af
5 changed files with 74 additions and 43 deletions

View File

@@ -1,12 +1,21 @@
import type { Meta, StoryObj } from '@storybook/react-vite';
import { EventCard } from '@/components/workbenchCards/event-card';
import { EventCardView } from '@/components/workbenchCards/event-card.view';
const meta = {
title: 'Cards/EventCard',
component: EventCard,
} satisfies Meta<typeof EventCard>;
component: EventCardView,
} satisfies Meta<typeof EventCardView>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Primary: Story = {};
export const Primary: Story = {
args: {
type: 'official',
coverImage: "https://github.com/NixOS/nixos-artwork/blob/master/wallpapers/nix-wallpaper-watersplash.png?raw=true",
eventName: 'Nix CN Conference 26.05',
description: 'Event Description',
startTime: "2026-06-13T04:00:00.000Z",
endTime: "2026-06-14T04:00:00.000Z",
},
};