Newspaper Landing Page Using CSS Grid Areas

Solution retrospective
What I found difficult while building this project was most with the images, I had a tough time making them responsive, so I would like to ask my fellow developers for the best way to make images responsive (pinching them in and out).
The areas of my code I'm most unsure of are mostly my JavaScript section more especially because I'm new to it, but here it is below:
const CloseMenu = document.querySelector('.close-menu-sect'); const NavWrap = document.querySelector('.nav-wrapper');
CloseMenu.addEventListener('click', () => { NavWrap.classList.toggle('hide'); })
So my questions are :
- What are the best ways of making and image responsive?
- Is there an easier way to write JavaScript code other than the way I wrote it?
- Is there any way to write CSS code more easily and efficiently?
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Blac_Koder's solution.
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