Article Preview Component using Tailwind CSS, CSS grid and Vanila JS
Design comparison
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
- @mattari97Posted about 2 years ago
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 helpful1 -
- @john-miragePosted about 2 years agoMarked as helpful1
Please log in to post a comment
Log in with GitHubJoin 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