mirror of
https://github.com/ershisan99/www.git
synced 2026-01-06 12:35:13 +00:00
add fumadocs
This commit is contained in:
@@ -1,20 +1,17 @@
|
||||
import '@/styles/globals.css'
|
||||
|
||||
import type {Metadata} from 'next'
|
||||
import {Geist} from 'next/font/google'
|
||||
|
||||
import {MainHeader} from '@/components/header'
|
||||
import {ThemeProvider} from '@/components/theme-provider'
|
||||
import {TRPCReactProvider} from '@/trpc/react'
|
||||
import {SessionProvider} from 'next-auth/react'
|
||||
import {NextIntlClientProvider} from 'next-intl'
|
||||
import {getLocale} from 'next-intl/server'
|
||||
import { TRPCReactProvider } from '@/trpc/react'
|
||||
import { RootProvider } from 'fumadocs-ui/provider'
|
||||
import type { Metadata } from 'next'
|
||||
import { SessionProvider } from 'next-auth/react'
|
||||
import { NextIntlClientProvider } from 'next-intl'
|
||||
import { getLocale } from 'next-intl/server'
|
||||
import PlausibleProvider from 'next-plausible'
|
||||
import { Geist } from 'next/font/google'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Balatro Multiplayer',
|
||||
description: 'Unofficial (for now) stats for the Balatro Multiplayer Mod',
|
||||
icons: [{rel: 'icon', url: '/favicon.ico'}],
|
||||
icons: [{ rel: 'icon', url: '/favicon.ico' }],
|
||||
}
|
||||
|
||||
const geist = Geist({
|
||||
@@ -23,8 +20,8 @@ const geist = Geist({
|
||||
})
|
||||
|
||||
export default async function RootLayout({
|
||||
children,
|
||||
}: Readonly<{ children: React.ReactNode }>) {
|
||||
children,
|
||||
}: Readonly<{ children: React.ReactNode }>) {
|
||||
const locale = await getLocale()
|
||||
return (
|
||||
<html
|
||||
@@ -32,33 +29,25 @@ export default async function RootLayout({
|
||||
className={`${geist.variable}`}
|
||||
suppressHydrationWarning
|
||||
>
|
||||
<head>
|
||||
<title/>
|
||||
<PlausibleProvider
|
||||
domain='balatromp.com'
|
||||
customDomain={'https://plausible.balatromp.com'}
|
||||
trackOutboundLinks
|
||||
trackFileDownloads
|
||||
selfHosted
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<TRPCReactProvider>
|
||||
<NextIntlClientProvider>
|
||||
<SessionProvider>
|
||||
<ThemeProvider
|
||||
attribute='class'
|
||||
defaultTheme='system'
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
>
|
||||
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
</SessionProvider>
|
||||
</NextIntlClientProvider>
|
||||
</TRPCReactProvider>
|
||||
</body>
|
||||
<head>
|
||||
<title />
|
||||
<PlausibleProvider
|
||||
domain='balatromp.com'
|
||||
customDomain={'https://plausible.balatromp.com'}
|
||||
trackOutboundLinks
|
||||
trackFileDownloads
|
||||
selfHosted
|
||||
/>
|
||||
</head>
|
||||
<body className={'flex min-h-screen flex-col'}>
|
||||
<TRPCReactProvider>
|
||||
<NextIntlClientProvider>
|
||||
<SessionProvider>
|
||||
<RootProvider>{children}</RootProvider>
|
||||
</SessionProvider>
|
||||
</NextIntlClientProvider>
|
||||
</TRPCReactProvider>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user