Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 9 months ago

Responsive QR Code Component using Flexbox

angular, django, react, flutter
Sumela25•60
@Sumela25
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 of successfully implementing a responsive QR code component using CSS Flexbox and ensuring the layout adapts well to different screen sizes. Next time, I would explore CSS Grid or SCSS to improve styling efficiency and maintainability.

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

One challenge I faced was making sure the component was perfectly centered on the page. Initially, I struggled with alignment, but I resolved it by using display: flex along with justify-content: center and align-items: center. Another issue was GitHub Pages not displaying my project at first (404 error) because my index.html file was inside a subfolder. I fixed this by moving it to the root directory of my repository.

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

I'd love feedback on:

-How to improve accessibility (e.g., better alt text usage for images).

-CSS best practices for structuring small components like this.

-Any improvements to responsiveness for smaller or larger screens.

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 Sumela25'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
  • Use cases

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