From 9f25f002b6e0bfdb96b49e800634e9f46ec6d23e Mon Sep 17 00:00:00 2001 From: Amalie Date: Fri, 16 Oct 2026 16:30:50 +0200 Subject: [PATCH] =?UTF-8?q?Endret=20design=20p=C3=A5=20RecipeCard=20(#128)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/recipe/RecipeCard.tsx | 39 ++++++++++++--------- client/src/index.css | 1 + 2 files changed, 23 insertions(+), 17 deletions(-) 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;