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.

ProductImage.jsx 909B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { Box } from '@mui/system';
  2. import Image from 'next/image';
  3. import PropType from 'prop-types';
  4. const ProductImage = ({ image }) => {
  5. return (
  6. <Box
  7. sx={{
  8. width: '50%',
  9. maxWidth: '50%',
  10. height: '100%',
  11. pl: '10%',
  12. zIndex: 5,
  13. }}
  14. >
  15. <Box
  16. sx={{
  17. position: 'relative',
  18. zIndex: 3,
  19. }}
  20. >
  21. <Image src={image} alt="profile" width={500} height={500} />
  22. </Box>
  23. <Box
  24. sx={{
  25. position: 'relative',
  26. zIndex: 4,
  27. width: 300,
  28. height: 300,
  29. top: -230,
  30. left: 200,
  31. }}
  32. >
  33. <Image
  34. src="/images/beans 1.png"
  35. alt="profile"
  36. width={300}
  37. height={300}
  38. />
  39. </Box>
  40. </Box>
  41. );
  42. };
  43. ProductImage.propTypes = {
  44. image: PropType.string,
  45. };
  46. export default ProductImage;