Design comparison
SolutionDesign
Solution retrospective
Any tips are appreciated!
Community feedback
- @GrzywNPosted over 2 years ago
Well done @finng1337!
Almost everything is clean, but I have some suggestions you might want to consider in your future projects or even improve this one:
HTML is really clean and has no validation errors, which is not often seen on Frontend Mentor π€©
CSS is great too π, but there are some things you might wanna improve:
- You use
hsl()
functions for colors a lot. You can make use of defining a CSS variables for different colors and use them instead. You can also try using Sass/SCSS preprocessor and use its variables. More about CSS variables here - Remember to never use
px
units. Especially for font sizes. You can userem
orem
instead (rems are safer). To make converting pixels to rems simple you can download px to rem VS Code extension. It's considered a good practice, since it makes your website/app work better for users who have bigger/smaller font sizes set in their browser. You can also scale your pages easier by simply changing afont-size
inhtml
tag.
JS:
- You might want to consider spliting your code into smaller, more focused functions (it's best if they're pure functions) and you can add some extra spacing to better distinguish the different responsibilities in the code. For example you can add a line break between DOM operations and fetching data or between different functions. It is important to try to keep the code clean because it increases its quality, maintainbility and readability, especially for people who have never dealt with it before.
Once again great work π Have a nice day and happy coding too π!
Marked as helpful1@finng1337Posted over 2 years ago@GrzywN Thanks for this detailed feedback! This is my first project with javascript, so I will try to keep focus on these tips!
1 - You use
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