選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

78 行
2.4 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. const BackgroundHead = {
  16. backgroundImage: `url(${backbroundImg})`,
  17. width: '100%',
  18. height: '100%',
  19. backgroundSize:'cover'
  20. }
  21. // ==============================|| AUTHENTICATION - WRAPPER ||============================== //
  22. const AuthWrapper = ({ children }) => (
  23. <Box sx={{ minHeight: '90vh' }}>
  24. {/* <AuthBackground /> */}
  25. {/* <img src={banner} alt="banner" width="100%" /> */}
  26. <div style={BackgroundHead}>
  27. <Grid
  28. container
  29. direction="row"
  30. justifyContent="space-between"
  31. alignItems="center"
  32. sx={{
  33. minHeight: '90vh'
  34. }}
  35. >
  36. <Grid item xs={11}>
  37. <Stack direction="row"
  38. justifyContent="space-between"
  39. alignItems="center"
  40. spacing={2}>
  41. <Grid item xs={12} md={8} lg={8} xl={9} sx={{ ml: 4, mt: 3 ,display: { xs: 'none', sm: 'block' }}}>
  42. <Typography style={{textAlign: "center",fontFamily: "微軟正黑體",fontSize: "1.8rem"}}>香港特別行政區政府</Typography>
  43. <Typography style={{textAlign: "center",fontFamily: "微軟正黑體",fontSize: "1.8rem",fontWeight:"bold"}}>憲報</Typography>
  44. </Grid>
  45. <Grid
  46. item
  47. xs={12}
  48. md={4}
  49. lg={4}
  50. xl={4}
  51. container
  52. justifyContent="right"
  53. alignItems="center"
  54. sx={{ minHeight: { xs: 'calc(90vh - 134px)', md: 'calc(90vh - 112px)' } }}
  55. >
  56. <Grid item>
  57. <AuthCard>{children}</AuthCard>
  58. </Grid>
  59. </Grid>
  60. </Stack>
  61. </Grid>
  62. </Grid>
  63. </div>
  64. {/* <AuthFooter/> */}
  65. </Box>
  66. );
  67. AuthWrapper.propTypes = {
  68. children: PropTypes.node
  69. };
  70. export default AuthWrapper;