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 Landing Page using CSS

@utkarshambetkar12

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 are you most proud of, and what would you do differently next time?

This is a very basic landing page. So not proud of it that much but definitely will take up more challenges and work hard to make better frontends

What challenges did you encounter, and how did you overcome them?

The only problem I currently face is to judge the accurate padding and font size. I overcame them by taking my best judgment.

What specific areas of your project would you like help with?

For this particular challenge, No

Community feedback

@0xabdulkhaliq

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have a suggestion regarding your code that I believe will be of great interest to you.

BAD WAY OF ADDING QR iMAGE 📸:

  • Since this component involves scanning the QR code, the image is not a decoration, so it must want to added via <img> element and not using a div element's background image.
  • So replace the div element with an img element which has source of /images/image-qr-code.png and alt of QR code to frontendmentor.io

Example:

<img src="/images/image-qr-code.png" alt="QR code to frontendmentor.io">

Now remove the rules you've written for .qr-code-square,

.qr-code-square {
  border-radius: 8px;
  width: 288px;
  height: 288px;
  background-image: url("images/image-qr-code.png");
  background-size: 288px;
}

Instead you can add this,

img {
  border-radius: 8px;
  width: 288px;
  height: 288px;
}

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

0
Bhuvan 40

@bhuvandev16

Posted

I think you have forgot to add the paragraph color

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