Update example
This commit is contained in:
@@ -48,16 +48,16 @@
|
|||||||
export let dots = true
|
export let dots = true
|
||||||
|
|
||||||
const colors = [
|
const colors = [
|
||||||
'#e5f9f0',
|
{ color: '#e5f9f0', text: '0' },
|
||||||
'#ccf3e2',
|
{ color: '#ccf3e2', text: '1' },
|
||||||
'#b2edd3',
|
{ color: '#b2edd3', text: '2' },
|
||||||
'#99e7c5',
|
{ color: '#99e7c5', text: '3' },
|
||||||
'#7fe1b7',
|
{ color: '#7fe1b7', text: '4' },
|
||||||
'#66dba8',
|
{ color: '#66dba8', text: '5' },
|
||||||
'#4cd59a',
|
{ color: '#4cd59a', text: '6' },
|
||||||
'#32cf8b',
|
{ color: '#32cf8b', text: '7' },
|
||||||
'#19c97d',
|
{ color: '#19c97d', text: '8' },
|
||||||
'#00c36f'
|
{ color: '#00c36f', text: '9' }
|
||||||
]
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -73,12 +73,12 @@
|
|||||||
{autoplayDirection}
|
{autoplayDirection}
|
||||||
{dots}
|
{dots}
|
||||||
>
|
>
|
||||||
{#each colors as color (color)}
|
{#each colors as { color, text } (color)}
|
||||||
<div
|
<div
|
||||||
class="color-container"
|
class="color-container"
|
||||||
style="background-color: {color};"
|
style="background-color: {color};"
|
||||||
>
|
>
|
||||||
<p>{color}</p>
|
<p>{text}</p>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</Carousel>
|
</Carousel>
|
||||||
|
|||||||
Reference in New Issue
Block a user