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.

Product.jsx 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import React, { useEffect } from 'react'
  2. import { Box, Typography } from '@mui/material';
  3. import { useParams } from 'react-router-dom';
  4. import Grid from '@mui/material/Grid2';
  5. import logoSrc from "../../assets/svg/logo.svg";
  6. import ImageView from '../../components/ImageView/ImageView';
  7. import ProductDetails from '../../components/ProductDetails';
  8. import ProductSuggestion from '../../components/ProductSuggestion';
  9. import ProductHistoryList from '../../components/ProductHistoryList';
  10. import SocialMedia from '../../components/SocialMedia'
  11. import Feature from '../../components/Feature'
  12. const Product = () => {
  13. let { pid } = useParams();
  14. useEffect(() => {
  15. }, [])
  16. return (
  17. <Box sx={{
  18. px: {
  19. xs: 2,
  20. md: 12,
  21. lg: 20
  22. },
  23. mb: {
  24. xs: 0,
  25. md: 5,
  26. lg: 10
  27. }
  28. }}>
  29. <Grid container spacing={0} sx={{ mt: 10, mb:5 }}>
  30. <Grid size={12} sx={{ backgroundColor: "#000", textAlign:"center", display:{xs:"block", md:"none"} }}>
  31. <img src={logoSrc} alt="Logo"
  32. style={{
  33. width: 150,
  34. height: 50
  35. }} />
  36. </Grid>
  37. <Grid size={{ xs: 12, md: 6 }}>
  38. <Box sx={{ paddingRight: 1 }}>
  39. <Box>
  40. <ImageView />
  41. </Box>
  42. </Box>
  43. </Grid>
  44. <Grid size={{ xs: 12, md: 6 }}>
  45. <Box>
  46. <Box>
  47. <ProductDetails />
  48. </Box>
  49. </Box>
  50. </Grid>
  51. </Grid>
  52. <Box sx={{
  53. width: "100%",
  54. borderTop: "1px solid rgba(0,0,0,0.2)",
  55. py: 4,
  56. textAlign: "center"
  57. }}>
  58. <Typography variant='body1' sx={{ fontWeight: "400", mb: 4 }}>
  59. YOU MAY ALSO LIKE
  60. </Typography>
  61. <ProductSuggestion />
  62. </Box>
  63. <Box sx={{
  64. width: "100%",
  65. borderTop: "1px solid rgba(0,0,0,0.2)",
  66. py: 4,
  67. textAlign: "center"
  68. }}>
  69. <Typography variant='body1' sx={{ fontWeight: "400", mb: 4 }}>
  70. RECENTLY VIEWED
  71. </Typography>
  72. <ProductHistoryList />
  73. </Box>
  74. <SocialMedia />
  75. <Feature />
  76. </Box>
  77. )
  78. }
  79. export default Product