From fbaff06968f9db7fed31821683837bb0c661654b Mon Sep 17 00:00:00 2001 From: jableader Date: Sun, 14 Jan 2024 12:46:45 +1100 Subject: [PATCH] Meal Planning Page --- src/assets/egg.svg | 2 + src/assets/external-link.svg | 2 + src/components/DatePicker.vue | 113 +++++++++++++++++++++++++++++ src/components/EditMealPage.vue | 77 ++++++++++++++++++-- src/components/IngredientLine.vue | 44 +++++++---- src/components/RecipeCard.vue | 46 ++++++++++++ src/components/RecipeSearchBox.vue | 100 +++++++++++++------------ src/data.js | 2 +- 8 files changed, 316 insertions(+), 70 deletions(-) create mode 100644 src/assets/egg.svg create mode 100644 src/assets/external-link.svg create mode 100644 src/components/DatePicker.vue create mode 100644 src/components/RecipeCard.vue diff --git a/src/assets/egg.svg b/src/assets/egg.svg new file mode 100644 index 0000000..62e2acc --- /dev/null +++ b/src/assets/egg.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/src/assets/external-link.svg b/src/assets/external-link.svg new file mode 100644 index 0000000..5c2b253 --- /dev/null +++ b/src/assets/external-link.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/src/components/DatePicker.vue b/src/components/DatePicker.vue new file mode 100644 index 0000000..d9e949c --- /dev/null +++ b/src/components/DatePicker.vue @@ -0,0 +1,113 @@ + + + + + + \ No newline at end of file diff --git a/src/components/EditMealPage.vue b/src/components/EditMealPage.vue index 22e39c5..dcd70cb 100644 --- a/src/components/EditMealPage.vue +++ b/src/components/EditMealPage.vue @@ -1,17 +1,33 @@ + + \ No newline at end of file diff --git a/src/components/IngredientLine.vue b/src/components/IngredientLine.vue index 0c1f2b6..f553af7 100644 --- a/src/components/IngredientLine.vue +++ b/src/components/IngredientLine.vue @@ -7,9 +7,7 @@

-

-

- +

@@ -21,7 +19,12 @@ {{ ingredient?.unit || 'unit' }} of {{ ingredient?.name || 'name' }} - ({{ ingredient?.product?.name || 'product' }}) + + + ( {{ ingredient?.product?.name }} ) + + ( {{ 'product' }} ) + @@ -33,18 +36,21 @@ -
-
-
-

Ingredient: {{ ingredient.name }}

-

Quantity: {{ ingredient.quantity }}

-

Unit: {{ ingredient.unit }}

-

Preparation: {{ ingredient.preparation }}

-
-
-

Product: {{ ingredient.product.name }}

-

-
+
+
+

Ingredient: {{ ingredient.name }}

+

Quantity: {{ ingredient.quantity }}

+

Unit: {{ ingredient.unit }}

+

Preparation: {{ ingredient.preparation }}

+
+
@@ -186,6 +192,12 @@ export default { width: 100%; } +.product-link-input { + padding: 0.5vh; + color: #777; + margin-top: 0.2vh; +} + .ingredient-details { display: flex; flex-direction: row; diff --git a/src/components/RecipeCard.vue b/src/components/RecipeCard.vue new file mode 100644 index 0000000..a31c3d7 --- /dev/null +++ b/src/components/RecipeCard.vue @@ -0,0 +1,46 @@ + + + + + \ No newline at end of file diff --git a/src/components/RecipeSearchBox.vue b/src/components/RecipeSearchBox.vue index df16c23..0a8cac0 100644 --- a/src/components/RecipeSearchBox.vue +++ b/src/components/RecipeSearchBox.vue @@ -1,10 +1,10 @@