-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Menu's background size adjusted, Functions name, Logic rellocated out…
…side of JSX
- Loading branch information
Showing
5 changed files
with
55 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,7 @@ | |
text-decoration: none; | ||
color: inherit; | ||
} | ||
|
||
.width-area { | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,44 @@ | ||
import type { Metadata } from 'next'; | ||
import { Inter } from 'next/font/google'; | ||
import { Container } from '@mui/material'; | ||
import Sidebar from '@/components/sidebar/Sidebar'; | ||
import CssBaseline from '@mui/material/CssBaseline'; | ||
import globalTheme from '@/utils/theme/globalTheme'; | ||
import { ThemeProvider } from '@mui/material/styles'; | ||
import type { Metadata } from "next"; | ||
import { Inter } from "next/font/google"; | ||
import { Container } from "@mui/material"; | ||
import Sidebar from "@/components/sidebar/Sidebar"; | ||
import CssBaseline from "@mui/material/CssBaseline"; | ||
import globalTheme from "@/utils/theme/globalTheme"; | ||
import { ThemeProvider } from "@mui/material/styles"; | ||
|
||
const inter = Inter({ subsets: ['latin'] }); | ||
const inter = Inter({ subsets: ["latin"] }); | ||
|
||
export const metadata: Metadata = { | ||
title: 'Blw-Dataroom', | ||
description: 'Share documents safely with your team and customers', | ||
title: "Blw-Dataroom", | ||
description: "Share documents safely with your team and customers", | ||
}; | ||
|
||
interface RootLayoutProps { | ||
children: React.ReactNode; | ||
children: React.ReactNode; | ||
} | ||
|
||
export default function RootLayout({ children }: RootLayoutProps) { | ||
return ( | ||
<html lang="en"> | ||
<body className={inter.className}> | ||
<ThemeProvider theme={globalTheme}> | ||
<CssBaseline /> | ||
<Container | ||
sx={{ | ||
display: 'flex', | ||
backgroundColor: 'white', | ||
height: '100vh', | ||
pt: 4, | ||
pb: 3, | ||
gap: 4, | ||
}}> | ||
<Sidebar /> | ||
{children} | ||
</Container> | ||
</ThemeProvider> | ||
</body> | ||
</html> | ||
); | ||
return ( | ||
<html lang="en"> | ||
<body className={inter.className}> | ||
<ThemeProvider theme={globalTheme}> | ||
<CssBaseline /> | ||
<Container | ||
sx={{ | ||
display: "flex", | ||
backgroundColor: "white", | ||
height: "100vh", | ||
|
||
pt: 4, | ||
pb: 3, | ||
gap: 4, | ||
}} | ||
> | ||
<Sidebar /> | ||
<>{children}</> | ||
</Container> | ||
</ThemeProvider> | ||
</body> | ||
</html> | ||
); | ||
} |