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

Responsive Blog preview card with Flexbox

nodegreecode•390
@nodegreecode
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've built the component with div ,p ,h2 and a only, but fortunately recognized, that it was an invalid HTML structure for a blog card. The news feed on the home page of Firefox helped me a lot with it. Next time, I would try to find a better implementation of the blog card title, as my solution is far a way from the original one in terms of size and probably semantic as well. So basically, there are different ways of building and structuring a blog card with HTML and I would probably build it completely differently.

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

The most challenging was to implement a fluent font-size without media-queries, though there are actually a lot of techniques to do it. My problem was the wrong embedded svg graphic, which didn't let my component change fluently with the viewport size. For my component, I've chosen the clamp() function, and I am happy with that. Less challenging was adding fonts, I had actually done this in an HTML,CSS course, but I should search first to refresh my knowledge.

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

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