1
0
Fork 0

feat: add sidebar layout from TailwindUI

This commit is contained in:
Vojtěch Mareš 2023-06-25 10:19:28 +02:00
parent a20b4128d0
commit 349b73a992
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
4 changed files with 203 additions and 33 deletions

18
src/components/Layout.tsx Normal file
View 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>
</>
);
}