Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 7 months ago

Stats Preview Card

P
Rodrigo•250
@RiickyRiick
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?

Another excellent project for further review. Again, placing the design in the center and making it responsive. I think this repetitiveness has been a beneficial factor in my learning of when to execute a particular type of code with better responsiveness.

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

I added an extra media query at 850px, initiating a flex-wrap on the .business-stats. Once the viewport width decreased, it was better for a flex-direction: column, or the stats would bunch up together, making the design fall apart. Also, a margin-top and margin-right for spacing between these items (i.e., < section >).

I also learned how to use the ::after for the first time. I don't have much I can say about this CSS rule since I know very little about it; nevertheless, it is another opportunity to grow as a web developer.

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

I will continue focusing on ::after and ::before since these were two new CSS rules I learned in this project.

Any tips or advice are always welcome!

Happy Coding & Blessings to all

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 Rodrigo'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

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

Frontend Mentor

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

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