ProxMenux/web/app/layout.tsx

79 lines
2.1 KiB
TypeScript
Raw Normal View History

2025-02-13 17:28:49 +01:00
import "./globals.css"
import { Inter } from "next/font/google"
2025-02-13 23:04:40 +01:00
import Navbar from "@/components/navbar"
import MouseMoveEffect from "@/components/mouse-move-effect"
2025-02-17 19:05:04 +01:00
import DocSidebar from "@/components/DocSidebar"
2025-02-16 11:29:56 +01:00
import type React from "react"
import type { Metadata } from "next"
2025-02-13 17:28:49 +01:00
const inter = Inter({ subsets: ["latin"] })
2025-02-17 18:45:13 +01:00
const basePath = "/ProxMenux"
const description =
"A menu-driven script for Proxmox VE management, designed to facilitate productivity, it simplifies automation and streamlines task execution."
2025-02-16 11:29:56 +01:00
export const metadata: Metadata = {
title: "ProxMenux",
2025-02-17 18:45:13 +01:00
description,
generator: "Next.js",
applicationName: "ProxMenux",
referrer: "origin-when-cross-origin",
keywords: ["Proxmox VE", "ProxMenux", "menu-driven", "script", "management", "virtualization"],
authors: { name: "MacRimi" },
creator: "MacRimi",
publisher: "MacRimi",
formatDetection: {
email: false,
address: false,
telephone: false,
},
metadataBase: new URL(`https://macrimi.github.io${basePath}/`),
openGraph: {
title: "ProxMenux",
description,
url: `https://macrimi.github.io${basePath}/`,
images: [
{
url: `https://macrimi.github.io${basePath}/main.png`,
},
],
locale: "en_US",
type: "website",
},
twitter: {
card: "summary_large_image",
title: "ProxMenux",
description,
images: [`https://macrimi.github.io${basePath}/main.png`],
},
2025-02-16 11:29:56 +01:00
icons: {
icon: [
{ url: "/favicon.ico", sizes: "any" },
{ url: "/icon.svg", type: "image/svg+xml" },
{ url: "/icon.png", type: "image/png" },
],
apple: [{ url: "/apple-touch-icon.png" }],
},
}
2025-02-13 23:04:40 +01:00
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
2025-02-13 17:28:49 +01:00
return (
<html lang="en" className="dark">
<body className={`${inter.className} bg-background text-foreground antialiased`}>
2025-02-13 23:04:40 +01:00
<Navbar />
<MouseMoveEffect />
2025-02-17 19:05:04 +01:00
<div className="flex flex-col md:flex-row min-h-screen">
<DocSidebar />
<main className="flex-1 p-4 md:p-6 pt-32 md:pt-6">{children}</main>
</div>
2025-02-13 17:28:49 +01:00
</body>
</html>
)
}
2025-02-13 23:04:40 +01:00