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-COMPONENT using Responsive CSS and HTML

Kumar Sandeepβ€’ 10

@sand-storm-17

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


Is there anything i can improve upon? What resources would help me do a better job at doing this?

Community feedback

Hatem Henchirβ€’ 530

@hatemhenchir

Posted

Hey Kumar Sandeep, how are you ? I really liked the result of your project, but I have some tips that I think you will enjoy:

  • It's a bad idea to center a div or a container using position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);

  • to center the card, you can use flex like this : body{display: flex; justify-content: center; align-items: center; height: 100vh;} or you can use a grid like this : body{display:grid;align-items: center;height:100vh}

  • the color of the title is color:hsl(220, 15%, 55%);

The rest is great!

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

Happy Coding! πŸ‚πŸ¦ƒ

Marked as helpful

2
Willie Santosβ€’ 60

@WillieSantos

Posted

Hi!

In the original design, a rounded edge is noticeable. Try to include a border-radius in the project, it will look more like it.

1
Whale Well Wellβ€’ 50

@WhaleWellWell

Posted

Hi! I have a tip for you:

  • Make sure all images have a alt attribute. This helps screen readers and should be an explanation of you image. For example, I might do:
<img **alt="QR Code to frondendmentor.io"** class="qr-image" src="/images/image-qr-code.png">

This explains what the image is there for.

Hope this helped, WhaleWellWell

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