Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 5 months ago

Blog Preview Card

Afuh Flynn Tembeng•360
@afuhflynn
A solution to the Blog preview card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

Most proud of:

  • Creating a pixel-perfect implementation that closely matches the design specifications Successfully implementing local font faces instead of relying on Google Fonts CDN, which improves performance and offline functionality
  • Writing clean, semantic HTML with proper accessibility considerations (focus states, alt text)
  • Achieving smooth hover animations with the box-shadow effect that feels polished and professional

What I'd do differently:

  • I would start by creating a more detailed design system with consistent spacing variables from the beginning Consider using CSS Grid alongside Flexbox for even more layout control
  • Implement CSS custom properties more extensively for better maintainability
  • Add more comprehensive accessibility testing, including keyboard navigation and screen reader compatibility
What challenges did you encounter, and how did you overcome them?

Main challenges:

  1. Precise spacing and typography - The design required exact font sizes, spacing, and proportions. I overcame this by carefully analyzing the preview image and using consistent units (px for precise control).

  2. Shadow hover effect - Creating the expanding shadow effect on hover required experimenting with different approaches. I solved this by using box-shadow transitions instead of transform scaling, which provided smoother visual feedback.

  3. Font implementation - Deciding between Google Fonts and local fonts. I chose local fonts for better performance and created proper @font-face declarations supporting both variable and static font files.

  4. Responsive behavior - Ensuring the card looks great on both mobile (375px) and desktop (1440px). I used CSS media queries with specific breakpoints and adjusted padding/font sizes accordingly.

What specific areas of your project would you like help with?
  1. Advanced accessibility features - I'd appreciate feedback on implementing better ARIA labels, focus management, and ensuring the component works seamlessly with assistive technologies.

  2. Performance optimization - While I used local fonts, I'd like guidance on further optimizing loading times, especially for the font files and any potential layout shifts.

  3. CSS architecture - Feedback on organizing CSS better, perhaps using methodologies like BEM or implementing a more scalable design system approach.

  4. Animation refinement - The hover effect works well, but I'd welcome suggestions for more sophisticated micro-interactions that could enhance the user experience without being distracting.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Afuh Flynn Tembeng'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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License