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.
Reconstruct the design of a NFT CARD, a Frontend Mentor beginner project.
- Live Site URL: https://izuca.github.io/Nft_Card/
- Frontend Mentor project: https://www.frontendmentor.io/challenges/nft-preview-card-component-SbdUL_w0U
- HTML 5
- CSS 3
- Flexbox
- 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
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.