Basic DOM Manipulation - article preview

Solution retrospective
This section covers basic DOM manipulation using JavaScript. While working on this part, I tried to think in terms of "state managements" which helped me a lot when revisiting and editing the code later.
What challenges did you encounter, and how did you overcome them?I had trouble managing state toggling because the previous layout was overly complex and messy. So I took the time to carefully analyze the structure and decided to rebuild everything from scratch. In the end, I think the result turned out quite well.
What specific areas of your project would you like help with?I think my HTML structure still has issues. When the share button is active in the mobile view, I slightly modified the card footer's HTML structure. However, switching between mobile and desktop views requires adding and removing certain elements repeatedly. I feel like there should be a better approach, but I can't figure it out yet.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Peetawit Vongchanapibul's solution.
Join 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