You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

96 regels
2.9 KiB

  1. import PropTypes from 'prop-types';
  2. // material-ui
  3. import { Box, Grid,Typography } from '@mui/material';
  4. // project import
  5. import Loadable from 'components/Loadable';
  6. import { lazy } from 'react';
  7. const AuthCard = Loadable(lazy(() => import('./AuthCardCustom')));
  8. //import AuthCard from './AuthCard';
  9. // assets
  10. // import AuthBackground from 'assets/images/auth/AuthBackground';
  11. // import backgroundImage from 'assets/images/hero-printing.png';
  12. import backbroundImg from 'assets/images/bg_ml.jpg'
  13. import 'assets/style/loginStyles.css'
  14. import { Stack } from '../../../node_modules/@mui/material/index';
  15. import {FormattedMessage} from "react-intl";
  16. const BackgroundHead = {
  17. backgroundImage: `url(${backbroundImg})`,
  18. width: '100%',
  19. height: '100%',
  20. backgroundSize:'cover'
  21. }
  22. import {
  23. checkSysEnv
  24. } from "utils/Utils";
  25. // ==============================|| AUTHENTICATION - WRAPPER ||============================== //
  26. const AuthWrapper = ({ children }) => (
  27. <Box sx={{ minHeight: '87vh' }}>
  28. {/* <AuthBackground /> */}
  29. {/* <img src={banner} alt="banner" width="100%" /> */}
  30. <div style={BackgroundHead}>
  31. <Grid
  32. container
  33. direction="row"
  34. justifyContent="space-between"
  35. alignItems="center"
  36. sx={{
  37. minHeight: '87vh'
  38. }}
  39. >
  40. <Grid item xs={11}>
  41. <Stack direction="row"
  42. justifyContent="space-between"
  43. alignItems="center"
  44. spacing={2}>
  45. <Grid item xs={12} md={8} lg={8} xl={9} sx={{ ml: 4, mt: 3 ,display: { xs: 'none', sm: 'block' }}}>
  46. <Typography style={{textAlign: "center",fontSize: "1.8rem"}}>
  47. <FormattedMessage id="HKSARGOV"/>
  48. </Typography>
  49. <Typography style={{textAlign: "center",fontSize: "1.8rem"}}>
  50. <FormattedMessage id="Gazette"/>
  51. </Typography>
  52. <Typography style={{textAlign: "center",fontSize: "1.8rem"}}>
  53. <FormattedMessage id="PNSPS_fullname"/>
  54. </Typography>
  55. {
  56. checkSysEnv()!=''?
  57. <Typography style={{color: 'red',textAlign: "center",fontSize: "1.8rem"}}>
  58. User Acceptance Test Environment
  59. </Typography>
  60. :""
  61. }
  62. </Grid>
  63. <Grid
  64. item
  65. xs={12}
  66. md={4}
  67. lg={4}
  68. xl={4}
  69. container
  70. justifyContent="right"
  71. alignItems="center"
  72. sx={{ minHeight: { xs: 'calc(90vh - 134px)', md: 'calc(90vh - 112px)' } }}
  73. >
  74. <Grid item>
  75. <AuthCard>{children}</AuthCard>
  76. </Grid>
  77. </Grid>
  78. </Stack>
  79. </Grid>
  80. </Grid>
  81. </div>
  82. {/* <AuthFooter/> */}
  83. </Box>
  84. );
  85. AuthWrapper.propTypes = {
  86. children: PropTypes.node
  87. };
  88. export default AuthWrapper;