Adjust registration box layout for desktop
This commit is contained in:
parent
0b8cbaad41
commit
fe98115394
2 changed files with 11 additions and 7 deletions
|
@ -1,4 +1,3 @@
|
||||||
import { Fragment } from 'react';
|
|
||||||
import {
|
import {
|
||||||
Box,
|
Box,
|
||||||
Button,
|
Button,
|
||||||
|
@ -37,7 +36,13 @@ function View({
|
||||||
const currentYear = dayjs().year();
|
const currentYear = dayjs().year();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Container
|
||||||
|
sx={{
|
||||||
|
margin: '0 auto',
|
||||||
|
padding: '500px 0',
|
||||||
|
}}
|
||||||
|
disableGutters
|
||||||
|
>
|
||||||
<Paper sx={paper} elevation={4} variant="elevation">
|
<Paper sx={paper} elevation={4} variant="elevation">
|
||||||
<Box sx={boxForm}>
|
<Box sx={boxForm}>
|
||||||
<h1>Criar conta</h1>
|
<h1>Criar conta</h1>
|
||||||
|
@ -188,7 +193,7 @@ function View({
|
||||||
severity="error"
|
severity="error"
|
||||||
message={error && error.message}
|
message={error && error.message}
|
||||||
/>
|
/>
|
||||||
</Fragment>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,25 +1,24 @@
|
||||||
// ========== Desktop ==========
|
// ========== Desktop ==========
|
||||||
const desktopPaper = {
|
const desktopPaper = {
|
||||||
width: '1500px',
|
height: 'fit-content',
|
||||||
height: '70%',
|
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
color: 'white',
|
color: 'white',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
};
|
};
|
||||||
|
|
||||||
const baseBox = {
|
const baseBox = {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
padding: '0 70px',
|
padding: '30px 70px',
|
||||||
};
|
};
|
||||||
|
|
||||||
const desktopBoxLogo = {
|
const desktopBoxLogo = {
|
||||||
...baseBox,
|
...baseBox,
|
||||||
backgroundColor: 'secondary.main',
|
backgroundColor: 'secondary.main',
|
||||||
|
height: 'auto',
|
||||||
};
|
};
|
||||||
|
|
||||||
const desktopBoxForm = {
|
const desktopBoxForm = {
|
||||||
|
|
Loading…
Reference in a new issue