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
Request path contains unescaped characters
Not Found
Not Found
Not Found

Submitted

QR Code Component using CSS Flexbox

AnanyaDeveloperβ€’ 10

@AnanyaDeveloper

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


-What changes would you suggest? -What is it that I must change in the code to make it look more professional?

Community feedback

Aimal Khanβ€’ 2,260

@Aimal-125

Posted

In your css code, increase the height of .container class to 120 or 150vh by using media query with max-height: 500px; So that card will be visible on screens with small heights. On my j3 mobile device .container height is short.

Marked as helpful

1
Boots πŸ˜Ίβ€’ 1,590

@adityaphasu

Posted

Hey there! Nice job completing the challenge!πŸ™ŒπŸ»

🎯 Some things I would like to suggest:

  • Instead of using div for the container ,you should use the <main> tag like this:
<main class="container">
<div class="card">
<img src="./images/image-qr-code.png" alt="QR code">
<p id = "important">Improve your front-end skills by building projects</p>
<p id = "general">Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
</div>
</main>
  • <main> provides a clear and meaningful structure to your HTML and it helps assistive technologies and search engines understand the purpose and importance of the content within it.

  • Instead of using absolute units like px for font size, you should use relative units like rem for it as they are better for scalable layouts. You can read more about it here!

Overall your solution looks quite nice!! πŸ™‚

Happy coding!πŸ•ΊπŸ»

Marked as helpful

1

@aleafernandes

Posted

You can review your container proportions and check the text color used on the "improve your front end" text (try this color: hsl(218, 44%, 22%))

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