feat: add quote cards in collect mode

This commit is contained in:
Settel 2022-08-08 22:53:10 +02:00
parent 72b2c7c76d
commit 5e58c9c994
2 changed files with 23 additions and 8 deletions

View File

@ -1,7 +1,6 @@
<template>
<div class="collect-quotes__container">
<h1>collect quotes</h1>
<Quote v-for="quote in quotes" :key="quote.id" :quote="quote" :editable="true" />
<QuoteCard v-for="quote in quotes" :key="quote.id" :quote="quote" :editable="true" />
</div>
</template>
@ -11,6 +10,22 @@ const quotes = [
id: 1,
quote: 'Somna imanus it vorgenstra exa al termanum.',
},
{
id: 2,
quote: 'Kerbositus con vai quel verendenguum. Abtanosi con vai stice vermadostuos, na tum gehomo asbabasictnem orb eterum (phlegtum aka iborn).',
},
{
id: 3,
quote: 'blah! #1',
},
{
id: 4,
quote: 'blah! #2',
},
{
id: 5,
quote: 'blah! #3',
},
]
</script>
@ -18,9 +33,7 @@ const quotes = [
.collect-quotes {
&__container {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
flex-wrap: wrap;
}
}
</style>

View File

@ -25,18 +25,20 @@ defineProps<{
&__container {
display: flex;
align-items: center;
width: 460px;
height: 210px;
width: 300px;
height: 150px;
margin: 32px;
padding: 32px;
background-color: $quote-background-color;
border: $quote-border;
border-radius: 0 16px 0 0;
color: $quote-text-color;
}
&__quote {
font-family: $font-secondary;
font-weight: bold;
font-size: 24px;
border-radius: 0 16px 0 0;
text-align: center;
}
}