@@ -5,6 +5,7 @@ import { makeStyles } from '@material-ui/core/styles'
5
5
import { Link } from 'react-router-dom'
6
6
import Typography from '@material-ui/core/Typography'
7
7
8
+ import AppSidebarBg from './AppSidebarBg.jpg'
8
9
import Logo from '_common/BaseLogo/BaseLogo'
9
10
import SidebarNav from './SidebarNav'
10
11
@@ -15,6 +16,7 @@ const Sidebar = props => {
15
16
16
17
return (
17
18
< aside className = { classes . sidebar } >
19
+ < div className = { classes . sidebarBackground } />
18
20
< div className = { classes . sidebarHeader } >
19
21
< Link to = "/" className = { classes . sidebarTitleLink } >
20
22
< Logo size = { 30 } className = { classes . logo } />
@@ -55,6 +57,18 @@ const useStyles = makeStyles(theme => ({
55
57
overflowX : 'hidden' ,
56
58
overflowY : 'auto' ,
57
59
} ,
60
+ sidebarBackground : {
61
+ position : 'absolute' ,
62
+ width : '100%' ,
63
+ height : '100%' ,
64
+ top : 0 ,
65
+ left : 0 ,
66
+ zIndex : 0 ,
67
+ backgroundImage : `url(${ AppSidebarBg } )` ,
68
+ backgroundPosition : 'center' ,
69
+ backgroundRepeat : 'repeat' ,
70
+ backgroundSize : 'cover' ,
71
+ } ,
58
72
sidebarHeader : {
59
73
display : 'flex' ,
60
74
alignItems : 'center' ,
@@ -69,7 +83,8 @@ const useStyles = makeStyles(theme => ({
69
83
display : 'flex' ,
70
84
} ,
71
85
logo : {
72
- color : theme . palette . primary . main ,
86
+ color : theme . palette . secondary . main ,
87
+ zIndex : 10 ,
73
88
} ,
74
89
title : props => ( {
75
90
position : 'relative' ,
0 commit comments