diff --git a/app/layout-content.tsx b/app/layout-content.tsx index ccf5075..55111d5 100644 --- a/app/layout-content.tsx +++ b/app/layout-content.tsx @@ -112,65 +112,66 @@ function LayoutInner({ children }: { children: React.ReactNode }) { return } + const headerElement = ( +
: null} + apps={CIPHERA_APPS} + currentAppId="pulse" + onOpenSettings={openSettings} + leftActions={isAuthenticated ? : undefined} + customNavItems={ + <> + {!auth.user && ( + + Features + + )} + + } + /> + ) + + if (isAuthenticated) { + // Dashboard layout: header pinned, sidebar + content fill remaining viewport + return ( +
+ {auth.user && } +
{headerElement}
+ {children} + +
+ ) + } + + // Public/marketing layout: floating header, scrollable page, footer return (
- {auth.user && } -
+ {children} + +
: null} - apps={CIPHERA_APPS} - currentAppId="pulse" - onOpenSettings={openSettings} - leftActions={isAuthenticated ? : undefined} - customNavItems={ - <> - {!auth.user && ( - - Features - - )} - - } + isAuthenticated={false} /> - {isAuthenticated ? ( - // Authenticated: sidebar layout — children include DashboardShell - <>{children} - ) : ( - // Public: standard content with footer - <> -
- {children} -
-
- - )} - {isAuthenticated && ( -
- )}
) diff --git a/components/dashboard/DashboardShell.tsx b/components/dashboard/DashboardShell.tsx index a2aeb3c..bd83581 100644 --- a/components/dashboard/DashboardShell.tsx +++ b/components/dashboard/DashboardShell.tsx @@ -13,9 +13,9 @@ export default function DashboardShell({ const { mobileOpen, closeMobile } = useSidebar() return ( -
+
-
+
{children}
diff --git a/components/dashboard/Sidebar.tsx b/components/dashboard/Sidebar.tsx index ad08a1d..b47884d 100644 --- a/components/dashboard/Sidebar.tsx +++ b/components/dashboard/Sidebar.tsx @@ -319,7 +319,7 @@ export default function Sidebar({ {/* Desktop sidebar */}