Blog Preview Card - HTML, Tailwind CSS, Alpine
Design comparison
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
- @danielmrz-devPosted 10 months ago
Hello @Theosaurus-Rex!
Your solution looks excellent!
I have a couple of suggestions:
- First: Use
main
to wrap the main content instead ofmain
andarticle
.
š 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 ashover 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 helpful1@Theosaurus-RexPosted 10 months ago@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 - First: Use
Please log in to post a comment
Log in with GitHubJoin 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