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> <template>
<div class="collect-quotes__container"> <div class="collect-quotes__container">
<h1>collect quotes</h1> <QuoteCard v-for="quote in quotes" :key="quote.id" :quote="quote" :editable="true" />
<Quote v-for="quote in quotes" :key="quote.id" :quote="quote" :editable="true" />
</div> </div>
</template> </template>
@ -11,6 +10,22 @@ const quotes = [
id: 1, id: 1,
quote: 'Somna imanus it vorgenstra exa al termanum.', 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> </script>
@ -18,9 +33,7 @@ const quotes = [
.collect-quotes { .collect-quotes {
&__container { &__container {
display: flex; display: flex;
flex-direction: column; flex-wrap: wrap;
width: 100%;
height: 100%;
} }
} }
</style> </style>

View File

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