Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Features.jsx 2.0KB

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