2024-06-20 15:38:05 +02:00
import Footer from "@/components/shared/Footer" ;
import Navbar from "@/components/shared/Navbar" ;
2024-08-30 19:14:32 +02:00
import Banner from "@/components/widgets/Banner" ;
2024-09-08 06:33:47 +02:00
import NoScript from "@/components/shared/NoScript" ;
2024-09-14 16:51:30 +02:00
import { Rocket } from "lucide-react" ;
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-09-07 09:42:33 +02:00
title : "SVR.JS - a web server running on Node.JS" ,
2024-09-07 09:12:48 +02:00
description :
2024-09-07 09:42:33 +02:00
"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-09-07 09:12:48 +02:00
openGraph : {
2024-09-07 09:42:33 +02:00
title : "SVR.JS - a web server running on Node.JS" ,
2024-09-07 09:12:48 +02:00
description :
2024-09-07 09:42:33 +02:00
"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-09-08 19:32:25 +02:00
url : ` ${ process . env . NEXT_PUBLIC_WEBSITE_URL } ` ,
2024-09-07 09:12:48 +02:00
type : "website" ,
images : [
{
2024-09-08 13:16:43 +02:00
url : ` ${ process . env . NEXT_PUBLIC_WEBSITE_URL } /metadata/svrjs-cover.png ` ,
2024-09-07 09:12:48 +02:00
width : 800 ,
height : 600 ,
2024-09-07 09:42:33 +02:00
alt : "SVR.JS - a web server running on Node.JS"
2024-09-07 09:12:48 +02:00
}
]
} ,
twitter : {
card : "summary_large_image" ,
site : "@SVR_JS" ,
2024-09-07 09:42:33 +02:00
title : "SVR.JS - a web server running on Node.JS" ,
2024-09-07 09:12:48 +02:00
description :
2024-09-07 09:42:33 +02:00
"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-09-08 13:16:43 +02:00
images : [ ` ${ process . env . NEXT_PUBLIC_WEBSITE_URL } /metadata/svrjs-cover.png ` ] ,
2024-09-07 09:12:48 +02:00
creator : "@SVR_JS"
}
2024-06-22 10:30:51 +02:00
} ;
2024-08-01 16:32:57 +02:00
2024-06-20 15:38:05 +02:00
export default function PageLayout ( {
2024-09-07 09:12:48 +02:00
children
2024-06-20 15:38:05 +02:00
} : {
2024-09-07 09:12:48 +02:00
children : React.ReactNode ;
2024-06-20 15:38:05 +02:00
} ) {
2024-09-07 09:12:48 +02:00
const iconClassName = "w-4 h-4 flex-center text-zinc-950 -mr-2" ;
return (
< div className = "flex flex-col min-h-screen" >
{ /* Comment or edit this whenever required */ }
< Banner
2024-09-14 16:51:30 +02:00
icon = { < Rocket className = { iconClassName } / > }
title = "SVR.JS 4.0.0 has been released!"
announcement = "This major release brings many improvements to SVR.JS."
link = "/blog/svr-js-4-0-0-has-been-released"
2024-09-07 09:12:48 +02:00
buttonText = "Read more"
/ >
< Navbar / >
2024-09-08 06:33:47 +02:00
< NoScript / >
2024-09-07 09:12:48 +02:00
< div className = "flex-grow flex-1 overflow-x-hidden" > { children } < / div >
< Footer / >
< / div >
) ;
2024-06-20 15:38:05 +02:00
}