SimpleProductsGroup.jsx 1017 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // components
  2. import SimpleProduct from '@components/SimpleProduct';
  3. // assets
  4. import side1 from '@assets/shoes/1_side.webp';
  5. import back1 from '@assets/shoes/1_back.webp';
  6. import bottom1 from '@assets/shoes/1_bottom.webp';
  7. import side2 from '@assets/shoes/2_side.webp';
  8. import back2 from '@assets/shoes/2_back.webp';
  9. import bottom2 from '@assets/shoes/2_bottom.webp';
  10. const data = [
  11. {
  12. id: 1,
  13. name: 'Nike Free Metcon 4 Training Shoes',
  14. price: 100,
  15. rating: 4.5,
  16. media: [side1, back1, bottom1]
  17. },
  18. {
  19. id: 2,
  20. name: 'Nike SuperRep Go 3 Flyknit Next Nature',
  21. price: 120,
  22. rating: 5,
  23. media: [side2, back2, bottom2]
  24. }
  25. ]
  26. const SimpleProductsGroup = () => {
  27. return (
  28. <div className="d-grid g-20 h-100">
  29. {
  30. data.map(product => (
  31. <SimpleProduct key={product.id} product={product}/>
  32. ))
  33. }
  34. </div>
  35. )
  36. }
  37. export default SimpleProductsGroup