diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-05-07 13:22:04 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-05-07 13:22:04 +0530 |
commit | 8b7e1491fa1003172e1d653ce1fd774ebee8451e (patch) | |
tree | 62d927656fc1d0b342aec30e2d14f41b914d3056 /modern/src/LoginPage.js | |
parent | f7ada6916541047f8ddf6eb2d1a45ddc3b9dead0 (diff) | |
download | trackermap-web-8b7e1491fa1003172e1d653ce1fd774ebee8451e.tar.gz trackermap-web-8b7e1491fa1003172e1d653ce1fd774ebee8451e.tar.bz2 trackermap-web-8b7e1491fa1003172e1d653ce1fd774ebee8451e.zip |
More code improvement
Diffstat (limited to 'modern/src/LoginPage.js')
-rw-r--r-- | modern/src/LoginPage.js | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/modern/src/LoginPage.js b/modern/src/LoginPage.js index 18638d21..f029cbc3 100644 --- a/modern/src/LoginPage.js +++ b/modern/src/LoginPage.js @@ -21,9 +21,9 @@ const useStyles = makeStyles(theme => ({ alignItems: 'center', background: theme.palette.common.purple, paddingBottom: theme.spacing(5), - width: `${theme.dimensions.sidebarWidth}%`, + width: theme.dimensions.sidebarWidth, [theme.breakpoints.down('md')]: { - width: `${theme.dimensions.minSidebarWidth}px`, + width: theme.dimensions.tabletSidebarWidth, }, [theme.breakpoints.down('xs')]: { width: '0px', @@ -35,11 +35,18 @@ const useStyles = makeStyles(theme => ({ justifyContent: 'center', alignItems: 'center', flex: 1, - //padding: theme.spacing(0, 25, 0, 0), - boxShadow: '-2px 0px 16px rgba(0, 0, 0, 0.25)' + boxShadow: '-2px 0px 16px rgba(0, 0, 0, 0.25)', + [theme.breakpoints.up('lg')]: { + padding: theme.spacing(0, 25, 0, 0) + }, }, form: { - maxWidth: theme.dimensions.maxFormWidth, + maxWidth: theme.spacing(52), + padding: theme.spacing(5), + width: "100%", + }, + logo: { + textAlign: 'center', }, })); @@ -94,7 +101,7 @@ const LoginPage = () => { <Paper className={classes.paper}> <form className={classes.form} onSubmit={handleLogin}> <Grid container direction='column' spacing={3}> - <Grid item> + <Grid item className={classes.logo}> {matches && <Logo fill='#333366'/>} </Grid> <Grid item> |