Design comparison
Solution retrospective
Should I leave or delete scss files?
Structure of my scss and HTML file.
Community feedback
- @FluffyKasPosted over 2 years ago
Heyo,
It looks good! In addition to what @Sdann26 already said, you could look into the following:
-
Instead of using buttons, radio inputs are a better choice for the ratings.
-
You shouldn't set a fixed height on your card - or in general on most elements. If you remove it, you'll see little has changed. This is because html elements have their own default height. You can add some padding to this, if it isn't enough.
-
You could add a rule to prevent empty submits.
And yes, you should always upload your scss files to Github. If someone tried to look into your code, the scss you worked on is usually easier to follow than the complied css. ^^
Marked as helpful2 -
- @Sdann26Posted over 2 years ago
Hi Jona! Congratulations on finishing your first project!
You should never delete them, since you program in a development environment so you modify those files in development. The files that are generated are passed to a production environment that has better performance for your page, more or less this is how it is handled. You will see that later on when you get more experience.
Leaving aside the question, in your design the star does not appear and it is because you have not used relative paths. So modify
<img alt="" src="/images/icon-star.svg">
to<img alt="" src="./images/icon-star.svg">
, you will notice that it has a dot before the slash as that is a relative path because it starts from where the file that calls the path is located.If you want to make the spacing in the SUBMIT button you can add the attribute
letter-spacing: 0.25em
, also you can add to this button and to the score buttons the attribute to give a transition to the change of state and that the effects are given more smoothlytransition: all 200ms
.I hope my comments are helpful.
Marked as helpful2
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