mirror of
https://github.com/michivonah/nextjs.git
synced 2025-12-22 22:16:28 +01:00
dashboard layout + implement page navigation + docs
This commit is contained in:
parent
aa734325b4
commit
aea677e6f7
6 changed files with 116 additions and 3 deletions
3
dashboard-app-course/app/dashboard/customers/page.tsx
Normal file
3
dashboard-app-course/app/dashboard/customers/page.tsx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export default function Page(){
|
||||
return <p>Customers Page</p>
|
||||
}
|
||||
3
dashboard-app-course/app/dashboard/invoices/page.tsx
Normal file
3
dashboard-app-course/app/dashboard/invoices/page.tsx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export default function Page(){
|
||||
return <p>Invoices Page</p>;
|
||||
}
|
||||
14
dashboard-app-course/app/dashboard/layout.tsx
Normal file
14
dashboard-app-course/app/dashboard/layout.tsx
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import SideNav from "@/app/ui/dashboard/sidenav";
|
||||
|
||||
export default function Layout({children}: {children: React.ReactNode}){
|
||||
return (
|
||||
<div className="flex h-screen flex-col md:flex-row md:overflow-hidden">
|
||||
<div className="w-full flex-none md:w-64">
|
||||
<SideNav />
|
||||
</div>
|
||||
<div className="flex-grow p-6 md:overflow-y-auto md:p-12">
|
||||
{ children }
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
3
dashboard-app-course/app/dashboard/page.tsx
Normal file
3
dashboard-app-course/app/dashboard/page.tsx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export default function Page(){
|
||||
return <p>Dashboard page</p>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue