File tree 1 file changed +9
-20
lines changed
packages/htmldocs/src/app/components
1 file changed +9
-20
lines changed Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
import * as React from "react" ;
3
3
import { cn } from "~/lib/utils" ;
4
+ import { List } from "@phosphor-icons/react" ;
4
5
import { Sidebar } from "./sidebar" ;
5
6
import { Topbar } from "./topbar" ;
6
7
import { Logo } from "./logo" ;
8
+ import { Button } from "./ui/button" ;
7
9
8
10
type RootProps = React . ComponentPropsWithoutRef < "div" > ;
9
11
@@ -30,35 +32,22 @@ export const Shell = ({
30
32
31
33
return (
32
34
< >
33
- < div className = "flex bg-background text-white flex-col h-screen overflow-x-hidden print-hide" >
35
+ < div className = "flex bg-background text-foreground flex-col h-screen overflow-x-hidden print-hide" >
34
36
< div className = "flex lg:hidden items-center px-6 justify-between h-[70px] border-b border-slate-6" >
35
37
< div className = "h-[70px] flex items-center" >
36
38
< Logo />
37
39
</ div >
38
40
39
- < button
40
- className = "h-6 w-6 rounded flex items-center justify-center text-white"
41
+ < Button
42
+ className = "group"
43
+ variant = "ghost"
44
+ size = "icon"
41
45
onClick = { ( ) => {
42
46
setSidebarToggled ( ( v ) => ! v ) ;
43
47
} }
44
- type = "button"
45
48
>
46
- < svg
47
- fill = "none"
48
- height = "16"
49
- stroke = "white"
50
- viewBox = "0 0 15 15"
51
- width = "16"
52
- xmlns = "http://www.w3.org/2000/svg"
53
- >
54
- < path
55
- clipRule = "evenodd"
56
- d = "M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z"
57
- fill = "currentColor"
58
- fillRule = "evenodd"
59
- />
60
- </ svg >
61
- </ button >
49
+ < List height = { 20 } width = { 20 } className = "text-muted-foreground group-hover:text-foreground transition-colors duration-150" />
50
+ </ Button >
62
51
</ div >
63
52
64
53
< div className = "flex bg-slate-2" >
You can’t perform that action at this time.
0 commit comments