add servings information to recipe

This commit is contained in:
Anika Raemer 2025-09-07 15:32:43 +02:00
parent 5c8ddf96f2
commit fee47da55d
7 changed files with 71 additions and 8 deletions

View file

@ -8,12 +8,28 @@ export const recipes: Recipe[] = [
{
id: "1",
title: "Spaghetti Bolognese",
servings: { amount: 1, unit: "Person"},
ingredients: [
{ name: "Spaghetti", amount: 200, unit: "g" },
{ name: "Ground Beef", amount: 300, unit: "g" },
{ name: "Tomato Sauce", amount: 400, unit: "ml" }
],
instructions: "Cook pasta. Prepare sauce. Mix together. Serve hot.",
photoUrl: "https://source.unsplash.com/400x300/?spaghetti"
}
imageUrl: "https://source.unsplash.com/400x300/?spaghetti"
},
{
id: "2",
title: "Spaghetti Carbonara",
servings: { amount: 4, unit: "Persons"},
ingredients: [
{ name: "Spaghetti", amount: 500, unit: "g" },
{ name: "Bacon", amount: 150, unit: "g" },
{ name: "Cream", amount: 200, unit: "ml" },
{ name: "Onion", amount: 1},
{ name: "Parmesan cheese", amount: 200, unit: "g"},
{ name: "Olives", amount: 100, unit: "g"}
],
instructions: "Cook pasta. Prepare sauce. Mix together. Serve hot.",
imageUrl: "https://source.unsplash.com/400x300/?spaghetti"
},
]