Design comparison
Solution retrospective
A simple or correct way to give that color to that image ? :v7
Community feedback
- @correlucasPosted about 2 years ago
๐พHello @py-rod, congratulations on your first solution!
Nice code and nice solution! You did a good job here putting everything together. Iโve some suggestions for you:
1.Add the website favicon inserting the svg image inside the
<head>
.<link rel="icon" type="image/x-icon" href="./images/favicon-32x32.png">
2.Use units as
rem
orem
instead ofpx
to improve your performance by resizing fonts between different screens and devices. These units are better to make your website more accessible. REM does not just apply to font size, but all sizes as well.3.
IMPROVE YOUR WORKFLOW
using VSCODE you can code your whole page usingpx
and then in the end use a plugin called px to rem here's the link โ https://marketplace.visualstudio.com/items?itemName=sainoba.px-to-rem to do the automatic conversion or use this website https://pixelsconverter.com/px-to-rem4.Instead of using a long code for the IMAGE OVERLAY. You can do it using a shortcut with a few lines of code
mix-blend-mode
, that in my opinion is a better way and makes the color tone really close to the challenge design. All you need is thediv
under theimage
with thisbackground-color: hsl(277, 64%, 61%);
and applymix-blend-mode: multiply
andopacity: 80%
on theimg
orpicture
selector to activate the overlay blending the image with the color of the div. See the code bellow:img { mix-blend-mode: multiply; opacity: 80%; }
โ๏ธ I hope this helps you and happy coding!
Marked as helpful1@py-rodPosted about 2 years ago@correlucas Thanks for comment. And right now I see that extension :)
0
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