Spaces:
Running
Running
import type { Metadata } from 'next'; | |
import AuthLayout from '@/components/AuthLayout'; | |
import { Navbar } from '@/components/Navbar'; | |
import { routing } from '@/libs/i18nNavigation'; | |
import { isDevMode } from '@/utils/Helpers'; | |
import { Inter, Outfit } from 'next/font/google'; | |
import '../styles/global.css'; | |
const inter = Inter({ | |
subsets: ['latin'], | |
variable: '--font-sans', | |
}); | |
// Use Outfit from Google Fonts instead of Cal Sans | |
const outfit = Outfit({ | |
subsets: ['latin'], | |
variable: '--font-heading', | |
}); | |
export const metadata: Metadata = { | |
title: 'X-App', | |
description: 'A clone of Jan.ai built with Next.js and Tailwind CSS', | |
}; | |
export default function RootLayout({ | |
children, | |
}: { | |
children: React.ReactNode; | |
}) { | |
return ( | |
<html lang={routing.defaultLocale} suppressHydrationWarning> | |
<body className={`${inter.variable} ${outfit.variable} font-sans antialiased`} suppressHydrationWarning={isDevMode}> | |
<AuthLayout params={{ | |
locale: routing.defaultLocale, | |
}} | |
> | |
<Navbar /> | |
{children} | |
</AuthLayout> | |
</body> | |
</html> | |
); | |
} | |