Stats preview card responsive page, made with Vanilla CSS and HTML.
Design comparison
Community feedback
- @AdrianoEscarabotePosted almost 2 years ago
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%);
positionmix-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 - @VCaramesPosted almost 2 years ago
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 theMultiply
value and include aOpacity
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 - The only heading in this component is the βGet insights that help your business growβ everything else will be wrapped in a
Please log in to post a comment
Log in with GitHubJoin 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