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 news homepage using flexbox, grid, and JavaScript

@elizabethrsotomayor

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


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

@catherineisonline

Posted

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 helpful

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