Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
to be able to handle the handling of the button interaction that delivers the sharing content differently for different screens.
What challenges did you encounter, and how did you overcome them?I had difficulty dealing with the visibility of the sharing content as the button was clicked, as well as its different format depending on the type of screen that consequently changed its content. I used the classList
property a lot to solve this issue, simplifying the code using parameters. Working with the global object window
and using eventListener
s allowed me to solve the challenge.
I accept feedback on any part of the code. I will be grateful for any help!
Community feedback
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