Design comparison
SolutionDesign
Solution retrospective
This was my first time to create one of Frontend Mentor projects so I would like to get some feedback if it is possible. Is my code weird in any way? I mean what I want to know if it is decent enough or not.
Community feedback
- @PresidentTreePosted about 3 years ago
For your first project on Frontend Mentor, you did really well! While I am not familiar with SCSS, there are some things I would like to point out...
HTML
- You have an external stylesheet, but you still included the styling for the
attribution
class in thehead
of the HTML file. Consider moving that to the stylesheet or remove it if it is not used. - Is the
header
supposed to be blank? - This is just me, but the slash before the
img
src works just as well without the slash in front of it. - "$59.99/year" on line 37 and the text in the
attribution
class do not have any tags around them likep
, for example. - There is a lot of space between
main
and theattribution
class.
CSS
- Setting the
background-size
tocover
does not put the background-image in the right position. Consider changing it tocontain
. - You can put more than one style in @media. Just move all of your styles with the same conditions under one. @media is usually placed at the bottom of the stylesheet, too.
- Same with the HTML images, the
img
src works just as well without the slash in front of it.
You can look at my code for reference, too: https://github.com/PresidentTree/Order-Summary-Card
Marked as helpful2 - You have an external stylesheet, but you still included the styling for the
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