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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. import Box from '@mui/material/Box';
  2. import Typography from '@mui/material/Typography';
  3. import Image from 'next/image';
  4. import Link from 'next/link';
  5. import { BASE_PAGE, PRODUCTS_PAGE } from '../../../constants/pages';
  6. const pages = [
  7. <Link key="home" href={BASE_PAGE}>
  8. <Typography
  9. textAlign="center"
  10. sx={{
  11. px: 1.5,
  12. fontSize: 20,
  13. fontWeight: 500,
  14. color: 'black',
  15. textDecoration: 'none',
  16. cursor: 'pointer',
  17. }}
  18. >
  19. Home
  20. </Typography>
  21. </Link>,
  22. <Link key="menu" href={BASE_PAGE}>
  23. <Typography
  24. textAlign="center"
  25. sx={{
  26. px: 1.5,
  27. fontSize: 20,
  28. fontWeight: 500,
  29. color: 'black',
  30. textDecoration: 'none',
  31. cursor: 'pointer',
  32. }}
  33. >
  34. Menu
  35. </Typography>
  36. </Link>,
  37. <Link key="about" href={BASE_PAGE}>
  38. <Typography
  39. textAlign="center"
  40. sx={{
  41. px: 1.5,
  42. fontSize: 20,
  43. fontWeight: 500,
  44. color: 'black',
  45. textDecoration: 'none',
  46. cursor: 'pointer',
  47. }}
  48. >
  49. About
  50. </Typography>
  51. </Link>,
  52. <Link key="store" href={PRODUCTS_PAGE}>
  53. <Typography
  54. textAlign="center"
  55. sx={{
  56. px: 1.5,
  57. fontSize: 20,
  58. fontWeight: 500,
  59. color: 'black',
  60. textDecoration: 'none',
  61. cursor: 'pointer',
  62. }}
  63. >
  64. Store
  65. </Typography>
  66. </Link>,
  67. <Link key="contact" href={BASE_PAGE}>
  68. <Typography
  69. textAlign="center"
  70. sx={{
  71. px: 1.5,
  72. fontSize: 20,
  73. fontWeight: 500,
  74. color: 'black',
  75. textDecoration: 'none',
  76. cursor: 'pointer',
  77. }}
  78. >
  79. Contact
  80. </Typography>
  81. </Link>,
  82. ];
  83. const Footer: React.FC = () => {
  84. return (
  85. <Box
  86. sx={{
  87. display: 'flex',
  88. width: '100%',
  89. height: 220,
  90. flexDirection: 'column',
  91. bottom: 0,
  92. position: 'relative',
  93. }}
  94. >
  95. <Typography
  96. variant="h3"
  97. sx={{
  98. width: '100%',
  99. textAlign: 'center',
  100. color: 'primary.main',
  101. height: 60,
  102. mt: 4,
  103. }}
  104. >
  105. Coffee Shop
  106. </Typography>
  107. <Box
  108. sx={{
  109. maxWidth: '100%',
  110. height: 30,
  111. mt: 1.5,
  112. display: 'flex',
  113. justifyContent: 'center',
  114. }}
  115. >
  116. {pages.map((page) => page)}
  117. </Box>
  118. <Box
  119. sx={{
  120. display: 'flex',
  121. width: '100%',
  122. height: 40,
  123. mt: 4,
  124. justifyContent: 'center',
  125. }}
  126. >
  127. <Box sx={{ px: 2 }}>
  128. <Image
  129. src="/images/Instagram.svg"
  130. alt="cart"
  131. width={35}
  132. height={35}
  133. />
  134. </Box>
  135. <Box sx={{ px: 2 }}>
  136. <Image src="/images/Facebook.svg" alt="cart" width={35} height={35} />
  137. </Box>
  138. <Box sx={{ px: 2 }}>
  139. <Image src="/images/Twitter.svg" alt="cart" width={35} height={35} />
  140. </Box>
  141. </Box>
  142. </Box>
  143. );
  144. };
  145. export default Footer;