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

Basic Html/Css with Sass and some Flexbox + Css grid

Francisco 70

@Souzadk

Desktop design screenshot for the Clipboard landing page coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Community feedback

P
Matt Studdert 13,611

@mattstuddert

Posted

Great work on this Francisco! 👍

Here are a few pointers after having a look at your code:

  • Always make sure you add alt attributes to any img elements in your HTML. Without it, screen readers will read out the file path instead of a description of the image provided by the alt text.
  • In your next project, I'd recommend having a go at using min-width media queries instead of max-width. Using min-width ensures mobile users load in the smallest possible CSS file. Whereas they will load in everything if max-width queries are used.
  • At the moment you're not swapping the main background-image for mobile users. I'd always recommend doing that wherever possible to save the mobile user from having to download larger image files.
  • You've done a great job using HTML5 semantic markup. Keep up the great work!

I hope those tips help! 🙂

1

P
Matt Studdert 13,611

@mattstuddert

Posted

Yeah, exactly. Just add a new declaration for the background-image in a media query that points to the mobile version of the image.

1
Francisco 70

@Souzadk

Posted

Thanks man! Actually didnt include alt text, just because im lazy. But the media queries option, is pretty smart.

changing the background image for mobile users is just a case of doing it in a media query im guessing?

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