@elaineleung
Posted
Hi Daniel, congratulations on completing your first challenge, and welcome to Frontend Mentor! 😊
This looks excellent for a first challenge, and looking at your code, I see that it's quite efficient, and variables are clearly named as well, so well done!
Two things you can consider:
- Right now when I click the submit button without clicking on a rating, I still get the thank you page with a score of 0. Try seeing whether you can write some logic to prevent a user from submitting without a score.
- I'd suggest decreasing the white space surrounding the span tag in the selected score for the Thank You box.
In case you're interested, I made some CodePens as examples of different approaches:
- With a disabled button: https://codepen.io/elaineleung/pen/GRxBNpE
- With an alert box: https://codepen.io/elaineleung/pen/xxWzZPv
- Inactive until button selected https://codepen.io/elaineleung/pen/poLZrqK
Well done once again, and hope this gives you some ideas on what you can do!