Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ProductCard.jsx 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import { Button, Typography } from '@mui/material';
  2. import { Box } from '@mui/system';
  3. import Image from 'next/image';
  4. const ProductCard = () => {
  5. return (
  6. <Box
  7. sx={{
  8. width: '100%',
  9. height: '590px',
  10. border: 'none',
  11. mb: '75px',
  12. backgroundColor: '#F5ECD4',
  13. }}
  14. >
  15. <Box width="100%">
  16. <Image
  17. src="/images/product-card-image.jpg"
  18. alt="product image"
  19. width={373.33}
  20. height={249}
  21. />
  22. </Box>
  23. <Box
  24. width="100%"
  25. sx={{
  26. display: 'flex',
  27. flexDirection: 'column',
  28. }}
  29. >
  30. <Typography fontSize="24px" align="center" pt={1} pb={3}>
  31. MINIMALIST PRINTED MUG
  32. </Typography>
  33. <Typography align="center" fontSize="18px" m={2}>
  34. Our simple and sturdy mugs are made to last. With a minimalist desings
  35. you will soon be enjoying your next brew.
  36. </Typography>
  37. <Typography fontSize="24px" align="center" pt={4}>
  38. $20
  39. </Typography>
  40. <Box textAlign="center" mt={1}>
  41. <Button
  42. sx={{
  43. backgroundColor: '#CBA213',
  44. height: 50,
  45. width: 150,
  46. color: 'white',
  47. }}
  48. >
  49. Add to cart
  50. </Button>
  51. </Box>
  52. </Box>
  53. </Box>
  54. );
  55. };
  56. export default ProductCard;