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

Responsive Article Preview Component with Vanilla CSS and Javascript

P
Jeronimo Palacios•300
@giropa832
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?

I am proud of finding an elegant solution to use javascript after a couple of iterations. Working with two divs in the mobile design and an array of buttons with the same eventListener and a toggle I believe is an elegant solution.

What challenges did you encounter, and how did you overcome them?

The arrow on the floating share div probed troublesome until I finally found out how to do it. This time I did not match perfectly the design as I wanted to complete the challenge and move on.

What specific areas of your project would you like help with?

Is the two divs solution wiht a toggle the best approach?

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 Jeronimo Palacios'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
Frontend Mentor logo

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

Frontend Mentor

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

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