Skip to content

victorsonet/NFT-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

I learned to code a little bit simpler then last time (used more properties in main this time) and also using before, after to make the needed elements interactive.

To see how you can add code snippets, see below:

a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: teal;
    opacity: 0;
    border-radius: 10px;
    z-index: 1;
} 

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../images/icon-view.svg");
    background-repeat: no-repeat;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-position: center;
    opacity: 0;
    border-radius: 10px;
    z-index: 2;
}

a:hover::before {
    opacity: 0.7;
}

a:hover::after {
    opacity: 1;
}

Continued development

I want to make more interactive things because that was kinda new to me.

Useful resources

  • Example resource 1 - This thread helped me because it had a nice explanation about the interactive part.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published