Design comparison
Solution retrospective
Hello,
I have some doubt about the js script. I'm pretty there's a better way to do this. For the html and css, please tell me how can I improve this.
Thks !
JJ
Community feedback
- @visualdennissPosted over 1 year ago
Hey there,
Good work in completing the challenge!
It looks like your app does not cover the entire screen, on larger screen-sizes there are some empty spaces around the grid. It is normal to have a max-width for the entire app, but having empty space on the top is not recommended as it is now. So you can try to cover the entire screen, starting with width: 100% for you grid and making further height and layout adjustments as needed.
Hope you find this feedback helpful!
Marked as helpful0 - @0xabdulkhaliqPosted over 1 year ago
Hello there π. Congratulations on successfully completing the challenge! π
- I have other recommendations regarding your code that I believe will be of great interest to you.
JAVASCRIPT π’:
- The way you declared variables are need to be well structured and organized
- Take a look at the following example code which describes an efficient way of declaring variables
const firstName = "Your"; const lastName = "Name"; const emailAddress = "[email protected]"; const password = "supersecret";
- instead try this,
const firstName = "Your", lastName = "Name", emailAddress = "[email protected]" β’β’β’ β’β’β’ // n number of declarations password = "supersecret"; // make sure to add a semicolon at end of last declaration
- This single line declaration with separated commas will helps you to have a better structured code and improves readability though
I hope you find this helpful π Above all, the solution you submitted is great !
Happy coding!
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