mbdelarosa / nft-preview-card-component

Solution for the NFT Preview Card Component challenge on Frontend Mentor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

  • How to add an image to an anchor tag
  • How to display an icon overlay on hover/focus using the ::before and ::after pseudo-elements and the position: absolute property
  • Use of the transition property for simple hover/focus animation
  • That we can apply multiple box-shadow properties

Continued development

I'd like to learn more about the different CSS animations, as well as other use cases of pseudo-elements.

Useful resources

Author

Acknowledgments

The following threads from Discord helped explain how to structure the HTML to show the icon overlay on hover/focus

About

Solution for the NFT Preview Card Component challenge on Frontend Mentor


Languages

Language:CSS 69.2%Language:HTML 30.8%