QR Code Component using CSS Flex

Solution retrospective
I’m proud of creating clean, semantic, and accessible HTML, especially with elements like ,
, and ARIA labels. The skip link and responsive design make the project user-friendly, and I love how the pulse animation adds a modern touch. Organizing CSS with variables also made my styles reusable and professional.
Next time, I’d focus more on optimizing the design for larger screens and testing accessibility with screen readers. I’d also experiment with more interactivity, like hover effects or JavaScript, and simplify my CSS for even better maintainability.
What challenges did you encounter, and how did you overcome them? Challenges I EncounteredOne of the challenges I faced was positioning the card in the exact center of the screen.
I solved this by using Flexbox on the `` element, setting display: flex
, justify-content: center
, and align-items: center
. This allowed me to align the card both vertically and horizontally with minimal code. Additionally, I added min-height: 100vh
to ensure the body always covered the full viewport height, making the centering consistent across different devices.
This approach was simple and effective, and I’ll definitely use it again in future projects!
What specific areas of your project would you like help with? Areas I’d Like Help WithI’d really appreciate more feedback on accessibility, especially regarding how I can improve the user experience for those using screen readers or navigating with a keyboard. I’ve added ARIA labels, focus styles, and a skip link, but I’d like to know if there’s anything else I could refine or add.
Additionally, I’d love advice on my code structuring. While I tried to keep my CSS organized with variables and meaningful class names, I’m open to suggestions on how to make the code cleaner, more reusable, or easier to maintain.
Any insights would be super helpful—thank you! 😊
Please log in to post a comment
Log in with GitHubCommunity feedback
- @why-not-phoenix
Looks almost perfect!!! How'd you do it?
- @webthingz
Nice Job with aliging and sizes. Good structure Only I should not use h1 for this heading
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