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 Qr Code Component using HTML and CSS

@ChibuzorIsaac

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Creating the component to be responsive across all devices was very Challenging. I will appreciate feedbacks on easier ways to do it, thanks

Community feedback

Lucas 👾 104,420

@correlucas

Posted

Hello Chibuzor Isaac! Congratulations for your first challenge completion!

I saw your solution and I've some tips to give you if I could:

1.Body align the component using flexbox is better than use margins, apply these properties to align the body and them the card component. Flexbox to allow the flex properties that will align vertically your card align-items: center; justify-content: center; and height: 100vh; to display 100% of the viewport height (full screen).

body { display: flex; height: 100vh; align-items: center; justify-content: center; }

2.You've set two width properties for the same container look.container {width: 1200px; max-width: 100%;}. To fix that use only max-width and try a precise value like max-width: 340px to keep the card with a proper size. No need of margin: 0 auto; since the aligment comes from the body.

.content { max-width: 340px; background-color: white; padding: 30px; border-radius: 20px; }

3.The background color is slight different from the reference, try a value like background-color: hsl(212, 45%, 85%);

Try that and say me if works bro, happy coding and I hope it helps you!

Marked as helpful

1

@ChibuzorIsaac

Posted

@correlucas thanks Lucas! I really appreciate the feedback. Been away for a while now but now I'm back to tackle these challenges head on!

Happy coding!

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