Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Article preview component - HTML, Tailwind CSS, Javascript

tailwind-css
scurlly•80
@scurlly
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 proud that I could finish this challenge and also that I learned a new skill while doing it.

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

Since this was my first time using Tailwind CSS on an actual project that had to be pixel perfect and same as the design, I struggled to find the particular classes that Tailwind CSS uses. Later I installed the Tailwind CSS intellisense that made things much easier and faster.

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

I would like to know how to approach a design when the requirements for mobile and desktop view are different. In the above challenge the share section design for mobile and desktop are very different in terms of how they appear when the share button is clicked. As you can see in my code I have gone around this by creating seperate section for mobile and desktop and hidden them respectively. This was very tedious to do and I think there will be a much better approach to do this. It would be very helpful to receive some feedback on this. Thanks.

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

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub