Design comparison
Solution retrospective
this is my second challange i couldnt get my repository working for the first one, but i figured it out. im welcome to any and all feed back to help me get better. also i didnt know how to add the color to the image
Community feedback
- @AdrianoEscarabotePosted almost 2 years ago
Hi zavier, 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%); and position mix-blend-mode: multiply and opacity: 80% on the image or apply 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 is explaining these effects with mix-blend-mode: click here
Consider using rem for font size .If your web content font sizes are set in absolute units, such as pixels, the user will not be able to re-size the text or control the font size based on their needs. Relative units “stretch” according to the screen size and/or user’s preferred font size, and work on a large range of devices.
if you want to continue coding with px, you can download a very useful extension in vscode, it converts px to rem! link -> px to rem
The rest is great!
I hope it helps... 👍
0 - @SinisaVukmirovicPosted almost 2 years ago
Hello!
About adding color to the image, there are many ways, but probably the easiest and most beginner friendly, is to add and extra DIV element, on top of the image, covering the image entirely, setting its background color to that "violet" that style guide provided and using "opacity" property to make it semi-transparent, to achieve the effect from the design.
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