SPB Git

Repository Public

layout.tsx 1.0 KB 25 lines tsx

1import type { Metadata, Viewport } from "next";2import { getUser } from "@/lib/session";3import "./globals.css";45export const metadata: Metadata = {6  title: { default: "Music SP", template: "%s · Music SP" },7  description: "Lecteur musical privé.",8  applicationName: "Music SP",9  manifest: "/manifest.webmanifest",10  robots: { index: false, follow: false },11  icons: { icon: [{ url: "/icons/icon.svg", type: "image/svg+xml" }, { url: "/icons/icon-192.png", sizes: "192x192" }], apple: "/icons/apple-touch-icon.png" },12  appleWebApp: { capable: true, title: "Music SP", statusBarStyle: "black-translucent" },13  referrer: "same-origin",14};15export const viewport: Viewport = { themeColor: "#0b0a0d", colorScheme: "dark", width: "device-width", initialScale: 1, viewportFit: "cover" };1617export default async function RootLayout({ children }: { children: React.ReactNode }) {18  const user = await getUser();19  return (20    <html lang={user?.locale ?? "fr"} data-accent={user?.accent ?? "ember"}>21      <body>{children}</body>22    </html>23  );24}25
Files main
Menu

Theme