Design comparison
Community feedback
- @Dinil-ThilakarathnePosted over 1 year ago
Hey there! Great job on completing the challenge! 🎉
Great job on the code! The organization and structure are well-done, making it easy to read and maintain. The use of a Google Font (Outfit) is a nice touch, adding personality and uniqueness to the design. The use of flexbox is also a good choice, allowing for easy centering and responsiveness.
The code you provided looks well organized and readable. However, here are some suggestions that could further improve the cleanliness of the code:
-
Use consistent indentation - While the code is indented properly, the number of spaces used is not consistent. You could choose a standard number of spaces for indentation (e.g. 2, 4, or 8) and use it consistently throughout the code.
-
Organize CSS properties in a consistent order - You could choose a standard order for CSS properties (e.g. alphabetical, grouped by type) and use it consistently throughout the code. This can make it easier to read and maintain the code.
-
Use shorthand properties - Instead of using individual properties like padding-top, padding-right, padding-bottom, and padding-left, you could use shorthand properties like padding: 15px 0 0 0;. This can help reduce the amount of code and make it more concise.
-
Use CSS variables - Instead of hardcoding colors, font sizes, and other values throughout the code, you could define them as CSS variables and use them throughout the code. This can make it easier to update the code and maintain consistency.
-
Remove unnecessary code - You could remove any code that is not being used or is redundant. For example, the height: 100%; property in .card-image img is not needed because the parent element already has a fixed height of 450px.s will help to make the code even more readable and maintainable.
These changes will help to make the code even more readable and maintainable. Overall, great job!
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