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

Responsive blog card using HTML & CSS

@MaxCodeCraft

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?

This is my first responsive project, with more attention to the margins and paddings than the previous one ! I've really enjoyed this one as it was more complex and made me Google a thing or two so I learnt a lot with it.

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

Here is what I learned during this project:

  • Using @font-face to import custom fonts
  • Better understanding of the Flexbox model
  • How to make a container responsive

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

I didn't manage to have the left and right margins of 24px when viewed on mobile, if I did put margin: 0 1.5rem, i had the margin on the left side only and the right side was cropped, any ideas ? Thank you

Community feedback

@LANRIE-DEV

Posted

I would like to commend you on a job well done. 👍👍

I would love to make a few suggestions.

  1. ⭐️ Great job using semantic HTML! Such widgets as cards are more suited to be constructed with the <article> element, which encapsulates reusable, self-contained content.

  2. You didn't include the transition property for the active state for the heading (HTML and CSS foundations)

<h1 class="main heading">HTML & CSS foundations</h1>

`. main heading { font-size: 1.5rem; font-weight: 800; display: inline-block; margin: 1.1rem 0; transition: color 0.2s ease; }

. main heading: hover { color: hsl(47, 88%, 63%); cursor: pointer; }`

Again, well done and thumbs up. 👍

Marked as helpful

1

@MaxCodeCraft

Posted

@LANRIE-DEV Thank you for this feedback, much appreciated !! I will correct this tomorrow !

0
Geo 20

@Geox2b

Posted

Looks great, one tip, I would also translate the card itself a bit upwards so it really feels like the card is coming towards the use, kinda like the user is picking up the card.

0
P

@stephenkjohnston

Posted

Hello @MaxCodeCraft, You did a great job matching the design and your code looks great. Keep up the good work!

I do have a couple suggestions:

  1. Consider using the <time> MDN Article. The only real benefit to this is it can improve accessibility for impaired users.
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