Skip to content

Commit 2f08404

Browse files
committed
UI Adjustments
1 parent b0205e6 commit 2f08404

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

src/_common/AppSidebar/AppSidebar.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { makeStyles } from '@material-ui/core/styles'
55
import { Link } from 'react-router-dom'
66
import Typography from '@material-ui/core/Typography'
77

8+
import AppSidebarBg from './AppSidebarBg.jpg'
89
import Logo from '_common/BaseLogo/BaseLogo'
910
import SidebarNav from './SidebarNav'
1011

@@ -15,6 +16,7 @@ const Sidebar = props => {
1516

1617
return (
1718
<aside className={classes.sidebar}>
19+
<div className={classes.sidebarBackground} />
1820
<div className={classes.sidebarHeader}>
1921
<Link to="/" className={classes.sidebarTitleLink}>
2022
<Logo size={30} className={classes.logo} />
@@ -55,6 +57,18 @@ const useStyles = makeStyles(theme => ({
5557
overflowX: 'hidden',
5658
overflowY: 'auto',
5759
},
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+
},
5872
sidebarHeader: {
5973
display: 'flex',
6074
alignItems: 'center',
@@ -69,7 +83,8 @@ const useStyles = makeStyles(theme => ({
6983
display: 'flex',
7084
},
7185
logo: {
72-
color: theme.palette.primary.main,
86+
color: theme.palette.secondary.main,
87+
zIndex: 10,
7388
},
7489
title: props => ({
7590
position: 'relative',
33.7 KB
Loading

src/_common/BaseLogo/BaseLogo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const useStyles = makeStyles(theme => ({
4949
fill: 'currentColor',
5050
},
5151
letter: {
52-
fill: 'currentColor',
52+
fill: '#fff',
5353
},
5454
}))
5555

0 commit comments

Comments
 (0)