🚚 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:
2026-01-08 15:03:07 +07:00
parent 940e84d168
commit 34b4ec6232
5 changed files with 14 additions and 4 deletions

13
app/(main)/layout.tsx Normal file
View File

@ -0,0 +1,13 @@
import Navbar from "@/shared/widgets/navbar/components/Navbar";
import React from "react";
const layout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
return (
<div className="max-w-400 mx-auto relative">
<Navbar />
<div className="pt-16">{children}</div>
</div>
);
};
export default layout;