
Design comparison
Community feedback
- @Benson0721Posted 4 months ago
Your perfume image has some mistakes! You might want to correct your variable:
const imgPerfume = '../images/image-product-mobile.jpg'; in the imgPerfume.jsx file. The relative path is not based on imgPerfume.jsx but on index.html, so you can try using:
const imgPerfume = './images/image-product-mobile.jpg'; instead!
If you don't know how to change the image when a media query event occurs, you can refer to my code in ResponsiveImage.jsx. It will be helpful if you encounter the same problem in the future!
You’ve done really well! Keep going!
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord