39 lines
846 B
TypeScript
39 lines
846 B
TypeScript
import "./globals.css";
|
|
import type { Metadata, Viewport } from "next";
|
|
import Nav from "@/components/nav";
|
|
import AutoRefresh from "@/components/auto-refresh";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "CM Bot V2",
|
|
description: "CM Bot account and user dashboard",
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: "#facc15",
|
|
};
|
|
|
|
const workbenchGrid = {
|
|
backgroundImage:
|
|
"radial-gradient(circle at 1px 1px, rgba(24,24,27,0.07) 1px, transparent 0)",
|
|
backgroundSize: "24px 24px",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<body
|
|
className="min-h-screen bg-zinc-50 text-zinc-900 antialiased"
|
|
style={workbenchGrid}
|
|
>
|
|
<Nav />
|
|
<main>{children}</main>
|
|
<AutoRefresh />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|