mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-10-02 16:16:19 +00:00
47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
import type React from "react"
|
|
import type { Metadata } from "next"
|
|
import { GeistSans } from "geist/font/sans"
|
|
import { GeistMono } from "geist/font/mono"
|
|
import { Analytics } from "@vercel/analytics/next"
|
|
import { ThemeProvider } from "../components/theme-provider"
|
|
import { Suspense } from "react"
|
|
import "./globals.css"
|
|
|
|
export const metadata: Metadata = {
|
|
title: "ProxMenux Monitor",
|
|
description: "Proxmox System Dashboard and Monitor",
|
|
generator: "v0.app",
|
|
manifest: "/manifest.json",
|
|
icons: {
|
|
icon: [
|
|
{ url: "/favicon-16x16.png", sizes: "16x16", type: "image/png" },
|
|
{ url: "/favicon-32x32.png", sizes: "32x32", type: "image/png" },
|
|
],
|
|
apple: [{ url: "/apple-touch-icon.png", sizes: "180x180", type: "image/png" }],
|
|
},
|
|
viewport: "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no",
|
|
themeColor: [
|
|
{ media: "(prefers-color-scheme: light)", color: "#ffffff" },
|
|
{ media: "(prefers-color-scheme: dark)", color: "#2b2f36" },
|
|
],
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className={`${GeistSans.variable} ${GeistMono.variable} antialiased bg-background text-foreground`}>
|
|
<Suspense fallback={<div>Loading...</div>}>
|
|
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem disableTransitionOnChange>
|
|
{children}
|
|
</ThemeProvider>
|
|
<Analytics />
|
|
</Suspense>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|