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

QR-code Scanner Challenge

@shiwanikandpal

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@RegexRiddler

Posted

Well done! I like your use of Flexbox to center the card vertically and horizontally.

There are however a few small things I would like to point out:

  1. You have forgotten to limit the card width to 320px on larger screens. A simple max-width: 320px; on your card class would do it.
  2. Since the size of the card is the same on both small and large screens there is no need for the @media(width: 375px) breakpoint. Again just limit the size of the card.
  3. The first div with a class of attribution inside the body element is redundant and you could remove it and move all of its CSS styles to the body element instead.

Marked as helpful

1

@shiwanikandpal

Posted

@RegexRiddler Thank you for your feedback! I appreciate your positive remarks and the constructive suggestions. I'll make sure to implement the changes you've mentioned to improve the responsiveness and efficiency of the code. Your insights are valuable to me, and I'm grateful for them.

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