Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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