Design comparison
SolutionDesign
Solution retrospective
This was my first time using SCSS and it was fun!! Can someone please go through the code and let me know what should I do to not change the share button colour in desktop mode view?
Community feedback
- @ApplePieGiraffePosted over 3 years ago
Greetings, Sandeep Gumaste! 👋
Good effort on this challenge! 👍 Kudos for trying out Sass! 😀
I suggest,
- Adding
cursor: pointer
to the social media popup button. - Wrapping the social media icons in the popup in anchor tags (since they seem like links that will take the user somewhere when clicked).
- Adding
width: 100%
to the card component and giving it a max-width (to prevent it from becoming too wide) instead of usingwidth: 50%
in the desktop layout (because it currently looks a bit squished in the desktop layout when the width of the screen decreases). - And if you don't want the colors of the social media popup button to be changed the desktop layout, you might want to check the width of the screen in your JS first (using
window.innerWidth
or something) and then decide to only add the class to the button that changes its colors if the width is above a certain value.
Hope those tips help a little. 🙂
Keep coding (and happy coding, too)! 😁
Marked as helpful2@SandeepGumastePosted over 3 years ago@ApplePieGiraffe Thankyou for the feedback!!
1 - Adding
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