Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 30 days ago

QR code component using HTML and CSS

Sarah Williams•10
@adesolasarah
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’m proud that I was able to complete the challenge using only HTML and CSS and make the layout match the design as closely as possible. Next time, I would work on making the project more responsive across different screen sizes and add accessibility improvements like better alt text and semantic structure.

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

One challenge I faced was centering the component both vertically and horizontally on the page. I overcame this by using Flexbox with justify-content and align-items properties. Another challenge was learning how to import and apply Google Fonts properly, which I resolved by reviewing Google Fonts documentation and adding the link in the <head>.

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

I would like feedback on:

My use of Flexbox, is there a more efficient way to center the component?

Best practices for structuring small projects like this (file organization, naming conventions).

How I can make this design more responsive without adding unnecessary complexity.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Sarah Williams's solution.

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

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