
CSS FlexBox, Responsive HTML, CSS Variables, Vercel Deployment
Design comparison
Community feedback
- P@cocoelizabethPosted 2 months ago
Hi Natentado! Your solution is great! Here are a few minor suggestions for improvement:
-
Responsive Design: The layout adjusts well across different screen sizes, maintaining a central alignment and appropriate scaling of the QR code image. Consider adding media queries to adjust the padding or margins on smaller screens to utilize space more efficiently. (e.g., there would be no padding on the iPhone SE, which has a viewport width of 320px)
-
Code Quality: The code is clean and well-structured. CSS properties are consistently ordered, which improves readability. To increase reusability, consider using CSS variables for colors and fonts.
-
Design Fidelity: While the implementation is generally in line with the original design, there are a couple of deviations to note:
- The original design includes a drop shadow around the
qr-code-container
component, which is not shown in your solution. Adding a CSS.drop-shadow
or.box-shadow
would enhance the visual depth and make it more similar to the original design. - The font rendering appears slightly different than in the design mockup, however, I don't think it affects the overall feel of the component.
Marked as helpful0 -
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