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

Wasif Ali 70

@devwasif

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

@VCarames

Posted

Hey there! 👋 Here are some suggestions to help improve your code:

  • To not only improve your HTML’s code but to identify the main content of you page, you will want to wrap your entire component inside the Main element.

  • To properly center your content to your page, you will want to add the following to your Body Element (this method uses CSS Grid):

body {
    min-height: 100vh;
    display: grid;
    place-content: center;
}
  • Reduce the border-radius to better match the FEM design.

  • Change width to max-width: 100% in your image to make it responsive.

  • A Media Query is not needed for this challenge. Using responsive properties will do in making your content responsive.

If you have any questions or need further clarification, feel free to reach out to me.

Happy Coding! 🍂🦃

1

Wasif Ali 70

@devwasif

Posted

@vcarames Hi,

Thanks for highlighting the points, I will consider them and fix them.

0
Wasif Ali 70

@devwasif

Posted

@vcarames Hi,

Check it out, I did solve responsive issue and improve code.

0

@VCarames

Posted

@devwasif

Looks good! Great job!

Don't forget to add the main element. You can delete this <div class="container">, it's not necessary.

You can then change this <div class="card"> to a main element instead.

I forgot to add it in the previous comment but you will want to update the Alt Tag for the NFT image; it needs to tell screen reader users what it is and where it will take them to when they scan it.

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