Responsive news homepage using flexbox, grid, and JavaScript
Design comparison
Solution retrospective
What I found challenging about building this project was keeping track of flex containers inside of the overall grid layout. I had some issues with things overlapping or spilling over into other columns so I used grid-column-start
and grid-column-end
to keep the elements in line, along with setting width
where necessary. The hamburger menu was done incrementally and used the CSS transition
property to slide in from the right side when on mobile. The areas I am not sure about are the @media
queries. I initially used a min-width
of 1200px for the desktop but then changed it to accommodate smaller desktop screens by making it 1024px. Another thing I am not sure about is whether the entire site is meant to fit on one whole desktop screen (without having to scroll) and whether the padding/margins I have added are appropriate. This will be the first project I've used JavaScript on my own so please excuse ugly code! Thanks for looking!
Community feedback
- @catherineisonlinePosted almost 2 years ago
Nice! 🙌🏻
I would also add some transitions for active states (when colors change on hover). It creates more interactivity and makes the project looks cooler. Active states can be done on buttons, links, titles which act like links or anything else, you choose.
You can read more about it here, in case you haven’t done much of it: https://www.w3schools.com/css/css3_transitions.asp
IF THIS WAS HELPFUL PLEASE MARK IT AS HELPFUL 🤩
Marked as helpful1
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