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

CodeWithSubaruβ€’ 120

@CodeWithSubaru

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


Hi Guys! Another component I've been finished. Please let me know if there is something wrong with my code. TIA

Community feedback

Lucas πŸ‘Ύβ€’ 104,420

@correlucas

Posted

πŸ‘ΎHello @CodeWithSubaru, congratulations for your new solution!

Your component is great, you can improve it by replacing the main div with a semantic tag, this case you can use <main> or <article>. To make the container and the image responsive you need to max-width: 100% in place of widthto allow the container to contract, also use object-fit: cover to make the image crop while scaling with the container.

You need to use mix-blend-mode to make this color blend between the image and the background-color of the column blending image and color. See the steps below to apply to the img or picture selector:

img {
mix-blend-mode: multiply;
opacity: 75%;}

πŸ‘‹ I hope this helps you and happy coding!

Marked as helpful

1

CodeWithSubaruβ€’ 120

@CodeWithSubaru

Posted

@correlucas Thank you for your wonderful feedback sir!

0
Matheus Dumontβ€’ 390

@Dumont19

Posted

Great solution. If you don't mind, there is an improvement that can be made.

To let the image with the overlay effect, you can use the mix-blend-mode property of css with the multiply value and add the filter property or some other that arrives at a similar result.

Another thing, your solution is not adapted to the screen of smaller devices such as smartphones.

Marked as helpful

1

CodeWithSubaruβ€’ 120

@CodeWithSubaru

Posted

@Dumont19 Thank you for your feedback sir!

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