diff --git a/src/app/(dashboard)/dashboard/page.tsx b/src/app/(dashboard)/dashboard/page.tsx new file mode 100644 index 0000000..f009b2a --- /dev/null +++ b/src/app/(dashboard)/dashboard/page.tsx @@ -0,0 +1,3 @@ +export default function page() { + return
대시시보드 페이지
; +} diff --git a/src/app/(dashboard)/layout.tsx b/src/app/(dashboard)/layout.tsx new file mode 100644 index 0000000..2d13c51 --- /dev/null +++ b/src/app/(dashboard)/layout.tsx @@ -0,0 +1,25 @@ +import { PropsWithChildren } from 'react'; +import Header from '@/components/dashboard-header/Header'; +import Sidebar from '@/components/Sidebar/Sidebar'; + +export default function layout({ children }: PropsWithChildren) { + return ( +
+ {/* sidebar */} +
+ +
+ + {/* main */} +
+ {/* header */} +
+
+
+ + {/* content page */} + {children} +
+
+ ); +} diff --git a/src/app/(dashboard)/mydashboard/page.tsx b/src/app/(dashboard)/mydashboard/page.tsx new file mode 100644 index 0000000..20657c5 --- /dev/null +++ b/src/app/(dashboard)/mydashboard/page.tsx @@ -0,0 +1,3 @@ +export default function page() { + return
마이데시보드 페이지
; +} diff --git a/src/app/mydashboard/layout.tsx b/src/app/mydashboard/layout.tsx deleted file mode 100644 index a7f359c..0000000 --- a/src/app/mydashboard/layout.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import Sidebar from '@/components/Sidebar/Sidebar'; -import { ReactNode } from 'react'; -import Header from '@/components/dashboard-header/Header'; - -export default function Layout({ children }: { children: ReactNode }) { - return ( -
- -
-
{children}
-
- ); -} diff --git a/src/app/mydashboard/page.tsx b/src/app/mydashboard/page.tsx deleted file mode 100644 index 4dfdfab..0000000 --- a/src/app/mydashboard/page.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export default function Page() { - return
; -} diff --git a/src/components/Sidebar/Sidebar.tsx b/src/components/Sidebar/Sidebar.tsx index aa2f856..47e2b5e 100644 --- a/src/components/Sidebar/Sidebar.tsx +++ b/src/components/Sidebar/Sidebar.tsx @@ -35,21 +35,19 @@ export default function Sidebar() { }); return ( -