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- HTML, CSS, Flexbox

@AdrielMurray

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


Measuring the length of the box and figuring out how to center it on the screen properly.

Community feedback

@javascriptooo

Posted

Hi there!

For accessibility issues, you always need one landmark. Here is some documentation

I suggest using the <main> as it is required. You can surround the entire content within the body tag.

To center your card vertically, add the height: 100vh; the .container css to:

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

then remove the margin-top: 100px from your qr-code css class.

This will center your card better! Nice Work!

Hope that helps!

Steven

Marked as helpful

0
Lucas 👾 104,420

@correlucas

Posted

Hello Adriel, congratulations for your solution!

I saw that you comment that was hard to guess the elements sizes. My tip for you is that you use Figma and follow the reference image files. Note that in Figma you can also create a rectangle and measure the component elements to guess the possible width for each one. This helps you to have an idea of the elements dimension, about fonts is something you've to play with values to match.

But there's a lots of useful information inside the styleguide.md file. Its something to check before each challenge.

Hope it helps and 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