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 component [HTML-CSS]

@jisazamp

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


While the image overlay was not perfect, I am happy with the results. I would like to hear better ways to apply this color to the image.

Thank you! :)

Community feedback

P

@a-woodworth

Posted

Good job on completing this challenge. Your solution looks nice.

Take a look at css mixed blend mode to learn more about adding color to images. There are a lot of ways to do this with code via combining images, gradients, etc

Some links on the topic to get you started:

Happy coding!

Marked as helpful

2

@jisazamp

Posted

@a-woodworth hey! Thanks for taking the time. That’s some valuable info right there, I’ll take a look.

Thanks again.

0
Vanza Setia 27,795

@vanzasetia

Posted

Hello, Juan! 👋

Regarding the image overlay, I also recommend using mix-blend-mode. I suggest adjusting the opacity of the image as well to make it match perfectly with the design. For your reference, you can see @DarrickFauvel's solution for this challenge.

Some feedback.

  • The image is a decorative image. So, leave the alt="" empty.
  • There's no need to wrap the img element with the figure element. The only reason to use figure is if you need to include a figcaption. Otherwise img tag is fine (or wrap it with div instead).
  • The card__stats should be a list item. If the site has no styling, a list item would be the best choice. I like to think of the HTML page (no styling) as a document file. So, the heading is the same as the title, h2 is a sub-title, etc.
    • 10k+ companies
    • 314 templates
    • 12m+ queries
  • Use single class selectors for styling whenever possible instead of id. id has high specificity which can lead to a lot of issues on the larger project. It's best to keep the CSS specificity as low and flat as possible.

I hope this helps!

Marked as helpful

1

@jisazamp

Posted

@vanzasetia Hi Vanza,

Thank you very much for all the recommendations, they have been really helpful, and I was also able to learn about some concepts that I didn't know. I think that's what this is all about, to be learning, and I was already able to implement some of the recommendations you made.

P.S. I took a look at your profile, I like your approach that getting feedback and helping the community is the best way to learn. Maybe when I am better I can take this same approach.

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