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 card Responsive

Lauryne• 260

@lauryne921

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

Hassia Issah• 50,810

@Hassiai

Posted

wrap <div class="attribution"> in the footer tag to fix the accessibility issue.

For the color of the image, Add a background-color of soft violet, background-blend-mode of multiply and opacity of 0.8 to .photo.

.photo{
background-image: url();
background-size: cover;
background-color: hsl()
background-blend-mode: multiply;
opacity: 0.8;
}

To center . wrapper on the page using flexbox, replace the height in the main with min-height:100vh.

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

Marked as helpful

1

Lauryne• 260

@lauryne921

Posted

@Hassiai Thank you for your advice, it's very useful, I'll try this.

Once again, thank you, have a nice day !

Happy Coding

1
Lauryne• 260

@lauryne921

Posted

I don't know how to put a violet filter on the photo, could someone tell me how to do this ? 🙂

0

Max• 60

@maxp421

Posted

@lauryne921 What i did was that I added a linear gradient to the background image. You could also use an ::after selector for an overlay but in this particular case i found the linear gradient overlay solution the easiest.

background-image: linear-gradient(hsla(277, 64%, 61%, 0.8), hsla(277, 64%, 61%, 0.8)), url("../images/image-header-desktop.jpg");
background-blend-mode: multiply;

For my solution the missing piece to make the colours just like in the original design was background-blend-mode: multiply; but Hassia pointed that out for me.

Marked as helpful

1
Lauryne• 260

@lauryne921

Posted

@maxp421 Thank you for your answer, I'll try what Hassia said and I'll also try your solution.

Thank your for taking time to answer me !

Have a nice day

0
Lauryne• 260

@lauryne921

Posted

@maxp421 Thank you for your answer, I'll try what Hassia said and I'll also try your solution.

Thank your for taking time to answer me !

Have a nice day

0
Lauryne• 260

@lauryne921

Posted

@maxp421 Thank you for your answer, I'll try what Hassia said and I'll also try your solution.

Thank your for taking time to answer me !

Have a nice day

0
Lauryne• 260

@lauryne921

Posted

@maxp421 Thank you for your answer, I'll try what Hassia said and I'll also try your solution.

Thank your for taking time to answer me !

Have a nice day

0
Lauryne• 260

@lauryne921

Posted

@maxp421 Thank you for your answer, I'll try what Hassia said and I'll also try your solution.

Thank your for taking time to answer me !

Have a nice day

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