Alignment issues and what not
More commits incoming
This commit is contained in:
@@ -30,67 +30,84 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="nav-background"/>
|
|
||||||
|
|
||||||
<!-- input field -->
|
<!-- input field -->
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<v-item-group>
|
<v-app>
|
||||||
<v-container>
|
|
||||||
<v-row>
|
</v-app>
|
||||||
<v-col
|
<v-container
|
||||||
v-for="recipe in recipes"
|
fluid
|
||||||
:key="recipe.id"
|
dark
|
||||||
cols="4"
|
style="background-color: transparent; height: 100%"
|
||||||
md="3"
|
>
|
||||||
>
|
<v-row
|
||||||
<v-item>
|
align="align">
|
||||||
<v-card
|
<v-col
|
||||||
class="mx-auto"
|
v-for="recipe in recipes"
|
||||||
max-width="400"
|
:key="recipe.id"
|
||||||
|
cols="4"
|
||||||
|
sm="3"
|
||||||
|
>
|
||||||
|
<v-item>
|
||||||
|
<v-card
|
||||||
|
class="pa-2"
|
||||||
|
min-width="350"
|
||||||
|
max-width="350"
|
||||||
|
min-height="400"
|
||||||
|
max-height="400"
|
||||||
|
tile
|
||||||
|
rounded = true
|
||||||
|
color="#385F73"
|
||||||
|
dark
|
||||||
|
>
|
||||||
|
<v-img
|
||||||
|
class="white--text align-end"
|
||||||
|
height="200px"
|
||||||
|
:src="recipe.image"
|
||||||
>
|
>
|
||||||
<v-img
|
</v-img>
|
||||||
class="white--text align-end"
|
|
||||||
height="200px"
|
<v-card-title
|
||||||
:src="recipe.image"
|
style="word-break: break-word"
|
||||||
|
>{{ recipe.title }}</v-card-title>
|
||||||
|
<v-card-subtitle class="pb-0">
|
||||||
|
Ready in {{ recipe.readyInMinutes }} minutes
|
||||||
|
</v-card-subtitle>
|
||||||
|
|
||||||
|
<!-- <v-card-text class="text--primary">-->
|
||||||
|
<!-- <div>Whitehaven Beach</div>-->
|
||||||
|
|
||||||
|
<!-- <div>Whitsunday Island, Whitsunday Islands</div>-->
|
||||||
|
<!-- </v-card-text>-->
|
||||||
|
|
||||||
|
<v-card-actions>
|
||||||
|
<!-- <v-btn-->
|
||||||
|
<!-- color="orange"-->
|
||||||
|
<!-- text-->
|
||||||
|
<!-- >-->
|
||||||
|
<!-- Share-->
|
||||||
|
<!-- </v-btn>-->
|
||||||
|
|
||||||
|
<v-btn
|
||||||
|
|
||||||
|
:href="recipe.sourceUrl"
|
||||||
|
text
|
||||||
>
|
>
|
||||||
<v-card-title>{{recipe.title}}</v-card-title>
|
<!-- @click = ""-->
|
||||||
</v-img>
|
Cook
|
||||||
|
</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-item>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-container>
|
||||||
|
|
||||||
<v-card-subtitle class="pb-0">
|
|
||||||
{{ recipe.spoonacularSourceUrl }}
|
|
||||||
</v-card-subtitle>
|
|
||||||
|
|
||||||
<v-card-text class="text--primary">
|
|
||||||
<div>Whitehaven Beach</div>
|
|
||||||
|
|
||||||
<div>Whitsunday Island, Whitsunday Islands</div>
|
|
||||||
</v-card-text>
|
|
||||||
|
|
||||||
<v-card-actions>
|
|
||||||
<v-btn
|
|
||||||
color="orange"
|
|
||||||
text
|
|
||||||
>
|
|
||||||
Share
|
|
||||||
</v-btn>
|
|
||||||
|
|
||||||
<v-btn
|
|
||||||
color="orange"
|
|
||||||
text
|
|
||||||
>
|
|
||||||
Explore
|
|
||||||
</v-btn>
|
|
||||||
</v-card-actions>
|
|
||||||
</v-card>
|
|
||||||
</v-item>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
</v-container>
|
|
||||||
</v-item-group>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -98,43 +115,6 @@
|
|||||||
</body>
|
</body>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- input field -->
|
|
||||||
|
|
||||||
<!-- <div class="field-header-box">-->
|
|
||||||
<!-- <div class="inputField-header">-->
|
|
||||||
<!-- <input class="newItemName" id="inputTextField" autofocus autocomplete="off" placeholder="Add here..." v-model="newItem"-->
|
|
||||||
<!-- @keyup.enter="addItem"/>-->
|
|
||||||
<!-- <label for="inputTextField" class="formLabel">-->
|
|
||||||
<!-- Add here ...-->
|
|
||||||
<!-- </label>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
|
|
||||||
<!-- Recipe element -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- response element -->
|
|
||||||
|
|
||||||
<!-- <div class="item-section" v-show="items.length" v-cloak>-->
|
|
||||||
<!-- <ul class="item-list">-->
|
|
||||||
<!-- <li v-for="item in items"-->
|
|
||||||
<!-- class="item"-->
|
|
||||||
<!-- :key="item.id">-->
|
|
||||||
<!-- <div class="view">-->
|
|
||||||
<!-- <label class="item-name" @dblclick="editItem(item)">-->
|
|
||||||
<!-- <span class="item-name-fame">{{ item.name.toUpperCase() }} </span>-->
|
|
||||||
<!-- <span class="item-information-frame">{{ item.quantity }} {{ item.unit.toLowerCase() }}</span>-->
|
|
||||||
<!-- </label>-->
|
|
||||||
<!-- <button class="destroy" @click="removeItem(item)"></button>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
<!-- </li>-->
|
|
||||||
<!-- </ul>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import api from '../Api';
|
import api from '../Api';
|
||||||
@@ -148,6 +128,7 @@ const Recipes = {
|
|||||||
// app initial state
|
// app initial state
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
|
items: [],
|
||||||
recipes: [],
|
recipes: [],
|
||||||
loading: true,
|
loading: true,
|
||||||
error: null,
|
error: null,
|
||||||
@@ -314,12 +295,14 @@ body{
|
|||||||
/* item section */
|
/* item section */
|
||||||
|
|
||||||
.item-section{
|
.item-section{
|
||||||
z-index: 0;
|
z-index: 2;
|
||||||
position: center;
|
position: absolute;
|
||||||
|
top: 80%;
|
||||||
|
left: 50%;
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
margin-left: 0px;
|
margin-left: 30px;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user