NFT preview card component

Please log in to post a comment
Log in with GitHubCommunity feedback
- @chanwinharold
Hey! 👋 I just reviewed your CSS file, and I wanted to say you’ve done a really solid job. I can tell you’re paying attention to accessibility, responsiveness, and overall structure — things like resetting styles, improving media defaults, and working with custom properties show great awareness of modern CSS practices. Also, I appreciated your consistent use of rem units and BEM-inspired class naming, which helps with scalability and readability.
That said, there are a few areas where the code could be improved to make it even cleaner and more maintainable. For example:
Typography settings like font-size, line-height, and font-weight could be moved to reusable utility classes or managed more consistently to avoid repetition.
The :is() pseudo-class is used correctly, but a few selectors could be simplified for readability (e.g., repeated :is(:link, :visited)).
Some declarations (like hard-coded widths and heights for .card-picture) might be better handled with responsive units or flexible containers to enhance adaptability.
You could consider using CSS custom properties (--value) for spacings and sizes as well — you’ve done this for colors, which is great!
Structuring the code into sections is helpful — maybe go one step further by grouping typography, layout, components, etc., into partials (if you use SCSS or a build system).
Overall, great work and a clear eye for design details. With a few tweaks, this would be a great reference for a modern, accessible component. Keep it up — you’re on a great path! 💪
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