Skip to content

Commit 14c3bd4

Browse files
committed
feat: preview empty state
1 parent f35d424 commit 14c3bd4

File tree

2 files changed

+49
-6
lines changed

2 files changed

+49
-6
lines changed

src/App.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import {
2-
ResizableHandle,
3-
ResizablePanel,
4-
ResizablePanelGroup,
5-
} from "@/components/Resizable";
1+
import { ResizableHandle, ResizablePanelGroup } from "@/components/Resizable";
62
import { Editor } from "./Editor";
73
import { Logo } from "./components/Logo";
4+
import { Preview } from "./Preview";
85

96
export const App = () => {
107
return (
@@ -54,7 +51,7 @@ export const App = () => {
5451
<ResizableHandle className="bg-surface-quaternary" />
5552

5653
{/* PREVIEW */}
57-
<ResizablePanel>Two</ResizablePanel>
54+
<Preview />
5855
</ResizablePanelGroup>
5956
</main>
6057
);

src/Preview.tsx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { Button } from "@/components/Button";
2+
import { ResizablePanel } from "@/components/Resizable";
3+
import { ActivityIcon, ExternalLinkIcon } from "lucide-react";
4+
import type { FC } from "react";
5+
6+
export const Preview: FC = () => {
7+
return (
8+
<ResizablePanel className="flex flex-col items-start gap-6 p-8">
9+
<div className="flex w-full items-center justify-between">
10+
<p className="font-semibold text-3xl text-content-primary">
11+
Parameters
12+
</p>
13+
<Button variant="destructive">Reset form</Button>
14+
</div>
15+
16+
<div className="flex h-full w-full items-center justify-center rounded-xl border p-4">
17+
<div className="flex flex-col items-center justify-center gap-3">
18+
<div className="flex items-center justify-center rounded-[6px] bg-highlight-sky p-2">
19+
<ActivityIcon className="text-content-invert" width={24} height={24} />
20+
</div>
21+
22+
<div className="flex flex-col items-center gap-2">
23+
<div className="flex max-w-[258px] flex-col items-center gap-1">
24+
<p className="text-nowrap text-center font-semibold text-2xl text-content-primary">
25+
Parameters Playground
26+
</p>
27+
<p className="text-center font-medium text-content-secondary text-sm">
28+
Create dynamic parameters here, I need to figure out a better
29+
copy.
30+
</p>
31+
</div>
32+
<a
33+
href="#todo"
34+
className="flex items-center gap-0.5 text-content-link text-sm"
35+
>
36+
Read the docs{" "}
37+
<span className="inline">
38+
<ExternalLinkIcon width={16} />
39+
</span>
40+
</a>
41+
</div>
42+
</div>
43+
</div>
44+
</ResizablePanel>
45+
);
46+
};

0 commit comments

Comments
 (0)