diff --git a/src/index.css b/src/index.css index 6c59b99..c21487c 100644 --- a/src/index.css +++ b/src/index.css @@ -1,9 +1,11 @@ body { margin: 0; + padding: 20px 0; font-family: 'Fira Code', monospace; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; height: 100vh; + background-color: #EEEEEE; } code { diff --git a/src/screens/Login/View.js b/src/screens/Login/View.js index 1d5f084..10c4389 100644 --- a/src/screens/Login/View.js +++ b/src/screens/Login/View.js @@ -28,13 +28,13 @@ function View({ error, layoutType, }) { - const { paper, boxLogo, boxForm } = styles[layoutType]; + const { paper, boxLogo, boxForm, logoContainer } = styles[layoutType]; return ( - + onChangeEmail(e.target.value)} + autoFocus /> h1, p ': { @@ -49,22 +36,45 @@ const desktopBoxForm = { }, }; +const logoContainerDesktop = {}; + +const desktop = { + paper: desktopPaper, + boxLogo: desktopBoxLogo, + boxForm: desktopBoxForm, + logoContainer: logoContainerDesktop, +}; + +// ========== Mobile ========== +const mobilePaper = { + ...desktopPaper, + flexDirection: 'column', + height: '700px', + marginLeft: '10px', + marginRight: '10px', +}; + +const mobileBoxLogo = { + ...desktopBoxLogo, + height: '50%', + padding: '0', +}; + const mobileBoxForm = { ...desktopBoxForm, padding: '0 15px', width: 'fit-content', }; -const desktop = { - paper: desktopPaper, - boxLogo: desktopBoxLogo, - boxForm: desktopBoxForm, +const logoContainerMobile = { + padding: '20px 16px', }; const mobile = { paper: mobilePaper, boxLogo: mobileBoxLogo, boxForm: mobileBoxForm, + logoContainer: logoContainerMobile, }; const styles = { desktop, mobile };