Skip to content

cybr-coder/NFT-Preview-Card-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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

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
  • Desktop-first workflow

What I learned

From this Project, I learnt how to display an overlayed background when hovered over the main image. I listed resources later in this document...See the code below

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: 0.5s ease;
    background-color: hsl(178, 100%, 50%);
    display: flex;
    justify-content: center;
    align-items: center;
}
.container:hover .overlay{
    opacity: 1;
    cursor: pointer;
}

Continued development

I am still researching to make this project responsive. I am still fairly a beginner and learning a lot now..Hope to deploy the full feature soon.

Useful resources

  • resource 1 - This helped learn how to do the image hover overlay. I really liked this pattern and will use it going forward.
  • resource 2 - This is an amazing website which helped me finally understand most of the syntax I didn't know in CSS. I'd recommend it to anyone still learning this Front End Development.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published