Skip to content
Submitted about 17 hours ago

Blog Preview Card using React and Tailwind

react, tailwind-css
P
LVL 1
@jairocastilloo
A solution to the Blog preview card challenge

Solution retrospective


What are you most proud of, and what would you do differently next time?

I am mostly proud of the way I used tailwind classes to imitate the problem design. I would do making presets differently next time for less code

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

One difficulty I encountered was matching the correct font weight. The preset data did not provide the actual font-weight values, so I relied on Tailwind CSS font-weight classes such as font-extrabold, font-bold, and others based on the given presets. As a result, the implementation was based on the preset categories rather than the exact font-weight values specified in the original design.

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

The specific area I would like to improve is how I structured my Tailwind CSS classes. Looking back, I feel that many of the classes were repetitive. Instead of applying the same utility classes to multiple elements, I could have consolidated the common styles into a single parent class and only specified the properties that differ for individual elements. This approach would reduce duplication, improve readability, and make the code easier to maintain.

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on jaisenpai’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