News homepage with HTML5, SCSS, Flexbox, Grid and Parcel
Design comparison
Solution retrospective
I experienced this project as educational because of the following
- I learned how to implement progressive enhancement for a (mobile) navigation
- How to create a complex layout with Grid
Asking for feedback
Despite of this I do want to ask feedback about the following due to uncertainty of myself
- Is the BEM naming convention used correctly?
- Is the semantic HTML markup I used correctly?
The problem I stumbled upon
The only real problem I faced was that I could not disable scrolling when the mobile navigation was open. This caused the layout to shift slightly to the right on opening and to the left when closing. The cause of this was because of the scrollbar disappearing and appearing.
After spending some time and not being able to get this fixed, I decided to use position: fixed
instead of absolute
. It does the job for now, but is not exactly how I wanted it to be.
If there is someone who does know how to prevent scrolling and not causing this shift to the right and left, please let me know. I'm quite curious how this problem can be solved.
Community feedback
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