Frontend Mentor - NFT Preview Card Component solution
This is a solution to the NFT Preview Card Component. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Table of contents
Overview
A simple project using HTML5 and CSS3 that displays an NFT preview card consisting of an image, pricing and author information.
Screenshot
Links
My process
- I started with the markup on index.html, complying with HTML5 semantic tags and standards as much as possible.
- The styling provided by the project briefing was implemented first, followed by the classes I came up with on the markup.
- I used Figma to acquire all the right dimensions involved in the layout and implemented them in the appropriate CSS classes.
- The CSS Cube methodology was used when coding the stylesheet and some of the conventions from BEM were used when naming classes.
Built with
- Semantic HTML5 markup
- Cube CSS methodology
What I learned
- How to implement a color transparency along with an overlayed image on a hover effect.
- I had to use a few CSS variables in order to guarantee the adequate positioning of the "view icon" over the NFT preview image on different viewport dimensions.