Mobile-first responsive order summary card solution
Design comparison
Solution retrospective
I started this challenge to improve my web content structuring and advanced styling in mind. That's why I challenged myself to create the styling using Sass and BEM method.
It was hard at first, and this is really my first time using Sass. Most of the time when I do challenge from frontend mentor, I always use vanilla CSS.
I learned so much about advanced CSS styling by using this Sass method:
- I learn how to plan my styling by using so many partial Scss/Sass file.
- I learn how to use variables in Sass
- I learn how to use @mixin, function, and so many more
I also learn how to create a styling using BEM method, which is using block, element, and modifier classes, eventhough maybe the class attribute looking little bit cramped with lots of classes, but it does the job when you styling.
- What do you think about my Sass/Scss? Can it be improve?
- Is there anymore best practice for me to finish this challenge?
I like to hear from you, many thanks.
Community feedback
- @SatellitePeacePosted about 2 years ago
Hello @christian-prasetya
Scss/Sass in my opinion is very important to learn and it is impressive that you are learning it early
-
yes you did a pretty decent job in your case the only problem I perceived was that there were too many pages for a small project like this one which can make it a little difficult to navigate through all your code
-
for small projects like the one try using fewer scss files for example your footer, boilerplate, and main content can be in the same file
-
Also the top part of your card is not visible probably because of the height and the margin fo your body so try this
body{ min-height: 100vh; margin: 3rem; } Overall well done and happy coding and i hope this reply helps
0@christian-prasetyaPosted about 2 years ago@SatellitePeace Thank you for your respon, and I will take your suggestion in mind when I do my next challenge or project.
1 -
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