mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-10-25 02:31:30 +00:00
Names the two halves for what they are. The repo already holds both (12407e9 merged bootnode/bootnode into this history); this makes the frontend directory say so, so the layout reads the way the owner describes the system: backend and frontend separate, one repo. git mv throughout — 187 renames, history preserved. Every path reference follows: hanzo.yml build context and dockerfile, compose.yml, compose.prod.yml, start.sh, LLM.md, infra/k8s/web-deployments.yaml, infra/cloud/deploy.sh, and the Dockerfile's own COPY paths. Image and container names (bootnode-web, the -web tag suffix) are deliberately NOT renamed here: those are a deploy contract the App CR and ingress bind to on port 3001, and breaking them is a separate, staged change. Console builds green after the move; the Go tree builds. Co-authored-by: Hanzo Dev <[email protected]>
31 lines
1.3 KiB
TypeScript
31 lines
1.3 KiB
TypeScript
"use client"
|
|
|
|
import { Navbar } from "@/components/navbar"
|
|
import { Footer } from "@/components/footer"
|
|
import { ConsoleLayout } from "@/components/console-layout"
|
|
import { ProtectedRoute } from "@/lib/auth"
|
|
|
|
// Marketing and console share ONE header, as they do on lux.cloud: the same
|
|
// bar, the same brand lockup, the same account cluster, so signing in does not
|
|
// teleport you into a different product. The console adds exactly one thing —
|
|
// the section sidebar — and that is what ConsoleLayout is.
|
|
//
|
|
// The previous layout mounted a second, console-only top bar (its own logo,
|
|
// its own account menu, an org switcher whose options changed nothing) above a
|
|
// fixed 64px rail, and hard-coded `pl-64 pt-16` into the content. Both bars are
|
|
// gone; the offsets now come from the --header-h / --sidebar-w tokens so the
|
|
// header and the sidebar can never disagree about where the other one ends.
|
|
export default function DashboardLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<ProtectedRoute>
|
|
<div className="flex min-h-screen flex-col bg-background text-foreground">
|
|
<Navbar />
|
|
<div className="flex-1">
|
|
<ConsoleLayout>{children}</ConsoleLayout>
|
|
</div>
|
|
<Footer />
|
|
</div>
|
|
</ProtectedRoute>
|
|
)
|
|
}
|