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

News homepage with GRID / FlexBox / JS

sztosiur 110

@sztosiur

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


My first project when I created the mobile view first and after that made rest of the views.

I'll be grateful for every feedback. :)

Community feedback

@VCarames

Posted

Hey there! 👋 Here are some suggestions to help improve your code:

  • Remove<div class="wrapper"> as it is unnecessary.
  • The "navigation toggle" should be inside the nav element and be created with the button element.
  • ⚠️ The "The Bright Future of Web 3.0?" should be an h2 heading, not an h1.
  • Check the "active-states" design file (provided on the FEM files) to which text elements need created with the anchor element.
  • Numbers are not headings ❌.
  • Your CSS Reset is being underutilized. 😢 To fully maximize 💯 it, you will want to add more to it. Here are some examples that you can freely use 😁: Josh Comeau Reset Eric Meyer Reset
  • For improved accessibility 📈 for your content, it is best practice ✅ to use em for media-queries. Using this unit gives users the ability to scale elements up and down, relative to a set value.

If you have any questions or need further clarification, feel free to reach out to me.

Happy Coding! 🎆🎊🪅

Marked as helpful

0

sztosiur 110

@sztosiur

Posted

@vcarames Again thanks for your help and feedback.

About <div class= "wrapper">: I made it to keep the site content not too wide on a big screens. It sets the max-width: 1250px; and it centers the content horizontally. Do you want me to make content spread all over the viewport width?

1

@VCarames

Posted

@sztosiur

Glad I could help! 😁

That is the incorrect way of accomplishing that.

That’s what the header, main and <section class="section-3"> are for. You apply the CSS to them so the content is centered to the page.

Marked as helpful

0
sztosiur 110

@sztosiur

Posted

@vcarames ok, I'll fix that. Thanks again. :)

0

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