diff --git a/client/src/components/recipe/RecipeCard.tsx b/client/src/components/recipe/RecipeCard.tsx index 30fd3ee..57609b1 100644 --- a/client/src/components/recipe/RecipeCard.tsx +++ b/client/src/components/recipe/RecipeCard.tsx @@ -2,6 +2,8 @@ import type { Recipe } from '../../types/recipe'; import { Link } from 'react-router'; import { Rating } from '@mui/material'; import { RecipeImage } from '../ui/RecipeImage'; +import RestaurantIcon from '@mui/icons-material/Restaurant'; +import AccessTimeIcon from '@mui/icons-material/AccessTime'; // Sier hva komponenten får inn. type RecipeCardProps = { @@ -11,23 +13,26 @@ type RecipeCardProps = { export function RecipeCard({ recipe }: RecipeCardProps) { return ( -
- -

{recipe.title}

-
-

{recipe.prepTimeMinutes} minutter

-

{recipe.servings} porsjoner

-
-
- {recipe.averageRating !== null ?( - - ) : (

Ingen rating ennå

- )} +
+ +
+

{recipe.title}

+
+

{recipe.prepTimeMinutes} min

+

·

+

{recipe.servings} porsjoner

+
+
+ {recipe.averageRating !== null ?( + + ) : (

Ingen rating ennå

+ )} +
diff --git a/client/src/index.css b/client/src/index.css index cfbadad..0c3e02a 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -19,6 +19,7 @@ --color-pink-dark: #ddbaae; --color-peach: #efd7c4; --color-sage: #c2c395; + --color-white:#ffffff; /* Typografi */ --font-heading: "Tangerine", cursive;