Design comparison
Solution retrospective
I'm proud of my clean approach to centering the QR component using absolute positioning and transform, which creates a perfectly centered card that works across different screen sizes. I also paid careful attention to spacing details, like the different padding for the image (8px with 0px bottom padding) and text (10px margin with 15px bottom padding) to match the design closely.
For my next project, I would approach it differently by:
- Exploring CSS Grid or Flexbox for centering instead of absolute positioning, as these are more modern and flexible approaches
- Adding hover states or subtle animations to make the component more interactive
My main challenge was deploying the project to GitHub Pages. Despite having my code ready, I wasn't familiar with the deployment process and encountered difficulties getting my site live. I overcame this by:
- Reaching out for help - a software engineer guided me through the process, which taught me the importance of not being afraid to ask for assistance when learning new technical concepts
- Learning about the importance of repository settings and the correct file structure for GitHub Pages
- Understanding that the repository name and deployment branch settings are crucial for successful deployment
This experience taught me valuable lessons about web deployment and the importance of community support in development. It also helped me become more comfortable with using GitHub for project hosting.
What specific areas of your project would you like help with?I would appreciate feedback on:
- Performance - While my absolute positioning works for centering the component, I'd love to know if using CSS Grid or Flexbox would be a more modern/efficient approach
- Accessibility - Are there ways I could make this component more accessible to screen readers and keyboard navigation?
- Best Practices - I used direct color values (hsl) in my CSS; should I be using CSS custom properties instead?
- Responsive Design - Though the component works on different screens, I'd like to know if my use of em units is the best approach for scalability
Additionally, I'm open to learning about any industry-standard practices I might have missed, as I'm eager to write more maintainable and professional code.
Community feedback
- @hbeamaniiiPosted 3 days ago
I like the usage of the github readme, very descriptive of the process you used to complete the challenge. Also even though its a small project the css should be separated from the html.
0
Please log in to post a comment
Log in with GitHubJoin 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