File tree Expand file tree Collapse file tree 1 file changed +40
-15
lines changed
apps/web/src/app/(main)/dashboard Expand file tree Collapse file tree 1 file changed +40
-15
lines changed Original file line number Diff line number Diff line change @@ -28,22 +28,47 @@ export default function DashboardLayout({
2828 </ div >
2929 ) }
3030 </ AnimatePresence >
31- < div className = "flex-1 flex flex-col h-full bg-dash-base" >
32- < div className = "xl:hidden flex items-center h-16 px-4 border-b border-dash-border bg-dash-base" >
33- < IconWrapper onClick = { ( ) => setShowSidebar ( true ) } >
34- < Bars3Icon className = "size-5 text-brand-purple" />
35- </ IconWrapper >
36- < Link
37- href = "/"
38- className = "ml-4 text-lg font-semibold text-text-primary hover:text-brand-purple transition-colors"
39- >
40- Opensox
41- </ Link >
31+ { showSidebar && (
32+ < div
33+ onClick = { ( ) => setShowSidebar ( false ) }
34+ className = "fixed inset-0 xl:hidden"
35+ >
36+ < div className = "flex-1 flex flex-col h-full bg-ox-content" >
37+ < div className = "xl:hidden flex items-center h-16 px-4 border-b border-ox-header bg-ox-content" >
38+ < IconWrapper >
39+ < Bars3Icon className = "size-5 text-ox-purple" />
40+ </ IconWrapper >
41+ < Link
42+ href = "/"
43+ className = "ml-4 text-lg font-semibold text-ox-white hover:text-ox-purple transition-colors"
44+ >
45+ Opensox
46+ </ Link >
47+ </ div >
48+ < main className = "flex-1 h-full overflow-auto bg-ox-content" >
49+ { children }
50+ </ main >
51+ </ div >
52+ </ div >
53+ ) }
54+ { ! showSidebar && (
55+ < div className = "flex-1 flex flex-col h-full bg-ox-content" >
56+ < div className = "xl:hidden flex items-center h-16 px-4 border-b border-ox-header bg-ox-content" >
57+ < IconWrapper onClick = { ( ) => setShowSidebar ( true ) } >
58+ < Bars3Icon className = "size-5 text-ox-purple" />
59+ </ IconWrapper >
60+ < Link
61+ href = "/"
62+ className = "ml-4 text-lg font-semibold text-ox-white hover:text-ox-purple transition-colors"
63+ >
64+ Opensox
65+ </ Link >
66+ </ div >
67+ < main className = "flex-1 h-full overflow-auto bg-ox-content" >
68+ { children }
69+ </ main >
4270 </ div >
43- < main className = "flex-1 h-full overflow-auto bg-dash-base" >
44- { children }
45- </ main >
46- </ div >
71+ ) }
4772 </ div >
4873 ) ;
4974}
You can’t perform that action at this time.
0 commit comments