feat: add sidebar layout from TailwindUI
This commit is contained in:
parent
a20b4128d0
commit
349b73a992
4 changed files with 203 additions and 33 deletions
18
src/components/Layout.tsx
Normal file
18
src/components/Layout.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { Sidebar } from "~/components/Sidebar";
|
||||
|
||||
export type LayoutProps = {
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
export function Layout({ children }: LayoutProps) {
|
||||
return (
|
||||
<>
|
||||
<Sidebar />
|
||||
<main className="py-10 lg:pl-72">
|
||||
<div className="px-4 sm:px-6 lg:px-8">
|
||||
{children}
|
||||
</div>
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in a new issue