Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive web and mobile news homepage main challenge

@rafiputra2000

Desktop design screenshot for the News homepage coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


any feedback please !!, i have completed this challenge but one thing i haven't completed is a blur background when sidebar clicked, if you read this please give me a solution, thank you

Community feedback

@Karrar-Hussein

Posted

The best way to approach this is to create an overlay with position fixed and size it so that it covers the whole screen and give it a black background color with an alpha value and set its display property to "none", then you can attach an event listener to toggle the overlay display property whenever you click the nav button.

also, don't forget to give the sidebar a z-index higher than the overlay

Marked as helpful

1

@rafiputra2000

Posted

@Karrar-Hussein thank you for feeadback sir, will be fixed soon

0
Kentaro 450

@bap-ssbm

Posted

Hello! For the blurred background I suggest using box-shadow property on your .sideNav class using a black color with some transparency such as rgba(0, 0, 0, 0.5); for example.

hope this helps! :)

Marked as helpful

1

@rafiputra2000

Posted

@bap-ssbm thank you for feedback, i will try for your solution 👍

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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