mirror of
https://github.com/emmabostian/developer-portfolios.git
synced 2025-04-16 03:08:00 +00:00
28 lines
823 B
TypeScript
28 lines
823 B
TypeScript
"use client";
|
|
|
|
import './globals.css';
|
|
import { ThemeProvider } from './Contexts/ThemeContext';
|
|
import { Inter } from 'next/font/google';
|
|
import { Toaster } from 'react-hot-toast';
|
|
|
|
const inter = Inter({ subsets: ['latin'] });
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<head>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/devicon.min.css" />
|
|
</head>
|
|
<body className={`${inter.className} antialiased transition-colors duration-300 bg-background-light dark:bg-background-dark text-text-light dark:text-text-dark`}>
|
|
<ThemeProvider>
|
|
<Toaster position="top-right" />
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
} |