/nft-preview

frontend mentor challenge!

Primary LanguageSCSS

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

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

I went with using SCSS instead to start practicing more modern CSS methods, and it was great. I loved being able to think about my CSS in a more hierarchical like HTML. Why didn't they have this initially? Better late than never I suppose.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • SCSS/SASS

What I learned

I learned about SCSS/SASS and some of its syntax! It was a great learning experience for me to learn the more modern way of setting CSS properties. I also learned about absolute positioning for child elements onto parent elements; that's actually what I had trouble for the longest time since I couldn't get the hover to work for only the image.

Continued development

I couldn't get the eye view image to keep it's 100% opacity when the hover action is initiated. That's what I'll be keeping an eye out for.

Useful resources

Author