@rfilenko
Posted
Hi, congrats on your challenge, looks good. I have a few notes how to improve a little bit:
- try to use less selectors to target element, usually one class is enough, so don't do this #app .main-wrapper main .row .col.content-text .hero-title.
- logo probably should be a link, usually homepage;
- max-width: 100% on images will make them responsive, and setting width and height would just distort proportion;
- more subtle box-shadow on a button;
- would make .social-links as ul list of links;
- next time try mobile-first approach.
Keep codingπ, Roman
@rfilenko
Hi Roman, thanks for taking the time to help out!
- I believe the multiple selectors issue you are referring to comes from the processing of my SCSS files to CSS due to the nested nature of the SASS language, correct me if I'm wrong or if I misunderstand.
- Thanks, I have wrapped the logo in an a-tag now.
- Images are now 100% width and the container has a width specified instead!
- Used the exact box-shadow parameters from the design-file, so not quite sure what to make more subtle, but I reduced the box-shadow color opacity from 0.25 to 0.18.
- Social links are now an unordered list!
- Will look into doing it mobile-first on the next project!
Thanks, Roman, it's very helpful to get feedback like this. Have a great day! Tor
@rfilenko
Posted
@torhuus Hi Tor, nice, that was really fast on fixes, glad I was helpful.
As for sass usage - try to not go 3 levels deep in nesting, otherwise it raises specificity selector, it's hard to maintain or overwrite styles. On bigger projects this can be an issue. Most of the times I try to follow css BEM naming convention, that helps with code structure and works great with preprocessors.
My comment regarding button was mainly alpha channel, so you fixed it already. In sketch file you can get correct values. As for social icons - links inside li, so user can go to proper social media pageπ
Have a good one too, Roman
@rfilenko
I understand. I've read/heard a little about BEM, guess I'll have to dive deeper now!
Alright, great! Social icons now have a-tags ;)
Thanks again! Tor