Responsive product preview card component with hover effect
Design comparison
Solution retrospective
Hey everyone, this is the second Frontend Mentor challenge for me. I have used flexbox for the layout and added some hover effects to the image and the button. Feel free to give me some feedback.
Community feedback
- @ericwinkPosted about 2 years ago
Hi Atanu,
Great work on the challenge! Keep up the great work and keep coding!
It looks like you have your mobile view kick-in at a width of 420px. You may want to consider adjusting that to around 600px. Using the responsive view in inspector in Chrome, the edges of the card hit the sides of the screen at around 575px or so, resulting in the design squishing down until you reach the 420px. If you aren't already using inspector in whichever browser you prefer (Chrome or Firefox are great!) play around with the different view widths and set your breakpoints at the spots where the UI breaks down.
Hopefully this helps!
Marked as helpful0@AtanuMalikPosted about 2 years ago@ericwink Ok, I got your point. I will change the breakpoint to 580px. Thank you for the feedback.
0 - @davinceeyPosted about 2 years ago
Hello Atanu Malik. Congratulations on finishing this project! I just previewed your site and it is beautiful. I saw the hiver effect used on the image, so apt!😁 I just have a small tip actually:
You might want to replace your
h3
tag with theh1
tag and then, you can set the font-size of your body toinherit
so that you can set the font-size of yourh1
to what you want (this is totally optional). But changing the h3 to h1, would be good HTML practice as it obeys the order of hierarchy.Hope this helps you. Happy coding!👊
Marked as helpful0
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