|
|
|
@ -19,12 +19,18 @@ |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<section> |
|
|
|
<section class="canvas"> |
|
|
|
{#each blocks as block, idx (block.id)} |
|
|
|
<FlowItem {onSelect} {block} /> |
|
|
|
{#if idx !== blocks.length - 1} |
|
|
|
<Arrow /> |
|
|
|
{/if} |
|
|
|
<div |
|
|
|
class="block" |
|
|
|
animate:flip={{ duration: 600 }} |
|
|
|
in:fade |
|
|
|
out:fly={{ x: 100 }}> |
|
|
|
<FlowItem {onSelect} {block} /> |
|
|
|
{#if idx !== blocks.length - 1} |
|
|
|
<Arrow /> |
|
|
|
{/if} |
|
|
|
</div> |
|
|
|
{/each} |
|
|
|
</section> |
|
|
|
|
|
|
|
@ -36,4 +42,11 @@ |
|
|
|
align-items: center; |
|
|
|
flex-direction: column; |
|
|
|
} |
|
|
|
|
|
|
|
.block { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
justify-content: flex-start; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|