Skip to content

Latest commit

 

History

History
76 lines (54 loc) · 1.93 KB

File metadata and controls

76 lines (54 loc) · 1.93 KB

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.

Design preview for the NFT preview card component coding challenge

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

Website Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • Mobile-first workflow

What I learned

I learned about the importance of structuring the HTML code first before moving to styling using CSS and how to make a divider in this challenge :).

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

<div>
  <div class="balance">
    <img src="images/icon-ethereum.svg" alt="ETH Icon" />
    <p class="balance">0.041 ETH</p>
  </div>
  <div class="timeline">
    <img src="images/icon-clock.svg" alt="Icon Clock" />
    <p>3 days left</p>
  </div>
</div>
<hr class="solid" />
hr.solid {
  border: 0;
  border-top: 1px solid white;
  opacity: 0.3;
  margin-top: -5px;
}

Author