sarlink-portal/app/layout.tsx

41 lines
990 B
TypeScript
Raw Normal View History

2024-11-23 08:53:16 +05:00
import type { Metadata } from "next";
import "./globals.css";
2024-11-24 23:30:44 +05:00
import { ThemeProvider } from "@/components/theme-provider";
import { Barlow } from "next/font/google";
import NextTopLoader from 'nextjs-toploader';
import { Toaster } from 'sonner'
2024-11-23 08:53:16 +05:00
2024-11-24 23:30:44 +05:00
const barlow = Barlow({
subsets: ["latin"],
weight: ["100", "300", "400", "500", "600", "700", "800", "900"],
variable: "--font-barlow",
2024-11-23 08:53:16 +05:00
});
export const metadata: Metadata = {
2024-11-24 23:30:44 +05:00
title: "Create Next App",
description: "Generated by create next app",
2024-11-23 08:53:16 +05:00
};
export default function RootLayout({
2024-11-24 23:30:44 +05:00
children,
2024-11-23 08:53:16 +05:00
}: Readonly<{
2024-11-24 23:30:44 +05:00
children: React.ReactNode;
2024-11-23 08:53:16 +05:00
}>) {
2024-11-24 23:30:44 +05:00
return (
<html lang="en" suppressHydrationWarning>
<body className={`${barlow.variable} antialiased font-sans`}>
<NextTopLoader showSpinner={false} zIndex={9999} />
2024-11-27 07:48:16 +05:00
<Toaster richColors />
2024-11-24 23:30:44 +05:00
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
{children}
</ThemeProvider>
</body>
</html>
);
2024-11-23 08:53:16 +05:00
}