File tree Expand file tree Collapse file tree 2 files changed +49
-6
lines changed Expand file tree Collapse file tree 2 files changed +49
-6
lines changed Original file line number Diff line number Diff line change 1
- import {
2
- ResizableHandle ,
3
- ResizablePanel ,
4
- ResizablePanelGroup ,
5
- } from "@/components/Resizable" ;
1
+ import { ResizableHandle , ResizablePanelGroup } from "@/components/Resizable" ;
6
2
import { Editor } from "./Editor" ;
7
3
import { Logo } from "./components/Logo" ;
4
+ import { Preview } from "./Preview" ;
8
5
9
6
export const App = ( ) => {
10
7
return (
@@ -54,7 +51,7 @@ export const App = () => {
54
51
< ResizableHandle className = "bg-surface-quaternary" />
55
52
56
53
{ /* PREVIEW */ }
57
- < ResizablePanel > Two </ ResizablePanel >
54
+ < Preview / >
58
55
</ ResizablePanelGroup >
59
56
</ main >
60
57
) ;
Original file line number Diff line number Diff line change
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
+ } ;
You can’t perform that action at this time.
0 commit comments