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 React.js QR Code Challenge

#bootstrap#react

@christinareanna

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


I found it tricky to get the background to be the same color, so I applied it to my App and the body. The mobile width that was given confused me because I like to start with 300px, but it said 375px, so I made the width be able to fit a 300px wide phone. I'm not sure if I took the best practices when doing this, nor do I know if it's accessibility friendly.

Community feedback

@MelvinAguilar

Posted

Hello there 👋. Good job on completing the challenge !

I have some suggestions about your code that might interest you.

  • It's fantastic that you started with 300px; the solution dimensions (345 and 1440px) are merely to choose the resolution of the image that appears as preview. The minimal width recommended for any webpage without losing content or causing a horizontal scrollbar is 320px.
  • Use semantic elements such as <main> and <footer> to improve accessibility and organization of your page.
  • Since this component involves scanning the QR code, the image is not a decoration, so it must have an alt attribute. The alt attribute should explain its purpose. e.g. QR code to frontendmentor.io

I hope you find it useful! 😄 Above all, the solution you submitted is great!

Happy coding!

Marked as helpful

0
Abdulelah 540

@Abdulelah-Abacar

Posted

Hi, Christina I hope that you had a great time while doing this challenge. I have some note on the code, At first it will be good if you take care about "block Element" width because by default they take the full width so when you set the width to be 100% it may cause problems later. And I hope that make sense for you ^_^

Marked as helpful

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