Semantic HTML5 markup and CSS custom properties and Flexbox

Solution retrospective
I am most proud of achieving a pixel-perfect design using Flexbox for centering the component. It was satisfying to see how a few lines of CSS could align everything so precisely. Next time, I would try using CSS Custom Properties (variables) more extensively for all colors and spacing to make the code even more maintainable.
What challenges did you encounter, and how did you overcome them?My biggest challenge was configuring the development environment, specifically resolving SSH authentication errors (Permission denied publickey) when pushing to GitHub. I overcame this by generating a new SSH key and properly adding it to my GitHub settings. On the UI side, fine-tuning the typography and spacing to match the design was tricky. I used AI as a collaborator to audit my CSS, which helped me identify the correct line-height and border-radius values to achieve a more polished look.
What specific areas of your project would you like help with?I would appreciate feedback on my CSS structure. Is it clean enough, or should I have used CSS variables for colors and spacing to make it more scalable? Also, I'd like to know if my approach to responsiveness (using max-width on the card and Flexbox on the body) is considered best practice for such components, or if there's a more robust way to handle it for even smaller screen sizes.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on nqbinh98’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