Design comparison
Solution retrospective
This is my first page solution in a while.
I've done all the components but somehow I don't feel comfortable enough to tackle the landing pages yet.
That's why I played with this. Nothing serious, I was aiming for as close to the design as possible. That's why my CSS is all over the place.
These days I'll do it again, this time normally and maybe I'll finally do mobile first.
Community feedback
- @wcyin9Posted 7 months ago
Hello there, great job on finishing the challenge! It looks incredible, keep up the great work!
There are two areas I would like to comment on:
-
There's a lack of
:hover
state on the buttons. This may be due to lacking access to the figma design, so it's absolutely not an issue, and is easily fixable. -
The footer overlay looks different from the design given. This is due to the fact that the footer image lacks opacity changes, and you used an overlay for the blue color. There are multiple approaches that are valid for the footer. The approach I'll give you below is one of many, and it can just serve as an example/reference point:
I used
picture
tag withsource
tag in html for responsive purposes, as it works with media query to automatically change images upon different screen sizes. It eliminates the need to add extra code in CSS.<picture> for laptop dimensions: <source srcset="assets/desktop/image-footer.jpg" media="(min-width: 850px)"> for tablet dimensions: <source srcset="assets/tablet/image-footer.jpg" media="(min-width: 635px)"> for mobile dimensions using mobile first approach: <img class="footerbg" src="assets/mobile/image-footer.jpg" alt="chanel perfume"> </picture>
Next, in CSS I targeted the
.footerbg
class that I gave to the image to give it an opacity of 0.1045, which was given in the Figma file, andposition: absolute;
. Last, I targeted thefooter
selector in CSS to give it abackground-color: ##4D96A9 ;
. This will make the result look exactly like the one given in the design. The reason this works is because the image itself is on top of the footer. By giving it an opacity of 0.1045, it will let the blue color below it seep through.Hope this helped!
Marked as helpful0 -
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