init: layout
This commit is contained in:
committed by
hsjobeki
parent
4ec7e13e96
commit
a0a137191d
@@ -1,8 +1,11 @@
|
||||
import "./globals.css";
|
||||
import type { Metadata } from "next";
|
||||
import localFont from "next/font/local";
|
||||
import * as React from "react";
|
||||
import { StyledEngineProvider } from "@mui/material/styles";
|
||||
import cx from "classnames";
|
||||
// import { tw } from "../utils/tailwind";
|
||||
|
||||
// const fontPath = ;
|
||||
const roboto = localFont({
|
||||
src: [
|
||||
{
|
||||
@@ -28,7 +31,6 @@ const roboto = localFont({
|
||||
],
|
||||
});
|
||||
|
||||
// const inter =
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
@@ -41,7 +43,20 @@ export default function RootLayout({
|
||||
}) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={roboto.className}>{children}</body>
|
||||
<StyledEngineProvider injectFirst>
|
||||
<body
|
||||
className={cx(
|
||||
"h-screen",
|
||||
"min-h-screen",
|
||||
"w-screen",
|
||||
"bg-white",
|
||||
// custom animation defined in tailwind.config
|
||||
roboto.className
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</body>
|
||||
</StyledEngineProvider>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user