diff --git a/apps/web/src/app/login/page.tsx b/apps/web/src/app/login/page.tsx index 2d29e57..bee1ad0 100644 --- a/apps/web/src/app/login/page.tsx +++ b/apps/web/src/app/login/page.tsx @@ -1,4 +1,4 @@ -import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { Card, CardContent } from "@/components/ui/card"; import { LoginFormClient } from "./login-form-client"; export const metadata = { @@ -14,12 +14,9 @@ export default async function LoginPage({ searchParams }: PageProps) { const next = sp.next ?? "/"; return ( -
+
- - Sign in - - + diff --git a/apps/web/src/components/app-shell.tsx b/apps/web/src/components/app-shell.tsx index 945b410..dcea32f 100644 --- a/apps/web/src/components/app-shell.tsx +++ b/apps/web/src/components/app-shell.tsx @@ -180,6 +180,30 @@ function Sidebar() { ); } +// --------------------------------------------------------------------------- +// Bare header for unauthenticated routes (/login). No sidebar, no mobile +// menu, no nav — just the centered brand mark + name. The user explicitly +// asked for nothing else here so the sign-in screen feels like a separate +// surface from the authenticated app. +// --------------------------------------------------------------------------- +function BareHeader() { + return ( +
+
+ + cm + + + WhatsApp Bot + +
+
+ ); +} + // --------------------------------------------------------------------------- // AppShell — the outer container // --------------------------------------------------------------------------- @@ -188,6 +212,18 @@ interface AppShellProps { } export function AppShell({ children }: AppShellProps) { + const pathname = usePathname(); + const isAuthRoute = pathname === "/login"; + + if (isAuthRoute) { + return ( + <> + +
{children}
+ + ); + } + return ( <> {/* Desktop sidebar */}