tailwind-stats-preview-card-component Tailwind Templates

Tailwind Stats Preview Card Component

Frontend Mentor Stats Preview challenge

Frontend Mentor - Stats preview card component solution

This is a solution to the Stats 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

Screenshot

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • Mobile-first workflow
  • Tailwind - Tailwind CSS framework

Note: These are just examples. Delete this note and replace the list above with your own choices

What I learned

Continuing the tailwind CSS journey, this is a re-do of the challenge using tailwind. I was able to use the tag to swap out the pictures, although in this challenge it is hard to tell because the two pictures are so very similar.

.hero::before {
    content: " ";
    width: 100%; 
    height: 100%; 
    opacity: 20%;
    background-color: #f019f4; 
    position: absolute;
    top: 0;
    left: 0;
}

Continued development

Use this section to outline areas that you want to continue focusing on in future projects. These could be concepts you're still not completely comfortable with or techniques you found useful that you want to refine and perfect.

Note: Delete this note and the content within this section and replace with your own plans for continued development.

Author

Acknowledgments

@Opeyemi-stack helped me with the overlay element from the nft preview card challenge. That project showed me how to use ::before with an img element to produce a colored overlay.

@KKen007 also has a great solution to this challenge which influenced me.

Top categories

Loading Svelte Themes