Product Preview Card Component developed by flex and media queries

Solution retrospective
I am most proud of developing the design just by eyeing out and next time I will try to use clamp function to size the fonts instead of using media queries.
What challenges did you encounter, and how did you overcome them?The challenge I encountered was deciding the size of the elements and I overcome this by few trial and error.
What specific areas of your project would you like help with?I want to know how we can use the clamp function in this mobile and desktop only design.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @planeboom911
Very nice project.
Good things :
- clean code
- closely matches design
Bad things :
- used
h1
in the price, h1 is meant to be the most impacting or the heading of the whole page. When used in the product name, it is sensible, but here I think you should avoid any heading altogether, because this price is not a heading. usespan
orp
.
for clamp function, you could check out : clamp calculator
Rating : 9 / 10 ( -1 for incorrect heading usage )
Join 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