Not Found
Not Found
Not Found
Not Found
Not Found
Request failed with status code 502
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 - TailwindCSS

Florent Vandroyโ€ข 510

@florent6001

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

๐Ÿ‘พHello Florent, congratulations for your solution!

You solution component seems great, you need only to fix 3 issues related to the design:

1.The correct setup for the overlay effect to match the color is using low opacity and mix-blend-mode. In this case you've to add to the <picture> this code: picture {mix-blend-mode: multiply; opacity: .7'

2.The border is too rounded, try to use a value around border-radius: 12px; for the card and the image.

3.Use display: block; and max-width: 100%; for the image, currently the image isn't scaling with the correct proportions, if you've set a fixed height you should delete it in order to let the image scale properly.

Hope it helps and happy coding!

Marked as helpful

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