-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* TODO: change image * TODO: randomize Bell suggestion
- Loading branch information
Showing
3 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<template> | ||
<v-container> | ||
<h2>Best Recipes</h2> | ||
<v-card | ||
class="mx-auto my-12" | ||
max-width="374" | ||
v-for="recipe in recipes" | ||
:key="recipe.id" | ||
> | ||
<v-img | ||
height="250" | ||
src="https://cdn.vuetifyjs.com/images/cards/cooking.png" | ||
></v-img> | ||
|
||
<v-card-title>{{ recipe.name }}</v-card-title> | ||
|
||
<v-card-text> | ||
<div class="my-4 text-subtitle-1">Ingredients</div> | ||
<div> | ||
<li | ||
v-for="ingredient in recipe.ingredientWithQuantities" | ||
:key="ingredient" | ||
> | ||
{{ ingredient }} | ||
</li> | ||
</div> | ||
<div class="my-4">Preparation</div> | ||
<div> | ||
<li v-for="step in recipe.steps" :key="step">{{ step }}</li> | ||
</div> | ||
</v-card-text> | ||
|
||
<v-divider class="mx-4"></v-divider> | ||
|
||
<v-card-title>Perfect fit:</v-card-title> | ||
|
||
<v-card-text> | ||
<v-chip-group column> | ||
<v-chip>Bell Salami</v-chip> | ||
|
||
<v-chip class="deep-purple accent-4 white--text" | ||
>Bell Cervelat</v-chip | ||
> | ||
<v-chip>Bell Steak</v-chip> | ||
</v-chip-group> | ||
</v-card-text> | ||
</v-card> | ||
</v-container> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "Recipe", | ||
data: () => ({ | ||
recipes: [ | ||
{ | ||
id: 1, | ||
name: "Grilled Cheese", | ||
ingredientWithQuantities: [ | ||
"1 teaspoon of salt", | ||
"chicken", | ||
"tomato sauce", | ||
], | ||
steps: ["Step 1", "Step 2", "Step 3"], | ||
}, | ||
{ | ||
id: 2, | ||
name: "Grilled Cheese 2", | ||
ingredientWithQuantities: [ | ||
"1 teaspoon of pepper", | ||
"fresh chicken", | ||
"tomato sauce extra", | ||
], | ||
steps: ["Step 1", "Step 2", "Step 3"], | ||
}, | ||
], | ||
}), | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
<template> | ||
<h1>IM THE DETAIL VIEW</h1> | ||
<recipe /> | ||
</template> | ||
|
||
<script> | ||
import Recipe from '../components/Recipe.vue' | ||
export default { | ||
name: 'Detail', | ||
components: { | ||
Recipe | ||
}, | ||
} | ||
} | ||
</script> |