yashviradia / nft-preview-card-component-main

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NFT preview card component

This is a solution to the NFT preview card component challenge on Frontend Mentor.

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

screenshot.png

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox

What I learned

  • working this project with help of CSS Flexbox.
  • create image hover overlay effects using CSS
  • Using z-index.
.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.5s ease;
  border-radius: 10px;
  background-color: hsl(178, 100%, 50%);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

Continued development

  • Using HTML psuedo Elements to create hover effect on card image.
  • Blog describing the process of building this project.

Useful resources

  • Flexbox Explanation on MDN - This is an amazing documentation on CSS Flexbox which helped me finally understand this concept. I'd recommend it to anyone still learning this concept.

Author

Acknowledgments

About


Languages

Language:CSS 65.0%Language:HTML 35.0%