diff --git a/frontend/src/App.css b/frontend/src/App.css index 2bddac5..a3b8351 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -4,8 +4,9 @@ @tailwind utilities; /* Custom recipe app styles */ -@layer preflight { - /* headlines */ + +@layer components { + h1 { @apply text-3xl font-black text-blue-900; } @@ -18,18 +19,15 @@ @apply font-semibold; } - /* labels */ - label { - @apply text-gray-600; - } - /* input fields */ input, textarea { @apply p-2 w-full border rounded-md bg-white placeholder-gray-400 border-gray-600 hover:border-blue-800 transition-colors text-gray-600 focus:outline-none focus:border-blue-900; } -} -@layer components { + /* labels */ + label { + @apply text-gray-600; + } /* background */ .app-bg { diff --git a/frontend/src/components/recipes/RecipeListItem.tsx b/frontend/src/components/recipes/RecipeListItem.tsx index 76d13ee..ef12451 100644 --- a/frontend/src/components/recipes/RecipeListItem.tsx +++ b/frontend/src/components/recipes/RecipeListItem.tsx @@ -1,40 +1,41 @@ -import { Link } from "react-router-dom" +import {Link} from "react-router-dom" type RecipeListItemProps = { - title: string - targetPath: string - imageUrl?: string + 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, imageUrl }: RecipeListItemProps) { - return ( - - {/* Optional recipe image */} - {imageUrl ? ( - {title} - ) - :
- -
- } +export default function RecipeListItem({title, targetPath, imageUrl}: RecipeListItemProps) { + return ( + + {/* Image or placeholder */} + {imageUrl ? ( + {title} + ) : ( +
+ +
+ )} - {/* Card content */} -
-

- {title} -

-
- - ) + {/* Recipe name section (takes remaining space) */} +
+ +
+ + ); } +