svrjs-nextjs-website/app/(root)/layout.tsx

48 lines
1.8 KiB
TypeScript
Raw Normal View History

2024-06-20 15:38:05 +02:00
import Footer from "@/components/shared/Footer";
import Navbar from "@/components/shared/Navbar";
2024-06-22 10:30:51 +02:00
import { Metadata } from "next";
2024-07-28 17:20:53 +02:00
// baseURL [ENV]
2024-06-22 10:30:51 +02:00
export const metadata: Metadata = {
2024-07-28 16:47:09 +02:00
title: "SVRJS - A Web Server running on Node.js",
description:
"Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.js. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).",
openGraph: {
title: "SVRJS - A Web Server running on Node.js",
description:
"Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.js. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).",
2024-07-28 16:51:55 +02:00
url: "https://svrjs.org",
2024-07-28 16:47:09 +02:00
type: "website",
images: [
{
2024-07-28 17:20:53 +02:00
url: "https://svrjs.vercel.app/metadata/svrjs-cover.png",
2024-07-28 16:47:09 +02:00
width: 800,
height: 600,
alt: "SVRJS - A Web Server running on Node.js",
},
],
},
twitter: {
card: "summary_large_image",
site: "@SVR_JS",
title: "SVRJS - A Web Server running on Node.js",
description:
"Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.js. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).",
2024-07-28 17:20:53 +02:00
images: ["https://svrjs.vercel.app/metadata/svrjs-cover.png"],
creator: "@SVR_JS",
2024-07-28 16:47:09 +02:00
},
2024-06-22 10:30:51 +02:00
};
2024-06-20 15:38:05 +02:00
export default function PageLayout({
2024-07-01 11:24:24 +02:00
children,
2024-06-20 15:38:05 +02:00
}: {
2024-07-01 11:24:24 +02:00
children: React.ReactNode;
2024-06-20 15:38:05 +02:00
}) {
2024-07-01 11:24:24 +02:00
return (
<div className="flex flex-col min-h-screen">
2024-07-01 11:24:24 +02:00
<Navbar />
<div className="flex-grow flex-1 overflow-x-hidden">{children}</div>
2024-07-01 11:24:24 +02:00
<Footer />
</div>
2024-07-01 11:24:24 +02:00
);
2024-06-20 15:38:05 +02:00
}