Files
blackroad-os-web/app/(app)/layout.tsx
Alexa Louise a4bfd5269b feat: Major UI enhancement with BlackRoad brand system
- Add stunning landing page with hero, features, and CTA sections
- Update login/signup pages with dark theme and brand gradients
- Enhance Sidebar with improved navigation and brand colors
- Update AppHeader with search bar, notifications, and user menu
- Add reusable UI components (Button, Card, Input, Badge)
- Add API health and status endpoints
- Apply official BlackRoad brand colors (#FF1D6C hot pink, #F5A623 amber, #2979FF electric blue, #9C27B0 violet)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-11 14:37:43 -06:00

43 lines
1.1 KiB
TypeScript

'use client';
import { useEffect } from 'react';
import { useRouter } from 'next/navigation';
import { useAuthStore } from '@/stores/auth-store';
import { useWorkspaceStore } from '@/stores/workspace-store';
import Sidebar from '@/components/Sidebar';
import AppHeader from '@/components/AppHeader';
export default function AppLayout({
children,
}: {
children: React.ReactNode;
}) {
const router = useRouter();
const isAuthenticated = useAuthStore((state) => state.isAuthenticated);
const fetchWorkspaces = useWorkspaceStore((state) => state.fetchWorkspaces);
useEffect(() => {
if (!isAuthenticated) {
router.push('/login');
} else {
fetchWorkspaces();
}
}, [isAuthenticated, router, fetchWorkspaces]);
if (!isAuthenticated) {
return null;
}
return (
<div className="flex h-screen overflow-hidden">
<Sidebar />
<div className="flex flex-1 flex-col overflow-hidden">
<AppHeader />
<main className="flex-1 overflow-y-auto bg-black">
{children}
</main>
</div>
</div>
);
}