mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-04-19 17:11:18 +00:00
59 lines
1.5 KiB
TypeScript
59 lines
1.5 KiB
TypeScript
import type { Viewport } from 'next';
|
|
import { Inter } from 'next/font/google';
|
|
import './globals.css';
|
|
import { cn } from '@/lib/utils';
|
|
import React from 'react';
|
|
import { ThemeProvider } from 'next-themes';
|
|
|
|
const inter = Inter({ subsets: ['latin'] });
|
|
|
|
const APP_NAME = 'Next Ory';
|
|
const APP_DEFAULT_TITLE = 'Next Ory';
|
|
const APP_TITLE_TEMPLATE = `%s | ${APP_DEFAULT_TITLE}`;
|
|
const APP_DESCRIPTION = 'Get started with Ory authentication quickly and easily.';
|
|
|
|
export const metadata = {
|
|
applicationName: APP_NAME,
|
|
title: {
|
|
default: APP_DEFAULT_TITLE,
|
|
template: APP_TITLE_TEMPLATE,
|
|
},
|
|
description: APP_DESCRIPTION,
|
|
appleWebApp: {
|
|
capable: true,
|
|
statusBarStyle: 'default',
|
|
title: APP_DEFAULT_TITLE,
|
|
},
|
|
formatDetection: {
|
|
telephone: false,
|
|
},
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: '#18181b',
|
|
width: 'device-width',
|
|
};
|
|
|
|
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<head>
|
|
<link crossOrigin="use-credentials" rel="manifest" href="/manifest.json"/>
|
|
<link
|
|
rel="icon"
|
|
href="/favicon.png"
|
|
/>
|
|
</head>
|
|
<body className={cn(inter.className)}>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|