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.
 
 

160 line
7.5 KiB

  1. // material-ui
  2. import {
  3. Grid,
  4. Typography,
  5. Button,
  6. Stack,
  7. InputLabel,
  8. } from '@mui/material';
  9. import * as React from "react";
  10. import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png'
  11. import ForwardIcon from '@mui/icons-material/Forward';
  12. import MainCard from 'components/MainCard';
  13. import { useNavigate } from "react-router-dom";
  14. import {PNSPS_LONG_BUTTON_THEME} from "themes/buttonConst";
  15. import {ThemeProvider} from "@emotion/react";
  16. import {FormattedMessage, useIntl} from "react-intl";
  17. // ==============================|| DASHBOARD - DEFAULT ||============================== //
  18. const AfterForgotPasswordPage = () => {
  19. const intl = useIntl();
  20. const navigate = useNavigate();
  21. const BackgroundHead = {
  22. backgroundImage: `url(${titleBackgroundImg})`,
  23. width: 'auto',
  24. height: 'auto',
  25. backgroundSize: 'contain',
  26. backgroundRepeat: 'no-repeat',
  27. backgroundColor: '#0C489E',
  28. backgroundPosition: 'right'
  29. }
  30. const handleContinue = () => {
  31. // setOpen(false);
  32. navigate('/login');
  33. };
  34. return (
  35. <Grid container sx={{ minHeight: '95vh', mb: 3 }} direction="column" alignItems="center">
  36. <Grid item xs={12} md={12} width="100%" >
  37. <div style={BackgroundHead}>
  38. <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center">
  39. <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}>
  40. <FormattedMessage id="forgotUserPassword"/>
  41. </Typography>
  42. </Stack>
  43. </div>
  44. </Grid>
  45. <Grid item xs={12} width={{xs:"90%", sm:"90%", md:"60%", lg:"60%"}}>
  46. <Button
  47. aria-label={intl.formatMessage({id: 'back'})}
  48. title={intl.formatMessage({id: 'back'})}
  49. sx={{ ml: 0, mt: 2.5 }} style={{ border: '2px solid' }} variant="outlined" onClick={() => { navigate(-1) }}
  50. >
  51. <ForwardIcon style={{ height: 30, width: 50, transform: "rotate(180deg)" }} />
  52. </Button>
  53. </Grid>
  54. {/* <Grid item xs={12}>
  55. <Typography variant="pnspsFormParagraphBold">申請公共啟事</Typography>
  56. </Grid> */}
  57. <Grid item xs={12} md={12} width={{ sx:"90%", sm:"90%",md: "60%", xs: "90%" }}>
  58. <MainCard
  59. sx={{
  60. maxWidth: { xs: 400, sm:730, md:800, lg: 1000 },
  61. margin: { sm: 0, md: 3 },
  62. '& > *': {
  63. flexGrow: 1,
  64. flexBasis: '50%'
  65. }
  66. }}
  67. content={false}
  68. border={false}
  69. boxShadow
  70. >
  71. <Grid container spacing={4} sx={{ minHeight: {xs:"80vh", sm:"70vh", md: "70vh", lg:"70vh", xl:"50vh"} }} direction="column" justifyContent="flex-start" alignItems="center">
  72. <Grid item xs={12} md={12} lg={12} sx={{ mb: 1, mt:5, display: { xs: 'none', sm: 'none', md: 'block' } }}>
  73. <Grid container direction="column" alignItems="center">
  74. <Grid item xs={12} md={12} lg={12} >
  75. <InputLabel htmlFor="email-login-title1">
  76. <Typography variant="h5" >
  77. <FormattedMessage id="sentSecurityCode1"/>
  78. </Typography>
  79. </InputLabel>
  80. </Grid>
  81. <Grid item xs={12} md={12} lg={12} >
  82. <InputLabel htmlFor="email-login-title2">
  83. <Typography variant="h5" >
  84. <FormattedMessage id="sentSecurityCode2"/>
  85. </Typography>
  86. </InputLabel>
  87. </Grid>
  88. {/* <Grid item xs={12} md={12} lg={12} sx={{mt:3}}>
  89. <InputLabel htmlFor="email-login-title3">
  90. <Typography variant="h5" >
  91. <FormattedMessage id="requireSecurityCode"/>
  92. </Typography>
  93. </InputLabel>
  94. </Grid> */}
  95. </Grid>
  96. </Grid>
  97. <Grid item xs={12} md={12} lg={12} sx={{ mb: 1, mt:5, display: { md: 'none', xl: 'none', lg: 'none' } }}>
  98. <Grid container direction="column" alignItems="center">
  99. <Grid item xs={12} md={12} lg={12} >
  100. <InputLabel htmlFor="email-login-title1">
  101. <Typography variant="h5" >
  102. <FormattedMessage id="sentSecurityCode1"/>
  103. </Typography>
  104. </InputLabel>
  105. </Grid>
  106. <Grid item xs={12} md={12} lg={12} >
  107. <InputLabel htmlFor="email-login-title2">
  108. <Typography variant="h5" >
  109. <FormattedMessage id="sentSecurityCode3"/>
  110. </Typography>
  111. </InputLabel>
  112. </Grid>
  113. <Grid item xs={12} md={12} lg={12} >
  114. <InputLabel htmlFor="email-login-title4">
  115. <Typography variant="h5" >
  116. <FormattedMessage id="sentSecurityCode4"/>
  117. </Typography>
  118. </InputLabel>
  119. </Grid>
  120. {/* <Grid item xs={12} md={12} lg={12} sx={{mt:3}}>
  121. <InputLabel htmlFor="email-login-title3">
  122. <Typography variant="h5" >
  123. <FormattedMessage id="requireSecurityCode"/>
  124. </Typography>
  125. </InputLabel>
  126. </Grid> */}
  127. </Grid>
  128. </Grid>
  129. <Grid item xs={12} md={12} lg={12} mt={1} sx={{mb:3}}>
  130. <ThemeProvider theme={PNSPS_LONG_BUTTON_THEME}>
  131. <Button
  132. aria-label={intl.formatMessage({id: 'continue'})}
  133. variant="contained"
  134. // type="submit"
  135. onClick={()=>handleContinue()}
  136. >
  137. <FormattedMessage id="continue"/>
  138. </Button>
  139. </ThemeProvider>
  140. </Grid>
  141. </Grid>
  142. </MainCard>
  143. </Grid>
  144. </Grid>
  145. );
  146. };
  147. export default AfterForgotPasswordPage;