Design comparison
SolutionDesign
Solution retrospective
I tried my best to match the design as seen. Any feedback on how to write cleaner code is appreciated.
Community feedback
- @vanzasetiaPosted over 3 years ago
👋Hi Rhyine! My name is Vanza!
I have some feedback to improve this solution:
- The
height
of yourcard
is65%
, which is not good, because if the user screen height is768px
then the card will stretch. So, my recommendation is usingpadding-bottom
to fixed the issue. - As you can see from the design comparison the background color for the
body
is different. - For the circle background, try to use
background-image
and position in usingbackground-position
, if you don't know how to position the background, you can check the solution from @ApplePieGiraffe - To write a cleaner Sass in
scss
syntax, try to write your properties like this:
&__line { width: 100%; height: 1px; border-width: 0; color: hsl(230, 17%, 86%); background-color:hsl(230, 17%, 86%); margin: 30px 0; }
Instead of like this:
&__line { width: 100%; height: 1px; border-width: 0; color: hsl(230, 17%, 86%); background-color:hsl(230, 17%, 86%); margin: 30px 0; }
- Next time, you can try to follow this Sass Guidelines to write cleaner Sass.
That's it! Hopefully this is helpful!
Happy Coding!
Marked as helpful3@the-catalystmcPosted over 3 years ago@vanzasetia Thank you for the inputs. Much appreciated.
0 - 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