2021-10-15 18:45:41 +00:00
|
|
|
<template>
|
2021-10-29 20:13:38 +00:00
|
|
|
<div class="collect-quote">
|
2021-11-07 22:31:04 +00:00
|
|
|
<div class="collect-quote__container">
|
|
|
|
<div class="collect-quote__quote-container">
|
|
|
|
<h2>Preview:</h2>
|
|
|
|
<div class="collect-quote__quote">
|
|
|
|
<Quote :text="quote.quote" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="collect-quote__inputgroup">
|
|
|
|
<form>
|
|
|
|
<input type="hidden" name="id" :value="quote.id" />
|
|
|
|
<textarea v-model="quote.quote" cols="60" rows="4" />
|
|
|
|
</form>
|
|
|
|
<button @click="save">Save</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-15 18:45:41 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2021-10-29 20:13:38 +00:00
|
|
|
|
2021-10-15 18:45:41 +00:00
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: ['quote'],
|
|
|
|
methods: {
|
2021-10-29 20:13:38 +00:00
|
|
|
save() {
|
|
|
|
this.$nuxt.$emit('save-quote', this.quote)
|
|
|
|
}
|
2021-10-15 18:45:41 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.collect-quote {
|
2021-11-07 22:31:04 +00:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
2021-10-29 20:13:38 +00:00
|
|
|
color: #ffffff;
|
2021-11-07 22:31:04 +00:00
|
|
|
|
|
|
|
&__container {
|
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 80%;
|
|
|
|
height: 50%;
|
|
|
|
margin: 0 10%;
|
|
|
|
background-color: #402080;
|
|
|
|
border: 1px solid #ffffff;
|
|
|
|
border-radius: 20px;
|
|
|
|
padding: 48px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__quote-container {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 50%;
|
|
|
|
height: 100%;
|
|
|
|
border-right: 1px solid #ffffff;
|
|
|
|
padding: 0 48px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__quote {
|
|
|
|
align-self: center;
|
|
|
|
margin: 0 48px;
|
|
|
|
max-width: 400px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__inputgroup {
|
|
|
|
}
|
2021-10-15 18:45:41 +00:00
|
|
|
}
|
|
|
|
</style>
|