Submitted almost 2 years ago
Responsive Newshomepage using CSS grid and Flexbox
@DavidOG03
Design comparison
SolutionDesign
Community feedback
- @VCaramesPosted almost 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
- The logo should be outside ⚠️ the
nav
.
- The logo and
nav
should be wrapped inside ⚠️ aheader
element.
- The
nav
toggle button should be built ⚠️ using abutton
element and it should have anaria-label
,aria-expanded
andaria-control
.
- The elements that are meant to be interactive are not⚠️. I suggest looking at the "active-states" design file to see which elements are meant to be interactive so that they can be built using the
anchor
element.
More Info:📚
- The main article should be wrapped ⚠️ in an
article
element.
- The main article requires the use of two illustrations 🎑 at different breakpoints ⚠️. The
picture
element will facilitate this.
Here is how it looks like implemented: EXAMPLE
Syntax:
<picture> <source media="(min-width: )" srcset=""> <img src="" alt=""> </picture>
More Info:📚
https://www.w3schools.com/html/html_images_picture.asp
- The "The Bright Future of Web 3.0?" Is not an
h1
heading ❌, it is another article heading. It should be anh2
heading ✅ and there should be a visibly hiddenh1
in the site.
- The button was created with the incorrect element ❌. When users click on the button they should directed to a different part of your site; the
anchor
element will allow this to happen.
More Info:📚
- The "new" section should be built using an
unordered list
element ⚠️ and have anaria-label
.
- The bottom section should be built ⚠️ using an
ordered list
and have a visually hiddenh2
heading.
- Numbers are never ❌ headings.
- ⚠️ Always use
variables
, at minimum, for you colors. As it help keep things organized and easier to maintain.
More Info: 📚
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! 👾
Marked as helpful1 - The logo should be outside ⚠️ the
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