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

Blog preview card

Harodde•80
@Harodde
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?

I used clamp() for font sizes and a media query to ensure the card adapts well to smaller screens. This makes the design scalable and user-friendly on mobile devices.

Use CSS Variables for Consistency: I’d centralize more values (like the border-radius, box-shadow, or gap sizes) into :root variables to ensure easier adjustments.

Improve Code Modularity: Refactor some reusable styles (like display: flex with common align-items and gap) into utility classes or use a preprocessor like Sass for better maintainability.

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 Harodde'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