Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 7 months ago

Blog Preview Card Component for Angular 18 with tailwind-css

angular, tailwind-css
Ardian Fazri•30
@aredean
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 think this is the second challenge that I believe is pixel-perfect, and hopefully, I will continue to practice it. I will probably still use angular to create some components in some future challenges, I want to focus on this. This time I used my other knowledge, namely tailwind-css, because it is quite time-consuming to create a responsive style, especially for several card components more than one.

In the future, I will pay more attention to pixel-perfect and more carefully in mobile mode because this is tricky and needs to be considered more carefully.

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

In this challenge I re-learn how a css media query works, in this challenge I am required to create two different versions, namely desktop and mobile, and both have slight differences.

  • I use @media screen and (max-width: 375px) { // Style used } to change the style of the card component on the mobile screen.

The next challenge is to use transition animations when hovering, active, and focusing.

  • For this, my solution is to create a global transition for all types of transitions by adding CSS : * { transition: all 0.25s ease }
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 Ardian Fazri'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