Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 8 months ago

QR component with HMTL and CSS

Luis Gonzalez•70
@luisgonzalez2001
A solution to the QR code component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I feel good about these first steps I'm taking in web development, I hope to improve over time to be able to build better things.

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

In this first project I did not have any difficulties due to the simplicity of the project. I hope in the future to find more challenges in more robust and interesting projects.

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

None.

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Svitlana Suslenkova•5,380
    @SvitlanaSuslenkova
    Posted 8 months ago

    body { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; } Try this to align(top-bottom) and justify(left-right) your project to the center. It applies to the parent component(body), don't forget about min-height. You can use grid instead of flex too(with some changes). Hope you found this comment helpful :)

    Marked as helpful
  • decorator-factory•40
    @decorator-factory
    Posted 8 months ago

    This looks good. I have a few nitpicks if you want to be "pixel perfect" with the design:

    • the card is missing a slight shadow
    • the card is a bit too large, and the text should be slightly narrower than the image. I think the text looks better when it is more "clumped together", but that's subjective
    Marked as helpful

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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub