DEV Community

Samuel Olakunde
Samuel Olakunde

Posted on

Day 4 — Recipe Cards Component Complete 🎉

Hi all,

I’ve wrapped up the RecipeCard component layout today:

Highlights

  • Card structure: placeholder image, title, description, “View Recipe” button
  • Styled with Tailwind: shadows, rounded corners, smooth hover states
  • Packaged as a reusable React component for my TastyHub app

Next Steps

  • Add star rating UI
  • Hook up live recipe data from my API
  • Ensure accessibility and keyboard navigation

On Day 5, I’ll start building out the grid layout and prepare for interactivity.

Feedback and suggestions always welcome!

Top comments (1)

Collapse
 
alexandersstudi profile image
Alexander

For the accessibility step tomorrow, watch out for the redundant link trap on cards. Wrapping the entire block in an anchor tag ruins the screen reader experience, while putting separate links on the image, title, and button creates exhausting tab stops. A much cleaner approach is making just the title a link and stretching its clickable area over the whole card using an absolutely positioned pseudo-element. Keeps the DOM semantic while delivering a massive hit area.