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.
 
 

85 line
2.6 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 {useIntl} from "react-intl";
  6. import {
  7. isGLDLoggedIn,
  8. } from "utils/Utils";
  9. // ==============================|| FOOTER - AUTHENTICATION ||============================== //
  10. const AuthFooter = () => {
  11. const matchDownSM = useMediaQuery((theme) => theme.breakpoints.down('sm'));
  12. const intl = useIntl();
  13. const bhkAlt = intl.formatMessage({ id: "bhkLogoAlt" });
  14. const wcagAlt = intl.formatMessage({ id: "wcagAaAlt" });
  15. return (
  16. <Container maxWidth="xl" sx={{ minHeight: '5vh' }}>
  17. <Stack
  18. direction={matchDownSM ? 'column' : 'row'}
  19. justifyContent={matchDownSM ? 'center' : 'flex-start'}
  20. spacing={2}
  21. textAlign={matchDownSM ? 'center' : 'inherit'}
  22. alignItems="center"
  23. >
  24. <Typography
  25. variant="subtitle2"
  26. component="span"
  27. sx={{ color: '#4A4A4A' }}
  28. >
  29. 2024-{new Date().getFullYear()} &copy; <FormattedMessage id="HKGLD" />
  30. </Typography>
  31. <Typography
  32. variant="subtitle2"
  33. color="secondary"
  34. component={Link}
  35. href="/importantNotice"
  36. target="_blank"
  37. underline="hover"
  38. >
  39. <FormattedMessage id="importantNotice" />
  40. </Typography>
  41. <Typography
  42. variant="subtitle2"
  43. color="secondary"
  44. component={Link}
  45. href="/privacyPolicy"
  46. target="_blank"
  47. underline="hover"
  48. >
  49. <FormattedMessage id="privacyPolicy" />
  50. </Typography>
  51. </Stack>
  52. <Stack direction={matchDownSM ? 'column' : 'row'} spacing={matchDownSM ? 1 : 3} textAlign={matchDownSM ? 'center' : 'inherit'} justifyContent={matchDownSM?"center":"flex-end"}>
  53. {!isGLDLoggedIn()? (
  54. <a
  55. href="https://www.w3.org/WAI/WCAG2AA-Conformance"
  56. title="Explanation of WCAG 2 Level AA conformance"
  57. >
  58. <img
  59. height="32"
  60. width="88"
  61. src="https://www.w3.org/WAI/wcag2AA"
  62. alt={wcagAlt}
  63. />
  64. </a>
  65. ) : null}
  66. <a href="https://www.brandhk.gov.hk/zh-hk" title="Brand Hong Kong">
  67. <img
  68. src={bhkLogo}
  69. alt={bhkAlt}
  70. height="32"
  71. width="88"
  72. />
  73. </a>
  74. </Stack>
  75. </Container>
  76. );
  77. };
  78. export default AuthFooter;