Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Responsive article preview component using Next.js

react, tailwind-css, next
konraddissake1808•160
@konraddissake1808
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 how the end product looks stunning and how everything looks visually close to the source material. Something I would do differently would be to further breakdown everything to smaller components from the start.

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

I had a lot of difficulties trying to pass the event handling function to the share button. I overcame this using the "use client"; keyword on my components as event handling aren't working server side. And for those who read this. Don't use the "use client"; keyword in the page.tsx file of your Next projects, as it is not advisable for best practices purposes.

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

I would like some help on a way to close the share panel when there is a click anywhere on the page. It would be great if someone could help me with that. Thanks in advance.

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 konraddissake1808'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