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 responsive page, made with Vanilla CSS and HTML.

J J Williamsβ€’ 350

@Willedwest

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

Adrianoβ€’ 34,090

@AdrianoEscarabote

Posted

Hi J J Williams, how are you? I really liked the result of your project, but I have some tips that I think you will enjoy:

To get closer to the photo overlay effect, you'd better use mix-blend mode. All you need is the div under the image with this background-color: hsl(277, 64%, 61%); position mix-blend-mode: multiply; and opacity: 80%; on the image or apply the image to activate the overlay by blending the image with the div's color. See the code below:

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

You can read this content which explains these effects with mix-blend-mode: click here

Add padding to the body, so that the content in lower resolutions doesn't hit the edge of the screen!

The rest is great!

I hope it helps... πŸ‘

0

@VCarames

Posted

Hey there! πŸ‘‹ Here are some suggestions to help improve your code:

  • The only heading in this component is the β€œGet insights that help your business grow” everything else will be wrapped in a Paragraph element.
  • The statistics at the bottom are a list, so it should be built using an unordered List element.
  • This challenges requires the use of two images πŸŽ‘ for different breakpoints. The Picture element will facilitate this.

Here is an example of how it works: EXAMPLE

Syntax:

  <picture>
    <source media="(min-width: )" srcset="">
    <img src="" alt="">
  </picture>

More Info:

https://www.w3schools.com/html/html_images_picture.asp

https://web.dev/learn/design/picture-element/

  • To get the image to look like the FEM example, you are going to want to use the Mix-Blend-Mode along with the Multiply value and include a Opacity with the value of 0.8.

Code:

img {
  opacity: 0.8;
  mix-blend-mode: multiply;
}

If you have any questions or need further clarification, feel free to reach out to me.

Happy Coding! πŸ‚πŸ¦ƒ

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