Files

69 lines
1.9 KiB
TypeScript
Raw Permalink Normal View History

/**
* @file app/layout.tsx
* @description (RootLayout)
* @remarks
* - [] Infrastructure/Layout
* - [] (Font/CSS), (Provider), (Manager)
* - [ ] Providers -> Children
* - [ ] globals.css, theme-provider.tsx
*/
2026-02-03 10:51:22 +09:00
import type { Metadata } from "next";
import { Geist, Geist_Mono, Outfit } from "next/font/google";
import { QueryProvider } from "@/providers/query-provider";
import { ThemeProvider } from "@/components/theme-provider";
import { SessionManager } from "@/features/auth/components/session-manager";
2026-02-03 10:51:22 +09:00
import "./globals.css";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
const outfit = Outfit({
variable: "--font-heading",
subsets: ["latin"],
display: "swap",
});
2026-02-03 10:51:22 +09:00
export const metadata: Metadata = {
title: "AutoTrade",
description: "Automated Crypto Trading Platform",
2026-02-03 10:51:22 +09:00
};
/**
* RootLayout
* @param children
* @returns HTML Provider
* @see theme-provider.tsx -
* @see session-manager.tsx -
*/
2026-02-03 10:51:22 +09:00
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" className="scroll-smooth" suppressHydrationWarning>
2026-02-03 10:51:22 +09:00
<body
className={`${geistSans.variable} ${geistMono.variable} ${outfit.variable} antialiased`}
2026-02-03 10:51:22 +09:00
>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<SessionManager />
<QueryProvider>{children}</QueryProvider>
</ThemeProvider>
2026-02-03 10:51:22 +09:00
</body>
</html>
);
}