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

Blog preview card - Tailwind CSS, Next.js

next, react, tailwind-css, typescript
P
Darrick Fauvel•490
@DarrickFauvel
A solution to the Blog preview card 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 most proud of how accurate the solution is to the design. If I would do this challenge again, I would try another framework.

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

I wanted to hover the mouse over the card but transform the inner image element at the same time. Since I am using Tailwind CSS, I was not aware of how to do this.

It turns out that the Tailwind CSS documentation points to the 'group' class. By applying a 'group' class on the parent card element, I could also apply a 'group-hover:scale(125)' class on the inner image. This means that when hovering anywhere over the card, the image can be transformed.

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

I am open to any constructive feedback.

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 Darrick Fauvel'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