We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8d0b69 commit b9dcf68Copy full SHA for b9dcf68
4 files changed
app/(with-sidebar)/(home)/page.tsx
@@ -0,0 +1,9 @@
1
+// export default function Home() {
2
+// return <div>home</div>;
3
+// }
4
+
5
+const Page = () => {
6
+ return <div>home</div>;
7
+};
8
9
+export default Page;
app/(with-sidebar)/layout.tsx
@@ -0,0 +1,14 @@
+import Sidebar from '@/components/common/Sidebar';
+export default function SidebarLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
+ return (
+ <div className="flex">
10
+ <Sidebar />
11
+ <main className="bg-background flex-1">{children}</main>
12
+ </div>
13
+ );
14
+}
app/page.tsx
components/common/Sidebar.tsx
@@ -0,0 +1,5 @@
+const Sidebar = () => {
+ return <div className="w-48 bg-white"></div>;
+export default Sidebar;
0 commit comments