Skip to content

Commit 5ed3429

Browse files
authored
refactor(component-showcase) remove charts (#255)
1 parent 7f7c612 commit 5ed3429

File tree

1 file changed

+41
-42
lines changed

1 file changed

+41
-42
lines changed

components/examples/component-showcase.tsx

Lines changed: 41 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Activity, Users } from "lucide-react";
1+
import { Activity, Sword, Users } from "lucide-react";
22

33
import { LoginForm } from "@/components/ui/8bit/blocks/login-form";
44
import {
@@ -20,8 +20,6 @@ import { Textarea } from "@/components/ui/8bit/textarea";
2020

2121
import { CommandExample } from "@/components/examples/command";
2222

23-
import ChartAreaStep from "../ui/8bit/blocks/chart-area-step";
24-
import ChartBarMultiple from "../ui/8bit/blocks/chart-bar";
2523
import GameOver from "../ui/8bit/blocks/game-over";
2624
import MainMenu from "../ui/8bit/blocks/main-menu";
2725
import { Skeleton } from "../ui/8bit/skeleton";
@@ -61,30 +59,14 @@ export default function ComponentShowcase() {
6159

6260
<Card>
6361
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
64-
<CardTitle className="text-sm font-medium">
65-
Product Details
66-
</CardTitle>
62+
<CardTitle className="text-sm font-medium">Warriors</CardTitle>
63+
<Sword className="size-4 text-muted-foreground" />
6764
</CardHeader>
6865
<CardContent>
69-
<div className="grid gap-6">
70-
<div className="grid gap-3">
71-
<Label htmlFor="name">Name</Label>
72-
<Input
73-
id="name"
74-
type="text"
75-
className="w-full"
76-
defaultValue="Gamer Gear"
77-
/>
78-
</div>
79-
<div className="grid gap-3">
80-
<Label htmlFor="description">Description</Label>
81-
<Textarea
82-
id="description"
83-
defaultValue="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nisl nec ultricies ultricies, nunc nisl ultricies nunc, nec ultricies nunc nisl nec nunc."
84-
className="min-h-32"
85-
/>
86-
</div>
87-
</div>
66+
<div className="text-2xl font-bold">+100</div>
67+
<p className="text-xs text-muted-foreground">
68+
+100 since last month
69+
</p>
8870
</CardContent>
8971
</Card>
9072
</div>
@@ -93,7 +75,7 @@ export default function ComponentShowcase() {
9375
<div className="flex flex-col gap-4 lg:col-span-2">
9476
<GameOver />
9577

96-
<Card>
78+
{/* <Card>
9779
<CardHeader className="flex flex-row items-center justify-between">
9880
<CardTitle className="text-sm font-medium">
9981
Total visitors in the last 6 months
@@ -103,25 +85,17 @@ export default function ComponentShowcase() {
10385
<CardContent>
10486
<ChartAreaStep />
10587
</CardContent>
106-
</Card>
88+
</Card> */}
10789

10890
<LoginForm />
91+
92+
<Skeleton className="w-full h-full flex flex-col justify-center items-center">
93+
Skeleton
94+
</Skeleton>
10995
</div>
11096

11197
{/* Column 3 */}
11298
<div className="flex flex-col gap-4 w-full">
113-
<Card>
114-
<CardHeader className="flex flex-row items-center justify-between">
115-
<CardTitle className="text-sm font-medium">
116-
Total visitors
117-
</CardTitle>
118-
<Users className="size-4 text-muted-foreground" />
119-
</CardHeader>
120-
<CardContent>
121-
<ChartBarMultiple />
122-
</CardContent>
123-
</Card>
124-
12599
<Card>
126100
<CardHeader>
127101
<CardTitle>Product Status</CardTitle>
@@ -147,9 +121,34 @@ export default function ComponentShowcase() {
147121

148122
<CommandExample />
149123

150-
<Skeleton className="w-full h-full flex flex-col justify-center items-center">
151-
Skeleton
152-
</Skeleton>
124+
<Card>
125+
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
126+
<CardTitle className="text-sm font-medium">
127+
Product Details
128+
</CardTitle>
129+
</CardHeader>
130+
<CardContent>
131+
<div className="grid gap-6">
132+
<div className="grid gap-3">
133+
<Label htmlFor="name">Name</Label>
134+
<Input
135+
id="name"
136+
type="text"
137+
className="w-full"
138+
defaultValue="Gamer Gear"
139+
/>
140+
</div>
141+
<div className="grid gap-3">
142+
<Label htmlFor="description">Description</Label>
143+
<Textarea
144+
id="description"
145+
defaultValue="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nisl nec ultricies ultricies, nunc nisl ultricies nunc, nec ultricies nunc nisl nec nunc."
146+
className="min-h-32"
147+
/>
148+
</div>
149+
</div>
150+
</CardContent>
151+
</Card>
153152
</div>
154153
</div>
155154
);

0 commit comments

Comments
 (0)