Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import { Container, Divider, Typography } from '@mui/material';
  2. import { Box } from '@mui/system';
  3. import { useTranslation } from 'next-i18next';
  4. import Image from 'next/image';
  5. import FeatureItem from './FeatureItem';
  6. import items from './items';
  7. const Features = () => {
  8. const { t } = useTranslation('home');
  9. return (
  10. <>
  11. <Box
  12. sx={{
  13. display: 'flex',
  14. width: '100%',
  15. height: {
  16. xs: '100%',
  17. sm: '100%',
  18. },
  19. flexDirection: 'column',
  20. paddingBottom: '50px',
  21. }}
  22. >
  23. <Container
  24. sx={{
  25. width: '100%',
  26. }}
  27. >
  28. <Typography
  29. variant="h1"
  30. sx={{
  31. fontSize: { xs: '36px', sm: '48px', md: '64px', lg: '86px' },
  32. color: 'primary.main',
  33. textAlign: 'center',
  34. mt: 5,
  35. fontFamily: ['Indie Flower', 'cursive'].join(','),
  36. }}
  37. >
  38. {t('home:coffeeTitle')}
  39. </Typography>
  40. </Container>
  41. <Container
  42. sx={{
  43. width: '100%',
  44. textAlign: 'center',
  45. }}
  46. >
  47. <Box
  48. sx={{
  49. display: 'flex',
  50. justifyContent: 'center',
  51. alignItems: 'center',
  52. }}
  53. >
  54. <Divider sx={{ width: { xs: '100px', sm: '200px' }, mr: 4 }} />
  55. <Image
  56. src="/images/coffee-beans-icon.svg"
  57. alt="profile"
  58. width={50}
  59. height={50}
  60. />
  61. <Divider sx={{ width: { xs: '100px', sm: '200px' }, ml: 4 }} />
  62. </Box>
  63. </Container>
  64. <Box
  65. sx={{
  66. display: 'flex',
  67. flexDirection: { xs: 'column', lg: 'row' },
  68. width: '100%',
  69. height: '100%',
  70. }}
  71. >
  72. {items.map((item) => (
  73. <FeatureItem
  74. key={item.id}
  75. image={item.image}
  76. alt={item.alt}
  77. description={item.description}
  78. />
  79. ))}
  80. </Box>
  81. </Box>
  82. </>
  83. );
  84. };
  85. export default Features;