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-component

@moaz-shamim

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

P

@kaamiik

Posted

Hi. Congratulation for doing this challenge. I have some points from your code I wanna mention:

1.You wrap the Learning, the date and the text into a div that is wrong and you can use p for this that is semantic.

  1. When an element has hover effect, then it should be interactive. So you have to wrap it between a or button too. If It takes you to a new page then It's a and If doing an action then It's button. Your h1 in the design has hover effect.

  2. You can not limit your container with width and height that have text inside of it. You only need max-width for this in rem unit and min-height: 100vh in body to justify your card.

  3. You need a proper CSS reset in your style. Andy Bell and Josh Comeau both have a good resets.

  4. Your font-size should be in rem and not px.

0

@moaz-shamim

Posted

@kaamiik Thank you for the feedback Kamran Kiani ! I’ve made the following changes based on your suggestions:

Semantic HTML: I replaced the div wrapping the Learning, date, and text with a <p> element for better semantics. This helps to ensure the content is properly structured.

Interactive Elements: I added appropriate interactive elements for hover effects. For the h1, since it has a hover effect and redirects to a new page,

Font Size in rem: I changed all font sizes from px to rem units to improve scalability and accessibility, ensuring a better user experience.

I appreciate your input, and I'm happy to make these improvements!

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