35 lines
721 B
TypeScript
35 lines
721 B
TypeScript
import 'highlight.js/styles/atom-one-dark.css';
|
|
import type { Metadata } from "next";
|
|
import "./globals.css";
|
|
import Header from "@/components/Header/Header";
|
|
import { ThemeContext } from "@/theme/ThemeContext";
|
|
import { Box } from "@mui/material";
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
title: "The Coding Grizzly",
|
|
description: "Fun interactive coding platform",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
|
|
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body>
|
|
<ThemeContext>
|
|
<Header />
|
|
<Box sx={{ mt: '3rem' }}>
|
|
{children}
|
|
</Box>
|
|
|
|
</ThemeContext>
|
|
</body>
|
|
</html >
|
|
);
|
|
}
|