-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcard.stories.tsx
70 lines (67 loc) · 2.15 KB
/
card.stories.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import type { Meta, StoryObj } from "@storybook/react";
import { Alert, GasOutline } from "../../../public/icons";
import { Badge } from "../badge/badge";
import { Cta } from "../cta";
import { Text } from "../text";
import { Title } from "../title";
import { Card, CardFooter, CardContent, CardHeader } from "./card";
const meta: Meta<typeof Card> = {};
export default meta;
type Story = StoryObj<typeof Text>;
export const Template: Story = {
render: () => (
<Card>
<div className="flex w-full justify-end">
<Badge variant="error" className="mb-1">
A rischio sospensione
</Badge>
</div>
<CardHeader className="border-b">
<div className="pb-1">
<div className="flex items-center gap-3">
<GasOutline className="fill-black h-4 w-4" />
<Text size="sm" weight="medium">
Gas
</Text>
</div>
<Text size="xs" weight="light">
Pizza Risorgimento 3, Amandola (FM)
</Text>
</div>
</CardHeader>
<CardContent>
<div className="flex gap-2 py-3 pr-4">
<Alert className="fill-black h-4 w-4" />
<Text size="xs" weight="regular">
Dobbiamo chiederti di compilare un modulo. Entra per scaricarlo.
</Text>
</div>
<Text size="xs" weight="light" className="pb-1">
Per questa fornitura pagherai
</Text>
<Text size="xs" weight="regular" className="line-through leading-none ">
65,46 €
</Text>
<div className="flex items-top gap-1 mb-[-4px]">
<Title as="h1" className="leading-none mt-[-5px]">
57
</Title>
<div>
<Title as="h4" className="leading-none">
,99 €
</Title>
<Text size="xs" weight="light" className="leading-none">
al mese,
</Text>
<Text size="xs" weight="light" className="leading-none">
per 12 mesi.
</Text>
</div>
</div>
</CardContent>
<CardFooter>
<Cta>Monitora e gestisci</Cta>
</CardFooter>
</Card>
),
};