aboutsummaryrefslogtreecommitdiffstats
path: root/src/views/Authorization/AuthorizationContainer.jsx
blob: 3bfc622c90db4badb69af9166e7e6346dbf33c2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// import Logo from 'Components/Logo'
import { Box, Paper } from '@mui/material'
import { styled } from '@mui/material/styles'

const Container = styled('div')(({ theme }) => ({
  minHeight: '100vh',
  padding: '24px',
  display: 'grid',
  placeItems: 'start center',
  [theme.breakpoints.up('sm')]: {
    // center children
    placeItems: 'center',
  },
}))

const AuthCard = styled(Paper)(({ theme }) => ({
  //   border: "1px solid #c4c4c4",
  padding: 24,
  paddingTop: 32,
  borderRadius: 24,
  width: '100%',
  maxWidth: '400px',
  [theme.breakpoints.down('sm')]: {
    maxWidth: 'unset',
  },
}))

export default function AuthCardContainer({ children, ...props }) {
  return (
    <Container>
      <AuthCard elevation={0}>
        <Box
          sx={{
            display: 'grid',
            placeItems: 'center',
            paddingBottom: 4,
          }}
        >
          {/* <Logo size='96px' /> */}
        </Box>
        {children}
      </AuthCard>
    </Container>
  )
}