Product preview card component
Design comparison
Solution retrospective
Hello, Frontend Mentor community! This is my solution to the Product preview card component.
I appreciate all the feedback you left that helped me to improve this project. Due to the fact that I published this project very long ago, I am no longer updating it and changing its status to Public Archive on my Github.
You are free to download or use the code for reference in your projects, but I no longer update it or accept any feedback.
Thank you
Community feedback
- @ApplePieGiraffePosted over 2 years ago
Hey there, Catherine Is Online! 👋
Great job on this challenge! 👏 Your solution looks good and responds well! 🙌
One thing I'd suggest is to probably not set the font-size of the text in the
body
inpx
because we typically want to users to be able to change the size of all text on the site by the changing the root font-size of the document. In other words, setting font-size inem
orrem
wherever possible would be the better way to go in order to make your solution as accessible as possible. 😉Hope that helps. 😊
Keep coding (and happy coding, too)! 😁
Marked as helpful3@catherineisonlinePosted over 2 years ago@ApplePieGiraffe Thank for the feedback!
1 - @afaiz-spacePosted over 2 years ago
Hey @catherineisonline, remove
height: 450px;
frommain
element.Marked as helpful1 - @lilKriTPosted over 2 years ago
Very cool and clean. It almost looks like the design is a screenshot of your implementation.
Marked as helpful1 - @DkP-ConsultPosted over 2 years ago
Well good job ! Just may be use bold propertie for promo price :) Friendly, DkP
Marked as helpful1 - @DonUggioniPosted over 2 years ago
Looks spot on! Great job 👍
Marked as helpful1 - @MazzGuillePosted about 2 years ago
Hi, I think the only suggestion I can give you is to set the font size on HTML or body to 62.5%, this makes 1rem = 10px, that way you can use rem units to set specific font sizes on different elements. I.E., by setting font size to 62.5%, if I wanted a <p> tag to be 16px, I would set it like this:
html { font-size: 62.5%;
}.my-p-tag{ font-size: 1.6rem; }
This also helps because you can use rem units for padding, margins or any other measurement you need
Hope it's helpful for you!
0@catherineisonlinePosted over 1 year ago@MazzGuille Thanks for the tips!
1
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