Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Post Card Component in HTML & CSS

@keinermendoza

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


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

I am proud of having been able to deal with issues related to the use of self-hosted fonts. I believe I worked differently than expected in this challenge regarding fonts. Interestingly, I would like to learn how to use variable fonts.

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

Without a doubt, I spent the most time on the use of fonts. I tried unsuccessfully to load the fonts using:

@font-face {
    font-family: 'Figtree-ExtraBold';
    src: url('/assets/fonts/static/Figtree-ExtraBold.ttf') format('truetype');
}

Following a post on MDN I tried using the Fontsquirrel Webfont Generator to convert the TrueType format to woff and woff2 formats, but I only got a message saying that the font was corrupted. After searching a bit, I found an article mentioning the Transfonter conversion tool which worked without any issues. I ended up using the fonts in woff2 and woff formats.

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

I have a strong feeling that there was a much simpler way to solve this. I would like to know if others faced the same issue when importing fonts and how they resolved it.

Community feedback

geomydas 1,060

@geomydas

Posted

I reccomend using this resource for google fonts. They already come in woff2 format + you have css @font-face snippets

Marked as helpful

0

@keinermendoza

Posted

@geomydas thanks Jiro.

0

@riddsep

Posted

build with semantic html, responsive

0

Please log in to post a comment

Log in with GitHub
Discord logo

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