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 solution

@sashauly

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?

  • How to use variable fonts in CSS

    @font-face {
      font-family: Figtree;
      src: url("/assets/fonts/Figtree-VariableFont_wght.ttf") format("truetype");
      font-weight: 500 800;
      font-style: normal;
    }
    
  • First time I used native CSS nesting with BEM

    .card{
      ...
      .card__image {
        ...
      }
      .card__content {
        ...
      }
      .card__author {
        ...
      }
    }
    

Community feedback

@Amirmfth

Posted

i too learned CSS nesting seeing your solution, GOOD job.

Marked as helpful

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