Blog Preview Card using React & Typescript

Solution retrospective
I'm really proud of the shadow and text color change implementation. It might look simple on the surface, but a look at the code will show that it's anything but, and I find that really cool. This was a really fun learning experience and I look forward to more like it.
What challenges did you encounter, and how did you overcome them?I came across an issue with typescript and motion's variant feature. Kept getting errors because I was trying to assign strings as values to the keys of a variant object, but the editor kept telling me that the values should be of type "Variant" and that didn't help my situation. It still surprises me that I didn't even realize it early on. Only after asking for help on the discord did a fellow community member point out to me that I was trying to assign strings, instead of objects, as values.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Anene Praise'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