import React from 'react'; import { Link } from 'react-router-dom'; import Heels from '../assets/images/Heels.jpg'; import HEELS from '../assets/images/HEELS.png'; import SapatoCastanho from '../assets/images/Sapato castanho.png'; import ShoesJpg from '../assets/images/shoes.jpg'; import ShoesWebp from '../assets/images/shoes.webp'; import Yasmina from '../assets/images/YASMINA.jpg'; const productImages = [ { id: '1', src: Heels, alt: 'Heels', description: 'Elegant high heels for formal occasions.', price: '€120' }, { id: '2', src: HEELS, alt: 'HEELS', description: 'Classic black heels for every event.', price: '€110' }, { id: '3', src: SapatoCastanho, alt: 'Sapato Castanho', description: 'Brown loafers for a timeless look.', price: '€130' }, { id: '4', src: ShoesJpg, alt: 'Shoes', description: 'Versatile shoes for any occasion.', price: '€100' }, { id: '5', src: ShoesWebp, alt: 'Shoes WebP', description: 'Modern shoes with a unique finish.', price: '€105' }, { id: '6', src: Yasmina, alt: 'Yasmina', description: 'Chic heels for special nights.', price: '€140' }, ]; const Products = () => ( <div className="products-gallery"> {productImages.map(product => ( <div className="product-card" key={product.id}> <img src={product.src} alt={product.alt} /> <div className="product-info"> <strong>{product.alt}</strong> <div>{product.price}</div> </div> </div> ))} </div> ); export default Products; import React from 'react'; import { Link } from 'react-router-dom'; import Heels from '../assets/images/Heels.jpg'; import HEELS from '../assets/images/HEELS.png'; import SapatoCastanho from '../assets/images/Sapato castanho.png'; import ShoesJpg from '../assets/images/shoes.jpg'; import ShoesWebp from '../assets/images/shoes.webp'; import Yasmina from '../assets/images/YASMINA.jpg'; const productImages = [ { id: '1', src: Heels, alt: 'Heels', description: 'Elegant high heels for formal occasions.', price: '€120' }, { id: '2', src: HEELS, alt: 'HEELS', description: 'Classic black heels for every event.', price: '€110' }, { id: '3', src: SapatoCastanho, alt: 'Sapato Castanho', description: 'Brown loafers for a timeless look.', price: '€130' }, { id: '4', src: ShoesJpg, alt: 'Shoes', description: 'Versatile shoes for any occasion.', price: '€100' }, { id: '5', src: ShoesWebp, alt: 'Shoes WebP', description: 'Modern shoes with a unique finish.', price: '€105' }, { id: '6', src: Yasmina, alt: 'Yasmina', description: 'Chic heels for special nights.', price: '€140' }, ]; const Products = () => ( <div className="products-gallery"> {productImages.map(product => ( <div className="product-card" key={product.id}> <img src={product.src} alt={product.alt} /> <div className="product-info"> <strong>{product.alt}</strong> <div>{product.price}</div> </div> </div> ))} </div> ); export default Products; #dev #programming #technology 5m n: 0.m 5rem m m 0.2r em 00 1/*Problem formating website
Hey guys, I'm still new to JSX and CSS and I'm having this issue with my products page,the images are overlapping eachother tis all very disorganized and some photos are huge compared to the others, I tried tweaking a few lines of code to see if it will fix the problem but it hasn't worked.
I'm going to paste the respective codes, appreciate all the help!