/nft-preview-card-component

My solution to the Frontend Mentor "NFT Preview Card Component" challenge

Primary LanguageSCSSGNU General Public License v2.0GPL-2.0

Frontend Mentor - NFT preview card component solution

This is a solution to the NFT preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • See hover states for interactive elements

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox

What I Learned

This was a fun little project. It was cool because I discovered the inset rule. The inset rule is the shorthand property instead of using top, right, bottom and left.

I had some problems with the hover effect of the NFT image, I did some research and found a good example on W3 Schools that went along way and helped me achieve the desired look. I did need to tweak the styles however to get the icon on hover to display, but it was nothing too difficult.

Author