Hey Dania
You got the error you mentioned in your script.js file because you imported it twice: the first time in the head and then in the end of the body.
I like that you make the ratings and "submit" - buttons. Some people here make those as div
s, but since we click on them, they should be buttons. Good job.
And I like that you used transitions for hover states, so the changes are smooth and nice. ♥
Also, having buttons with class button
isn't helpful for those who read your code, you might call the class rating
or rating-button
or something like this. I'm not even sure if you use this .button
class anywhere. You style rating buttons via .buttons button
.
UPD: Oh, you use .button
in JS, so it's okay. Just might rename the class to something more readable.
You declared .finished
class as just display: none
and then you override this later in the same css file to display: flex
. And you never use any of them, you set display property in JS via style.
Your .buttons
class has cursor: pointer
. What is the point of this if buttons usually have cursor as a pointer by default. With that setting cursor turns into a pointer even if I hover on an empty space between rating buttons.
Same think with cursor: pointer
on submit button, I think you don't need it.
Also you forgot your debugging console.logs :)
Good job