File tree 7 files changed +39
-8
lines changed
7 files changed +39
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ type DashboardProps = {}
6
6
const content = faker . lorem . paragraphs ( 50 )
7
7
8
8
const Dashboard : React . FC < DashboardProps > = ( ) => {
9
- return < div className = "p-10 " > { content } </ div >
9
+ return < div className = "px-14 py-8 " > { content } </ div >
10
10
}
11
11
12
12
export default Dashboard
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
3
3
const TheFooter : React . FC = ( ) => {
4
- return < div className = "TheFooter px-4 py-2 " > The Footer</ div >
4
+ return < div className = "TheFooter px-8 py-4 " > The Footer</ div >
5
5
}
6
6
7
7
export default TheFooter
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const TheHeader: React.FC<TheHeaderProps> = ({ onSidebarToggleClick }) => {
11
11
< div
12
12
className = "
13
13
TheHeader
14
- absolute flex w-full h-full items-center px-4
14
+ absolute flex w-full h-full items-center px-8
15
15
bg-white
16
16
"
17
17
>
Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+
3
+ const links = [ { name : 'Dashboard' } , { name : 'Administration' } ]
4
+
5
+ const SidebarNav = ( ) => {
6
+ return (
7
+ < div id = "AppSidebarNav" className = "px-4 py-4" >
8
+ { links . map ( ( link ) => (
9
+ < a
10
+ href = "/core/dashboard"
11
+ className = "block px-4 py-3 pl-12 mb-2 hover:text-purple-500 rounded-lg hover:bg-purple-50 font-semibold"
12
+ key = { link . name }
13
+ >
14
+ { link . name }
15
+ </ a >
16
+ ) ) }
17
+ </ div >
18
+ )
19
+ }
20
+
21
+ export default SidebarNav
Original file line number Diff line number Diff line change
1
+ export { default } from './SidebarNav'
Original file line number Diff line number Diff line change 1
1
import React , { memo } from 'react'
2
2
import BaseLogo from '_common/BaseLogo'
3
+ import SidebarNav from './SidebarNav'
3
4
4
5
type TheSidebarProps = { }
5
6
6
7
const TheSidebar : React . FC < TheSidebarProps > = ( ) => {
7
8
return (
8
9
< div className = "TheSidebar absolute h-full w-full flex flex-col" >
9
- < div className = "h-16 flex items-center top-0 px-4" >
10
+ < div className = "h-20 flex items-center top-0 px-4" >
10
11
< BaseLogo size = { 30 } className = "ml-10 mr-4 text-purple-500" /> { ' ' }
11
12
ModularAdmin
12
13
</ div >
13
- < div id = "AppSidebarNav" className = "" style = { { height : 300 } } >
14
- Nav Menu
14
+ < div className = "SidebarNavContainer flex-1 overflow-y-auto " >
15
+ < SidebarNav />
15
16
</ div >
17
+ < div className = "SidebarFooterContainer p-4" > Sidebar Footer</ div >
16
18
</ div >
17
19
)
18
20
}
Original file line number Diff line number Diff line change @@ -52,9 +52,16 @@ const DashboardLayout: React.FC = ({ children }) => {
52
52
</ div >
53
53
</ div >
54
54
{ /* Content */ }
55
- < div id = "AppContentContainer" className = "w-full min-h-screen flex-auto" >
55
+ < div
56
+ id = "AppContentContainer"
57
+ className = "w-full min-h-screen flex-auto"
58
+ style = { { backgroundColor : 'rgb(114 142 156 / 5%)' } }
59
+ >
56
60
{ /* Header */ }
57
- < div id = "AppHeaderContainer" className = "w-full h-16 sticky top-0 self-start" >
61
+ < div
62
+ id = "AppHeaderContainer"
63
+ className = "w-full h-20 sticky top-0 self-start"
64
+ >
58
65
< TheHeader onSidebarToggleClick = { handleSidebarToggleClick } />
59
66
</ div >
60
67
{ /* Page */ }
You can’t perform that action at this time.
0 commit comments