🚚 mv: change layout folder structure
Separate the navbar from the root layout, keeping the root layout clean. Create two child layout folders: 1. main: for basic layouts such as the navbar 2. clean: for clean layouts without any extra elements.
This commit is contained in:
@ -30,10 +30,7 @@ export default function RootLayout({
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
<div className="max-w-400 mx-auto relative">
|
||||
<Navbar />
|
||||
<div className="pt-16">{children}</div>
|
||||
</div>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user