Skip to content

Frontend design for an NFT card component that would be used to showcase an NFT on sites like Foundation or Opensea

License

Notifications You must be signed in to change notification settings

UbaidRussell/NFT-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Our Equilibrium collection promotes balance and calm.

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

Mapped out the site and then started coding.

Built with

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

What I learned

This code I found interesting because it creates the image overlay on hover and doing that sparked my interest in learning more about CSS animations.

.image-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height:350px;
    margin: 20px;
    border-radius: 20px;
    background-color: hsla(215, 51%, 70%,0.6);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.image-overlay:hover{
    opacity: 1;
}
.view-icon{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
}

Continued development

We're going to just keep building on top of this.

Useful resources

Author

Acknowledgments

Shout out to the Frontend Mentor community for being so helpful and supportive.

About

Frontend design for an NFT card component that would be used to showcase an NFT on sites like Foundation or Opensea

Resources

License

Stars

Watchers

Forks