This commit is contained in:
MacRimi 2025-02-18 22:20:33 +01:00
parent 5e521086e0
commit 811c9b03bb
2 changed files with 24 additions and 45 deletions

View File

@ -1,21 +1,31 @@
import "./globals.css"
import { Inter } from 'next/font/google'
import { Inter } from "next/font/google"
import Navbar from "@/components/navbar"
import MouseMoveEffect from "@/components/mouse-move-effect"
import type React from "react"
import { metadata } from './metadata'
import { metadata } from "./metadata"
const inter = Inter({ subsets: ["latin"] })
export { metadata }
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" className="dark">
<head>
<title>{metadata.title?.default}</title>
<meta name="description" content={metadata.description} />
<meta property="og:title" content={metadata.openGraph?.title} />
<meta property="og:description" content={metadata.openGraph?.description} />
<meta property="og:image" content={metadata.openGraph?.images?.[0]?.url} />
<meta property="og:url" content={metadata.openGraph?.url} />
<meta property="og:type" content={metadata.openGraph?.type} />
<meta property="og:site_name" content={metadata.openGraph?.siteName} />
<meta name="twitter:card" content={metadata.twitter?.card} />
<meta name="twitter:title" content={metadata.twitter?.title} />
<meta name="twitter:description" content={metadata.twitter?.description} />
<meta name="twitter:image" content={metadata.twitter?.images?.[0]} />
</head>
<body className={`${inter.className} bg-background text-foreground antialiased`}>
<Navbar />
<MouseMoveEffect />
@ -23,4 +33,6 @@ export default function RootLayout({
</body>
</html>
)
}
}

View File

@ -1,39 +1,7 @@
import dynamic from "next/dynamic"
import type { Metadata } from "next"
import { metadata as siteMetadata } from "./metadata"
const Hero = dynamic(() => import("@/components/hero"), { ssr: false })
const Resources = dynamic(() => import("@/components/resources"), { ssr: false })
const SupportProject = dynamic(() => import("@/components/support-project"), { ssr: false })
const Footer = dynamic(() => import("@/components/footer"), { ssr: false })
export const metadata: Metadata = {
...siteMetadata,
title: "ProxMenux ",
description:
"A menu-driven script for Proxmox VE management, designed to simplify and streamline the execution of commands and tasks.",
openGraph: {
...siteMetadata.openGraph,
title: "ProxMenux ",
description:
"A menu-driven script for Proxmox VE management, designed to simplify and streamline the execution of commands and tasks.",
images: [
{
url: "https://macrimi.github.io/ProxMenux/main.png",
width: 1363,
height: 735,
alt: "ProxMenux ",
},
],
},
twitter: {
...siteMetadata.twitter,
title: "ProxMenux",
description:
"A menu-driven script for Proxmox VE management, designed to simplify and streamline the execution of commands and tasks.",
images: [`https://macrimi.github.io/ProxMenux/main.png`],
},
}
import Hero from "@/components/hero"
import Resources from "@/components/resources"
import SupportProject from "@/components/support-project"
import Footer from "@/components/footer"
export default function Home() {
return (
@ -45,4 +13,3 @@ export default function Home() {
</div>
)
}