Design comparison
Solution retrospective
I managed to accomplish it and also making it accessible to use on my phone. Probably on the JS side it could have been coded better?
What challenges did you encounter, and how did you overcome them?How to add the share link and also make it pop up when I click the Share button and also make it appear in front of the Article.
I simply used google and figure out how to implement JS and see how it actually works on the frontend side.
What specific areas of your project would you like help with?How can I improve on the JS side of the project and is the way that I implemented it decent?
Community feedback
- @echocode1Posted 5 months ago
the JavaScript is okay and can be simplified .invoke the width to add when resizing to desktop or mobile mode with the window.innerwidth .you can use less than 5 lines of code by adding a condition if the width is mobile view or desktop view give a comand the style display to allow if the mobile share version or the desktop share version.
position the share active image can be difficult but knowing were to make absolute and were to make relative makes it more easier .and knowing how to align with the "top, left, right and bottom " makes it even more easier.
0
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