Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 6 months ago

Basic DOM Manipulation - article preview

P
Peetawit Vongchanapibul•200
@pete13232
A solution to the Article preview component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

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.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License