mirror of
https://github.com/Sevichecc/m-oauth.git
synced 2025-04-30 14:59:29 +08:00
59 lines
1.5 KiB
TypeScript
59 lines
1.5 KiB
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 = {
|
|
metadataBase: new URL('https://m-oauth.seviche.cc'),
|
|
title: "M-OAuth",
|
|
description:
|
|
"Access token generator for Akkoma, Pleroma, Mastodon, Misskey APIs.",
|
|
icons: {
|
|
icon: '/favicon.ico',
|
|
shortcut: '/favicon-16x16/png',
|
|
apple: "/apple-touch-icon.png",
|
|
},
|
|
openGraph: {
|
|
title: 'M-OAuth',
|
|
description: 'Access token generator for Akkoma, Pleroma, Mastodon, Misskey APIs.',
|
|
url: 'https://m-oauth.seviche.cc',
|
|
siteName: 'M-OAuth',
|
|
images: [
|
|
{
|
|
url: '/og.png',
|
|
width: 800,
|
|
height: 600,
|
|
}
|
|
],
|
|
locale: 'en_US',
|
|
type: 'website',
|
|
},
|
|
};
|
|
|
|
export const viewport = {
|
|
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>
|
|
);
|
|
}
|