Skip to content

Samuel-Amaro/NFT-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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

mobile result

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Property layout - float
  • Property layout - display

What I learned

In this project as a learning experience I learned to create an overlay over an image, using pure css

.conteiner-img{
    position: relative;
    overflow: auto;
}

.overlay{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 3px;
    border-radius: 10px;
    width: 100%;
    height: 99%;
    background-color: hsla(178, 100%, 50%, 0.6);
    visibility: hidden;
    z-index: 1;
}

.overlay img{
    position: absolute;
    display: block;
    padding: 43%;
}

Useful resources

  • style image - This helped me understand how to overlay an image.

Author

About

desafio do front-end mentor para desenvolver um card component de preview NFT

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published