Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Article Preview Component using Tailwind CSS, CSS grid and Vanila JS

#accessibility#tailwind-css#vanilla-extract
Yaika Race• 290

@YaikaRace

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What I found difficult was to make the small triangle that has the text bubble shape, from my device I can see a small gray border and I did not know how to fix it, any suggestion and opinion that helps me to improve is welcome.

Community feedback

AntoineC• 1,180

@AntoineC-dev

Posted

Hello Yaika. Congratulations on completing this challenge 🎉🎉🎉.

I have some small suggestions to help you improve your solution:

  • I did not try this challenge but it seems that there is a box-shadow applied to the card (your main container) in the original design. It is a really easy fix since you used tailwind. They have some build in box-shadows that you can use. If however you want to create a custom one here is a resource where you will find a lot of different examples. Just create a custom utility like you already did with the @apply directive.

  • There is a small issue with the rounded corners of your image. A simple solution would be to remove the border-radius on the image and add the property overflow: hidden on the main element. The image will then follow the shape of the container.

There you go, that is nothing really 😊 You did a great job. Happy coding!

Marked as helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

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