diff --git a/frontend/src/App.css b/frontend/src/App.css index e9a992d..ae4e583 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -8,22 +8,6 @@ @apply p-4 flex; } - .sidebar { - @apply min-w-[16rem] bg-gray-50 p-4 w-1/3 border-r pr-4; - } - - .sidebar-title { - @apply text-blue-900 font-bold mb-2; - } - - .sidebar-link { - @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 { - @apply font-semibold text-blue-400; - } - .content-title{ @apply text-3xl font-black mb-8 text-blue-400; } diff --git a/frontend/src/components/recipes/RecipeListItem.tsx b/frontend/src/components/recipes/RecipeListItem.tsx index cfe0d9c..1f892f4 100644 --- a/frontend/src/components/recipes/RecipeListItem.tsx +++ b/frontend/src/components/recipes/RecipeListItem.tsx @@ -3,18 +3,38 @@ import { Link } from "react-router-dom" type RecipeListItemProps = { title: string targetPath: string + imageUrl?: string } /** * List item for the recipe list. Selecting an item navigates to the recipe */ -export default function RecipeListItem({ title, targetPath: path}: RecipeListItemProps) { + +export default function RecipeListItem({ title, targetPath, imageUrl }: RecipeListItemProps) { return ( -