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
Request path contains unescaped characters
Not Found
Not Found
Not Found

Submitted

Blog Preview Card - HTML, Tailwind CSS, Alpine

Theo Harrisā€¢ 140

@Theosaurus-Rex

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


Hey there! This is my first challenge - any feedback greatly appreciated.

I haven't really used Alpine before, but it seemed to be an easy way to achieve the reversal of hover effects alongside Tailwind - please let me know if I could do this better!

Community feedback

Daniel šŸ›øā€¢ 44,230

@danielmrz-dev

Posted

Hello @Theosaurus-Rex!

Your solution looks excellent!

I have a couple of suggestions:

  • First: Use main to wrap the main content instead of main and article.

šŸ“Œ The tag article would make more sense if the card was part of a bigger website (in certainly would in real world), but here it is all we have on the screen.

This tag change does not impact your project visually and makes your HTML code more semantic, improving SEO optimization as well as the accessibility of your project.

  • Second: Since the title is a clickable element, it's nice to add cursor: pointer and a color shift as hover effect.

šŸ“Œ This gives the user a visual indication that the element is clickable, as obvious as it may look.

I hope it helps!

Other than that, great job!

Marked as helpful

1

Theo Harrisā€¢ 140

@Theosaurus-Rex

Posted

@danielmrz-dev Hey Daniel, thanks so much for your feedback! That makes a lot of sense regarding the article tag - I guess I was approaching it like I would approach building a reusable component for a larger page, but it makes sense to treat it differently in this case! I'll apply your suggestions and update my solution šŸ˜„

1
Daniel šŸ›øā€¢ 44,230

@danielmrz-dev

Posted

@Theosaurus-Rex

I'm glad I could help! šŸ˜Š

1

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