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

Vanilla Javascript, Sass Article Preview Component

sass/scss
P
Scott•310
@ldg
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'm happy I got the javascript to work on this. I also tried something new on this project and used Sass Mixins to create utility classes from the text presets in the figma files. I saw how useful that can be, so I intend to explore mixins more as I progress.

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

I struggled with the transition between the different viewport sizes, thinking I needed a javascript solution. After trying separate functions for mobile, tablet and desktop, I realized I could accomplish what I need with media queries instead. That simplified everything.

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