Product Preview Card

Please log in to post a comment
Log in with GitHubCommunity feedback
- P@ecarlste
You might consider using the
<article>
semantic html tag for components container rather than a<div>
.The layout looks good and matches pretty closely to the example. I did notice a few of the fonts are a bit off. If you haven't already checked the Figman diagram for the CSS values for each element I'd suggest doing so. It makes it much easier to get the right values in there. Like for "Perfume", in tailwind v4 it should be
text-xs
to give youfont-size: 12px
rather than afont-size: 14px
which is whattext-sm
give you in tailwind v4.I like your use of the re-usable
<CodedBy />
component as you are likely using it multiple challenges! Nice job!Marked as helpful
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