Responsive blog preview card using Flexbox and custom fonts

Solution retrospective
I’m proud of having implemented a clean, responsive card layout using only HTML and CSS without relying on external frameworks. I also successfully used @font-face to load local fonts and applied subtle hover effects to make the component more interactive.
Next time, I would experiment with CSS Grid for the layout and focus more on creating a fluid design that adapts to different screen sizes without using fixed heights.
One of the main challenges was making the design responsive for smaller devices while maintaining good spacing and proportions. I overcame this by:
- Using media queries to adjust font sizes and layout.
- Applying Flexbox for alignment and spacing.
- Testing frequently in mobile and desktop views.
Another small issue was with image scaling, which I solved by applying the object-fit: cover property.
I would like feedback on:
- Improving accessibility (ARIA attributes, semantic structure).
- Making the card layout more scalable for future use in a multi-card grid.
- Suggestions for optimizing the CSS for cleaner and more reusable code.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Juan Felipe'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