80 lines
2.2 KiB
TypeScript
80 lines
2.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import "./globals.css";
|
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
import { Toaster } from "@/components/ui/toaster";
|
|
import Image from "next/image";
|
|
import { QuickTopUI, QuickTopUILogoPart } from "@/components/site/QuickTopUI";
|
|
import { ReactQueryProvider } from "@/components/providers/ReactQueryProvider";
|
|
import { GameLaunchProvider } from "@/components/providers/GameLaunchProvider";
|
|
import { GameLaunchDialog } from "@/components/providers/GameLaunchDialog";
|
|
import { DownloadDialog } from "@/components/providers/DownloadDialog";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"]
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"]
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Home | Roblox",
|
|
description:
|
|
"Roblox is a global platform that brings people together through play.",
|
|
authors: [{ name: "Roblox Corporation" }],
|
|
keywords: [
|
|
"free games",
|
|
"online games",
|
|
"building games",
|
|
"virtual worlds",
|
|
"free mmo",
|
|
"gaming cloud",
|
|
"physics engine"
|
|
]
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en">
|
|
<body
|
|
className={`${geistSans.variable} ${geistMono.variable} antialiased overflow-x-hidden mocha`}
|
|
>
|
|
<ReactQueryProvider>
|
|
<TooltipProvider>
|
|
<GameLaunchProvider>
|
|
<main className="relative min-h-screen z-10">
|
|
<div
|
|
className="fixed inset-0 z-0 pointer-events-none bg-background"
|
|
aria-hidden="true"
|
|
/>
|
|
{/* <Image
|
|
src={"/bg.png"}
|
|
width={1920}
|
|
height={1080}
|
|
className="w-screen h-screen bg-blend-hard-light fixed top-0 left-0 opacity-25"
|
|
alt=""
|
|
/> */}
|
|
<QuickTopUI />
|
|
<div className="backdrop-blur-lg z-10 isolate overflow-scroll no-scrollbar w-screen max-h-screen h-screen antialiased overflow-x-hidden">
|
|
<QuickTopUILogoPart />
|
|
{children}
|
|
</div>
|
|
</main>
|
|
<DownloadDialog />
|
|
<GameLaunchDialog />
|
|
<Toaster />
|
|
</GameLaunchProvider>
|
|
</TooltipProvider>
|
|
</ReactQueryProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|