diff --git a/frontend/src/App.css b/frontend/src/App.css index 240b32e..549732a 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -17,7 +17,7 @@ } .sidebar-link { - @apply block bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition + @apply block bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition w-full px-4 py-2 hover:bg-blue-100 } .sidebar-item-text { diff --git a/frontend/src/components/RecipeListItem.tsx b/frontend/src/components/RecipeListItem.tsx new file mode 100644 index 0000000..cfe0d9c --- /dev/null +++ b/frontend/src/components/RecipeListItem.tsx @@ -0,0 +1,20 @@ +import { Link } from "react-router-dom" + +type RecipeListItemProps = { + title: string + targetPath: string +} + +/** + * List item for the recipe list. Selecting an item navigates to the recipe + */ +export default function RecipeListItem({ title, targetPath: path}: RecipeListItemProps) { + return ( + +