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

Responsive blog preview card

jdrodriguez2707•170
@jdrodriguez2707
A solution to the Blog preview card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

I couldn't find a way to reduce the text size in smaller screens like it was required in the design without using media queries. But at the end, GitHub Copilot helped me and I could use some CSS functions like clamp() and calc() to overcome this. And now the card and the text is responsive without using any media queries.

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

I wonder if it's right to use the property aspect-ratio in this case. Does it have some effect on the images? For example:

.author-avatar {
  width: 3.2rem;
  height: 3.2rem;
  max-width: 64px;
  max-height: 65px;
  aspect-ratio: 64 / 65;
}

I'd appreciate any feedback about this. Thanks!

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