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(sass, grid y flexbox)

#sass/scss#vanilla-extract
CoreJS 70

@CopperMX

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

@georgebleyer

Posted

Hello,

Congratulations on completing this challenge. Here are some tips on how you can make the image purple:

In the HTML

<picture></picture>

In the CSS

picture{
     background: url("../images/image-header-mobile.jpg");
     background-color: hsl(277, 64%, 61%);
     background-blend-mode: multiply;
}

I hope it helped.

0
Hassia Issah 50,810

@Hassiai

Posted

For the color of the image, give .card-preview a background-color of soft violet and give the img a width and height of 100%, mix-blend-mode: multiply, object-fit: cover and opacity: 0.8

.card__previes{
background-color: hsl();
}
img{
width: 100%;
height: 100%;
object-fit: cover;
mix-blend-mode: multiply;
opacity: 0.8;
}

Use the colors that were given in the styleguide.md found in the zip folder you downloaded.

Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here

Hope am helpful.

Well done for completing this challenge. 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