Skip to content

Commit

Permalink
Layout Added
Browse files Browse the repository at this point in the history
  • Loading branch information
ojasaklechayt committed Feb 25, 2024
1 parent 18c09df commit c39a258
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions app/(root)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from "react";

import { Toaster } from "@/components/ui/toaster";
import Navbar from "@/components/shared/navbar/Navbar";
import LeftSidebar from "@/components/shared/LeftSidebar";
import RightSidebar from "@/components/shared/RightSidebar";

const Layout = ({ children }: { children: React.ReactNode }) => {
return (
<main className="background-light850_dark100 relative">
<Navbar />
<div className="flex">
<LeftSidebar />

<section className="flex min-h-screen flex-1 flex-col px-6 pb-6 pt-36 max-md:pb-14 sm:px-14">
<div className="mx-auto w-full max-w-5xl">{children}</div>
</section>

<RightSidebar />
</div>

<Toaster />
</main>
);
};

export default Layout;

0 comments on commit c39a258

Please sign in to comment.