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 vanilla HTML/CSS

@JonDoesFrontEnd

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'm happy with how accurate the solution was to the figma file. Also, I'm proud that I spent a lot of time experimenting with different ways to structure the css before I settled on this solution.

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

I experimented with different ways of making the repeating margins more generic. You could of course implement this with specific classes for the padding sizes.

Here I solved it by setting the padding BETWEEN child elements of card

.card * {
  padding: 0;
  margin: 0;
}

.card > * + * {
  margin-top: 1.5rem;
}

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

I'm always happy to receive any feedback/resources on writing proper HTML/CSS :)

Community feedback

MikDra1 6,030

@MikDra1

Posted

  • Code Structure: The code is well-organized with a clear separation of concerns between HTML and CSS, which enhances readability and maintainability.
  • Design Aesthetics: The design is clean and modern, with effective use of color, typography, and spacing. It follows a minimalist approach, which works well for the purpose.
  • Accessibility: Consider adding alt attributes for images and ensuring text contrast ratios are sufficient for readability.
  • Scalability: The project could benefit from modularizing CSS for easier updates and scalability.
  • Responsiveness: Implement media queries for improved mobile and tablet views.

Hope you find this comment helpful 💗

Good job and keep going 😁😊😉

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