Skip to content

izuca/Nft_Card

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

Reconstruct the design of a NFT CARD, a Frontend Mentor beginner project.

Screenshot

Links

My process

Built with

  • HTML 5
  • CSS 3
  • Flexbox

What I learned

  • An introduction on how to use flexbox:
.container {
  display:flex;
}
  • Alt in HTML is an alternative way to name elements:
<img class="img-cubo" src="img/cubo.jpg" alt="cubo">
  • Looks like it's better to separate elements through divs so flexbox can work properly:
<div class="info">
            <div class="cripto">
                <div>
                    <img class="diamond" src="img/icon-ethereum.svg" alt="diamond">
                </div>
                <div>
                    <h1 class="value">0.041 ETH</h1>
                </div>
            </div>
  • How to make transitions in css:
.item-title {
    margin: 0px 95px 0px 0px;
    transition-duration: 0.25s;
}

.item-title:hover{
    color:hsl(178, 100%, 50%);
}
  • How to create a horizontal line in html:
<hr class="line">
  • How to use live server

  • And how to use GitHub Pages

Continued development

After concluding this project, I noticed that I could use easier ways to organize the elements in HTML. I should use CSS Custom Properties and a Mobile-first workflow, so the site works in every device. After posting this project, I'll be going to watch the project's solution on youtube in order to see which parts I can do better in the next project.

Useful resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published