Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

56 rindas
1.3 KiB

  1. import PropTypes from 'prop-types';
  2. // material-ui
  3. import { Box, Grid } from '@mui/material';
  4. // project import
  5. import AuthCard from './AuthCardCustom';
  6. // import Logo from 'components/Logo';
  7. // import AuthFooter from 'components/cards/AuthFooter';
  8. // assets
  9. import AuthBackground from 'assets/images/auth/AuthBackground';
  10. // ==============================|| AUTHENTICATION - WRAPPER ||============================== //
  11. const AuthWrapperCustom = ({ children }) => (
  12. <Box sx={{ minHeight: '100vh' }}>
  13. <AuthBackground />
  14. <Grid
  15. container
  16. direction="column"
  17. justifyContent="flex-end"
  18. sx={{
  19. minHeight: '100vh'
  20. }}
  21. >
  22. {/* <Grid item xs={12} sx={{ ml: 3, mt: 3 }}>
  23. <Logo />
  24. </Grid> */}
  25. <Grid item xs={12}>
  26. <Grid
  27. item
  28. xs={12}
  29. container
  30. justifyContent="center"
  31. alignItems="center"
  32. sx={{ minHeight: { xs: 'calc(100vh - 134px)', md: 'calc(100vh - 112px)' }}}
  33. >
  34. <Grid item>
  35. <AuthCard>{children}</AuthCard>
  36. </Grid>
  37. </Grid>
  38. </Grid>
  39. <Grid item xs={12} sx={{ m: 3, mt: 1 }}>
  40. {/* <AuthFooter /> */}
  41. </Grid>
  42. </Grid>
  43. </Box>
  44. );
  45. AuthWrapperCustom.propTypes = {
  46. children: PropTypes.node
  47. };
  48. export default AuthWrapperCustom;