Added logo and styling options

This commit is contained in:
Håvar Aambø Fosstveit
2019-04-01 10:53:44 +02:00
parent 4d21e7b4e9
commit 9b78a81ef0
7 changed files with 26 additions and 33 deletions
+17 -3
View File
@@ -42,9 +42,15 @@ const styles = (theme) =>
({
root :
{
display : 'flex',
width : '100%',
height : '100%'
display : 'flex',
width : '100%',
height : '100%',
backgroundColor : 'var(--background-color)',
backgroundImage : `url(${window.config.background})`,
backgroundAttachment : 'fixed',
backgroundPosition : 'center',
backgroundSize : 'cover',
backgroundRepeat : 'no-repeat'
},
message :
{
@@ -60,6 +66,10 @@ const styles = (theme) =>
margin : 0,
padding : 0
},
logo :
{
marginLeft : 20
},
show :
{
opacity : 1,
@@ -288,6 +298,10 @@ class Room extends React.PureComponent
<MenuIcon />
</IconButton>
</Badge>
{ window.config.logo ?
<img alt='Logo' className={classes.logo} src={window.config.logo} />
:null
}
<Typography
className={classes.title}
variant='h6'