52 lines
1.4 KiB
TypeScript
52 lines
1.4 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Anuphan, Geist_Mono } from "next/font/google";
|
|
|
|
import { DeploymentUpdateNotifier } from "@/components/deployment-update-notifier";
|
|
import { PageProgress } from "@/components/page-progress";
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
|
|
import "./globals.css";
|
|
|
|
const anuphan = Anuphan({
|
|
variable: "--font-anuphan",
|
|
subsets: ["thai", "latin"],
|
|
fallback: ["Tahoma", "Arial", "sans-serif"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL("https://guide.sudloh.com"),
|
|
title: {
|
|
default: "Buzz Guide",
|
|
template: "%s",
|
|
},
|
|
description: "ไกด์ตัวละครจากช่องเกนชินไม่ใช่เกมมือถือ",
|
|
};
|
|
|
|
export default function RootLayout({ children }: LayoutProps<"/">) {
|
|
const deploymentId = process.env.NEXT_DEPLOYMENT_ID?.trim() || "development";
|
|
|
|
return (
|
|
<html
|
|
lang="th"
|
|
className={`dark ${anuphan.variable} ${geistMono.variable} h-full antialiased`}
|
|
>
|
|
<body className="flex min-h-full flex-col">
|
|
<PageProgress />
|
|
{children}
|
|
<DeploymentUpdateNotifier deploymentId={deploymentId} />
|
|
<Toaster
|
|
richColors
|
|
closeButton
|
|
position="bottom-right"
|
|
toastOptions={{ className: anuphan.className }}
|
|
/>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|