Stats Preview Card | Mobile-First, SASS, Grid, Flex, BG Blend
Design comparison
Solution retrospective
Hi everyone! Please let me know if there's anything I overlooked in my markup and styling.
If anyone has any feedback on how to get the color+image combination to look exactly like the design, please let me know.
I decided to use background-blend-mode: multiply
for the magenta color on the image. I tried another method, which was using pseudo-elements and position: absolute
, and opacity on the color. However, I found using the background-blend-mode
made it look as close as possible to the design images. 🤔 Advice is very much appreciated!
Community feedback
- @vanzasetiaPosted almost 3 years ago
Hi There! 👋
Congratulations on finishing this challenge! 👏 Nice work on this challenge! 🙌
About the purple overlay on the image, I was using
mix-blend-mode: multiply
(which was giving the same result asbackground-blend-mode: multiply;
) and I have the same opinion about it, it's the closest look that you can get. I couldn't figure out how to make it exactly the same as the design. 😆In my opinion, as long as it looks similar then that's okay. There's no need to overthink it. 😁
One thing that I would suggest to do is to change all the
h3
top
elements. The stats number should not be a heading because it's a heading for what? The content below it is too small. You might find it helpful if you think of a heading as a title on a document.Also, next time, don't skip heading level if you are planning to use other heading elements like
h2
,h3
, etc. Heading tags can be used by users of assistive technology to navigate the website. If headings are not in a logical order, those users might get confused.I hope this information is useful! Keep up the excellent work! 👍
Marked as helpful1@sheronimoPosted almost 3 years ago@vanzasetia Hi Vanza,
Thanks for the advice especially about not overthinking, I have a tendency to do so when converting mockups. 😅
I really appreciate the tips on headings, to interpret them as being a "title" of something instead of just being "large bold text".
1
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