Design comparison
Solution retrospective
I did my best for now in this challenge. Even then if there's some mistake, do let me know so that I can polish my skills and if there's another method then also tell me.
Community feedback
- @correlucasPosted about 2 years ago
πΎHello Anshul,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:
To get closer to
overlay effect
on the photo as the Figma Design its better you usemix-blend-mode
. 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@kriShnanshu-sainiPosted about 2 years ago@correlucas thanks for the feedback sir β€οΈβοΈ. I was unknown to this property. I'll remember from the now onwards.
1 - @VCaramesPosted about 2 years ago
Hey @kriShnanshu-saini, some suggestions to improve you code:
-
You have to go back and recode this.Your layout is needs work.
-
The Background Image Property is only to be used on decorative images. NOT images that add value and serve a purpose. For this challenge you want to use the Picture Element. By using this element not are able to use different size images, you can also save on bandwidth, meaning your content loads faster.
-
By using this element not are able to use different size images, you can also save on bandwidth, meaning your content loads faster.
Syntax:
<picture> <source media="(min-width: )" srcset=""> <img src="" alt=""> </picture>
Source:
https://www.w3schools.com/html/html_images_picture.asp
https://web.dev/learn/design/picture-element/
- Your image isnt responsive, here's a link to show how to that:
https://web.dev/learn/design/responsive-images/
-
The statics shouldn't be wrapped in a section element, instead they need be created using an Unordered Lists.
-
Your CSS Reset is extremely bare. You want to add more to it.
Here are few CSS Resets that you can look at and use to create your own CSS Reset or just copy and paste one that already prebuilt.
https://www.joshwcomeau.com/css/custom-css-reset/
https://meyerweb.com/eric/tools/css/reset/
http://html5doctor.com/html-5-reset-stylesheet/
Happy Coding!
Marked as helpful0@kriShnanshu-sainiPosted about 2 years ago@vcarames Thanks for the feedback sir. I'll go through these all. I needed to work on my CSS. I'll not disappoint you from next oneπ.
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