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.

ProductsHero.jsx 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. import { Button, Container, Grid, Typography } from '@mui/material';
  2. import { Box } from '@mui/system';
  3. import Image from 'next/image';
  4. import ProductCard from '../product-card/ProductCard';
  5. import ProductType from '../product-type/ProductType';
  6. import Sort from '../sort/sort';
  7. const ProductsHero = () => {
  8. return (
  9. <Box
  10. sx={{
  11. width: '100%',
  12. height: '100%',
  13. display: 'flex',
  14. flexDirection: 'column',
  15. }}
  16. >
  17. <Container
  18. sx={{
  19. width: '1273px',
  20. height: '350px',
  21. mt: 25,
  22. }}
  23. >
  24. <Typography
  25. fontFamily={'body1.fontFamily'}
  26. height="120px"
  27. fontSize="64px"
  28. align="center"
  29. color="primary.main"
  30. >
  31. Welcome to our Store!
  32. </Typography>
  33. <Typography fontSize="24px" align="center">
  34. Our focus is to bring you the very best in the world of coffee.
  35. Everything from fresh coffee beans, the best coffee powders and
  36. capsules as well as other miscellaneous items such as cups and mugs.
  37. Take a look to see if anything takes your fancy.
  38. </Typography>
  39. </Container>
  40. <Box textAlign="center" width="100%">
  41. <Sort />
  42. <ProductType />
  43. </Box>
  44. <Container
  45. sx={{
  46. mt: 10,
  47. }}
  48. >
  49. <Grid container spacing={2}>
  50. <Grid item md={4} xs={12} sx={{ height: '500px' }}>
  51. <ProductCard />
  52. </Grid>
  53. <Grid item md={4} xs={12}>
  54. <ProductCard />
  55. </Grid>
  56. <Grid item md={4} xs={12}>
  57. <ProductCard />
  58. </Grid>
  59. <Grid item md={4} xs={12}>
  60. <ProductCard />
  61. </Grid>
  62. <Grid item md={4} xs={12}>
  63. <ProductCard />
  64. </Grid>
  65. <Grid item md={4} xs={12}>
  66. <ProductCard />
  67. </Grid>
  68. <Grid item md={4} xs={12}>
  69. <ProductCard />
  70. </Grid>
  71. <Grid item md={4} xs={12}>
  72. <ProductCard />
  73. </Grid>
  74. <Grid item md={4} xs={12}>
  75. <ProductCard />
  76. </Grid>
  77. </Grid>
  78. <Box textAlign="center" mt={-3} mb={5}>
  79. <Button
  80. startIcon={
  81. <Image
  82. src="/images/arrow.svg"
  83. alt="arrow down"
  84. width={29}
  85. height={29}
  86. />
  87. }
  88. sx={{
  89. backgroundColor: 'primary.main',
  90. height: 50,
  91. width: 150,
  92. color: 'white',
  93. ':hover': {
  94. bgcolor: 'primary.main', // theme.palette.primary.main
  95. color: 'white',
  96. },
  97. }}
  98. >
  99. Load More
  100. </Button>
  101. </Box>
  102. </Container>
  103. </Box>
  104. );
  105. };
  106. export default ProductsHero;