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

Article Preview Component

Abdullah Bin Soulat•110
@AbdullahSoulat
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 was one of my first JavaScript projects and I had a lot of fun doing it. I messed around with some variables, and event listeners. Currently I have fixed width for images which I don't like. I could improve on this by trying out grid instead of flex-box.

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

I had trouble making the mobile view for the share section. I have it set as absolute positioning and it was difficult to align it vertically. What I ended up doing was removing the bottom padding from the container and then messing around with some stuff. I ended up working but not a clean solution in my opinion.

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

I would love some help in cleaning up my code. I feel like it can be made more efficient and better. I have already mentioned the images and the share section issues above.

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 Abdullah Bin Soulat'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