Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

stats_preview_card_component

Tenzin 140

@lekdup

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


edited my previous version! any feedback is welcome and thank you for your time

Community feedback

Vanza Setia 27,795

@vanzasetia

Posted

Hello, Tenzin! 👋

Congratulations on completing this challenge! 🎉

I notice that the card turns into a two-column layout on 376px width. As you may already know that the card doesn't have enough space to become a two-column layout at 376px width. So, I would recommend adjusting the breakpoint for the media query.

A few more suggestions.

  • For handling the image-header, I suggest using picture element instead. It will allow you to decide which image should appear based on the user's viewport width.
  • For the statistic, I would recommend making it one list. If the site has no styling then it would render it as follows. Also, this is how the screenreader would "see" the list.
    • 10k+ companies
    • 314 templates
    • 12m+ queries
  • In your CSS, I noticed this selector .component .proj-prev .table which would much be as .table . I would recommend only nesting when you want to style pseudo-elements, pseudo-classes (:hover, :focus, etc), and @media queries. It's a good practice to keep the CSS specificity as low and flat as possible. High specificity will make your stylesheet hard to maintain.

I hope this helps! 😁

Marked as helpful

0

Tenzin 140

@lekdup

Posted

@vanzasetia thank you very much Vanza, i will get right on it!

0
Vanza Setia 27,795

@vanzasetia

Posted

@lekdup No problem, Tenzin! 👍

0

Please log in to post a comment

Log in with GitHub
Discord logo

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