/NFT-Preview-Card-Component

Solution for the NFT Preview Card Component challenge on frontendmentor.io

Primary LanguageCSSGNU Affero General Public License v3.0AGPL-3.0

Frontend Mentor - NFT Preview Card Component solution

CodeFactor Grade FrontendMentor

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

NFT Preview Card Component

Links

My process

  1. I started with the markup on index.html, complying with HTML5 semantic tags and standards as much as possible.
  2. The styling provided by the project briefing was implemented first, followed by the classes I came up with on the markup.
  3. I used Figma to acquire all the right dimensions involved in the layout and implemented them in the appropriate CSS classes.
  4. 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.