Submitted 6 months agoA solution to the NFT preview card component challenge
NFT Preview Card
accessibility, bem
@gustavo2023

Solution retrospective
What are you most proud of, and what would you do differently next time?
Next time I would try to use pseudo-elements for the overlay.
What challenges did you encounter, and how did you overcome them?- Layering and Positioning: Getting the semi-transparent overlay and the eye icon to sit perfectly on top of the image required careful use of
position: relativeon the container andposition: absoluteon the overlay/icon. - Making the Entire Area Clickable: Structuring the HTML so the
<a>tag wrapped the whole image container and handled the hover state, rather than just the image itself.
- Did I apply the BEM methodology correctly throughout my HTML and CSS classes? Are there any instances where a class name could be better structured?
- Are there any places where I could use more semantic HTML elements instead of
divs, or where my current semantic choices could be improved for better meaning or accessibility? - Are there any missing
altattributes oraria-attributes that could improve accessibility for screen reader users or keyboard navigation?
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Gustavo Gutiérrez's solution.
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