@CyrusKabir
Posted
hello my dear friend ♥ you did good and clean on this challenge and here some improvements :
-
first, it's very good to have more structured file and folders when you use sass i know this is a little component but having this habit from little projects make you have cleaner file structure in bigger projects and also you can check this links structuring your sass, 2 way to structure sass
-
second, try to learn some naming convention to have more structured code and more readable and maintainable code, for start BEM (block, element, modifier) it's good BEM docs
-
third, always use <main> tag for both accessibility and semantically and also you can read this article to what is the purpose of main tag
Marked as helpful
@samsonsham
Posted
@CyrusKabir Thank you so much for your advise! This is helpful and I have learnt a lot from the articles you recommended. I have modified my code and found it more readable and re-usable. One thing I am wondering, I added class to an element just to make the element more readable and descriptive, but maybe there is no css associate with that class. is it a good practice? Usually we assume there is some style behind a class. I am not sure this assumption is correct or not.
@CyrusKabir
Posted
@samsonsham your welcome, i am glad you learn new things really ♥ and for your new question and again another link :) hope this help you: link