diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index d42a28a3..543c3c04 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -6,11 +6,13 @@ import ProxyHosts from './pages/ProxyHosts' import RemoteServers from './pages/RemoteServers' import ImportCaddy from './pages/ImportCaddy' import Settings from './pages/Settings' +import Login from './pages/Login' export default function App() { return ( + } /> }> } /> } /> diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index 4f3adf38..f23d7ea1 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -1,5 +1,7 @@ -import { ReactNode } from 'react' +import { ReactNode, useState } from 'react' import { Link, useLocation } from 'react-router-dom' +import { ThemeToggle } from './ThemeToggle' +import { Button } from './ui/Button' interface LayoutProps { children: ReactNode @@ -7,6 +9,7 @@ interface LayoutProps { export default function Layout({ children }: LayoutProps) { const location = useLocation() + const [sidebarOpen, setSidebarOpen] = useState(false) const navigation = [ { name: 'Dashboard', path: '/', icon: '📊' }, @@ -17,23 +20,41 @@ export default function Layout({ children }: LayoutProps) { ] return ( -
- {/* Sidebar */} -