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.
 
 

69 line
2.4 KiB

  1. // material-ui
  2. import { useMediaQuery, Container, Link, Typography, Stack } from '@mui/material';
  3. import bhkLogo from 'assets/images/BHK_logo_rgb_zh-hk.png';
  4. import {FormattedMessage} from "react-intl";
  5. import {
  6. isGLDLoggedIn,
  7. } from "utils/Utils";
  8. // ==============================|| FOOTER - AUTHENTICATION ||============================== //
  9. const AuthFooter = () => {
  10. const matchDownSM = useMediaQuery((theme) => theme.breakpoints.down('sm'));
  11. return (
  12. <Container maxWidth= "xl" sx={{minHeight: '5vh'}}>
  13. <Stack
  14. direction={matchDownSM ? 'column' : 'row'}
  15. justifyContent={matchDownSM ? 'center' : 'flex-start'}
  16. spacing={2}
  17. textAlign={matchDownSM ? 'center' : 'inherit'}
  18. alignItems="center"
  19. >
  20. <Typography variant="subtitle2" color="secondary" component="span">
  21. 2024 &copy; <FormattedMessage id="HKGLD" />
  22. </Typography>
  23. <Typography
  24. variant="subtitle2"
  25. color="secondary"
  26. component={Link}
  27. // href="https://material-ui.com/store/contributors/codedthemes/"
  28. target="_blank"
  29. underline="hover"
  30. >
  31. <FormattedMessage id="importantNotice" />
  32. </Typography>
  33. <Typography
  34. variant="subtitle2"
  35. color="secondary"
  36. component={Link}
  37. href="https://www.gld.gov.hk/zh-hk/privacy-policy/"
  38. //href="/testMailPage"
  39. target="_blank"
  40. underline="hover"
  41. >
  42. <FormattedMessage id="privacyPolicy" />
  43. </Typography>
  44. </Stack>
  45. <Stack direction={matchDownSM ? 'column' : 'row'} spacing={matchDownSM ? 1 : 3} textAlign={matchDownSM ? 'center' : 'inherit'} justifyContent={matchDownSM?"center":"flex-end"}>
  46. {!isGLDLoggedIn()?
  47. <a href="https://www.w3.org/WAI/WCAG2AA-Conformance"
  48. title="Explanation of WCAG 2 Level AA conformance">
  49. <img height="32" width="88"
  50. src="https://www.w3.org/WAI/wcag2AA"
  51. alt="Level AA conformance,
  52. W3C WAI Web Content Accessibility Guidelines 2.0"/>
  53. </a>:null
  54. }
  55. <a href="https://www.brandhk.gov.hk/zh-hk"
  56. title="Brand Hong Kong">
  57. <img src={bhkLogo} alt="logo" height="32" width="88"
  58. />
  59. </a>
  60. </Stack>
  61. </Container>
  62. );
  63. };
  64. export default AuthFooter;