Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 12 days ago

Stats preview using Tailwind CSS

tailwind-css
beowulf1958•1,770
@beowulf1958
A solution to the Stats preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I am really beginning to develop an efficient workflow: using the style guide and figma files before starting, looking up tailwind values ahead of time, really speeds up the process. I wasn't too sure about tailwind before, but now I am beginning to like it.

What challenges did you encounter, and how did you overcome them?

The real challenge of this project is to get the colored overlay on the photo. The rest is pretty basic stuff. I experimented with ::before, and rather than having a monster set of classes on the hero section, I opted to go with a more vanilla CSS approach to the overlay. I also looked at how other people handled this, which was very helpful. @Kken007 had a much simpler approach that did not involved ::before.

What specific areas of your project would you like help with?

Any feedback is welcome, especially in how I could possibly do the overlay with just tailwind.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on beowulf1958's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub