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

Blog preview card with HTML and CSS

@SamanthaJowa

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 was able to write most of the HTML and CSS without using AI tools and google for reference, so I'm really proud of myself for that.

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

I had some problems importing the right font for the project. The one I managed to import was slightly different from the one used in the design.

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

I would like to see other techniques I can use to import fonts.

Community feedback

Boris 2,870

@mkboris

Posted

It's best practice linking Google fonts directly in the HTML head section rather than directly in your CSS file as it enables asynchronous downloading, improving page load times. Like so

  <head>
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
    <link
      href="https://fonts.googleapis.com/css2?family=Figtree:wght@600;800&display=swap"
      rel="stylesheet"
    />
  </head>

Marked as helpful

2

@SamanthaJowa

Posted

Thank you for the tip @mkboris

1
MikDra1 6,150

@MikDra1

Posted

Nice one 😀,

If you want to learn more about applying fonts to your project I advice you to learn about @font-face. Here is a VIDEO about it.

Hope you found this comment helpful 💗

Good job and keep going 😁😊😉

1

@SamanthaJowa

Posted

Thank you. Will definitely check it out!! @MikDra1

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