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 component using Flexbox

@allenJcodes

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


How can I improve my work? Please leave some comments.

Community feedback

Lucas 👾 104,560

@correlucas

Posted

Hello Allen, congratulations for your solution!

Answering your question:

You can improve you code using semantics tags to replace the divs, for example using <main> to replace the div, reduce your code eliminating the unnecessary divs this challenge requires only one div to hold all content (h1, p and Img). To save time you can use variables to work with the colors. Remember to replace the h3 with h1, and to follow a hierarchy sequence for headings using the sequence h1, h2...

Hope this helps, happy coding!

1
Stacey 30

@staceysav

Posted

Hi Allen! The page with the QR-code looks excellent! The code is readable and short, it is quite easy to understand what's going on there. I also liked that you used variables. I have no experience in coding, so I can't give you useful feedback. I can share a comment that I got myself: you could wrap the card with the <main> tag to improve navigation for users and engines. This will indicate that the card is the main content of the page. Keep posting your solutions :)

1
Illyaas 680

@Illyaas4Show

Posted

Hi, welcome to the community

This is an amazing solution you've got here. It is almost identical to the design, well done! All you need to do is reduce the width of the card and it will be awesome!

Hope this helps, Happy coding!

1

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