add new quote button

This commit is contained in:
Settel 2021-11-27 21:10:09 +01:00
parent 15493e2551
commit a4a499518e
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
<template>
<div class="add-new-quote">
<button class="add-new-quote__button" @click="newQuote">+</button>
</div>
</template>
<script>
export default {
methods: {
newQuote() {
this.$nuxt.$emit('create-quote')
},
},
}
</script>
<style lang="scss">
.add-new-quote {
&__button {
width: 100px;
height: 48px;
border: 4px solid #c0c060;
border-radius: 8px;
color: #ffff80;
background-color: #40a020;
font-size: 24px;
// font-family: Dosis;
font-weight: 800;
text-align: center;
cursor: pointer;
&:hover {
background-color: #60c040;
color: #ffffc0;
}
}
}
</style>

View File

@ -1,7 +1,9 @@
<template>
<div>
<!-- <CollectQuotesExplain /> -->
<AddNewQuote />
<QuoteListItem v-for="quote in quotes" :key="quote.id" :quote="quote" />
<AddNewQuote v-if="quotes.length > 0"/>
<CollectQuote v-if="showCollectQuoteDialog" :quote="collectQuote" />
</div>
</template>