mirror of
https://github.com/Sevichecc/m-oauth.git
synced 2025-04-30 06:59:29 +08:00
36 lines
969 B
TypeScript
36 lines
969 B
TypeScript
import "@/styles/globals.css";
|
|
import { fontSans } from "@/lib/fonts";
|
|
import { cn } from "@/lib/utils";
|
|
import { ThemeProvider } from "@/components/ui/theme-provider";
|
|
|
|
export const metadata = {
|
|
title: "M-OAuth",
|
|
description:
|
|
"Access token generator for Akkoma, Pleroma, Mastodon, Misskey APIs.",
|
|
themeColor: [
|
|
{ media: "(prefers-color-scheme: light)", color: "white" },
|
|
{ media: "(prefers-color-scheme: dark)", color: "black" },
|
|
],
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<head />
|
|
<body
|
|
className={cn(
|
|
"grid min-h-screen place-content-center place-items-center bg-background px-2 font-sans antialiased md:px-5 md:pb-10 md:pt-5",
|
|
fontSans.variable
|
|
)}
|
|
>
|
|
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|