SPB Git forge
38commits 1branches 0releases
338.7 MBsize
maindefault branch
4 h agolast push
HTML 53.9% TypeScript 44.5% JavaScript 0.6% SQL 0.5%
771 B · 21 lines tsx
Raw Blame History
1import type { Metadata } from "next";2import type { ReactNode } from "react";34/**5 * /admin root: never indexed, no public chrome. The public Header / MobileNav come from the root layout, so they are6 * hidden here with a scoped rule (they are direct children of <body>); the admin shell renders its own navigation.7 */8export const metadata: Metadata = {9  title: { default: "Admin", template: "%s · Admin · DataCenterIndex" },10  robots: { index: false, follow: false, nocache: true, googleBot: { index: false, follow: false } },11};1213export default function AdminRootLayout({ children }: { children: ReactNode }) {14  return (15    <>16      <style>{`body > header, body > nav[aria-label="Mobile"] { display: none !important; }`}</style>17      {children}18    </>19  );20}21