2020-07-29 20:09:05 +00:00
|
|
|
<div class="layers">
|
2023-04-27 16:17:08 +00:00
|
|
|
{#each layers as layer, i (i)}
|
2020-07-29 20:09:05 +00:00
|
|
|
<div class="layer">
|
2023-04-27 16:17:08 +00:00
|
|
|
{#each Array.from({ length: layer }) as j}
|
2022-03-01 17:42:33 +00:00
|
|
|
<div class="cell" />
|
2020-07-29 20:09:05 +00:00
|
|
|
{/each}
|
|
|
|
</div>
|
|
|
|
{/each}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
2023-04-27 16:17:08 +00:00
|
|
|
export let layers = [];
|
2020-07-29 20:09:05 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
2022-03-01 17:42:33 +00:00
|
|
|
.cell {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 0.5em;
|
2023-05-08 19:20:17 +00:00
|
|
|
width: 1.4rem;
|
|
|
|
height: 1.4rem;
|
2022-03-01 17:42:33 +00:00
|
|
|
border: 1px solid black;
|
2023-05-08 19:20:17 +00:00
|
|
|
border-radius: 1rem;
|
2022-03-01 17:42:33 +00:00
|
|
|
}
|
2020-07-29 20:09:05 +00:00
|
|
|
.layers {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column-reverse;
|
2023-04-27 16:17:08 +00:00
|
|
|
margin-bottom: 1em;
|
2020-07-29 20:09:05 +00:00
|
|
|
}
|
|
|
|
</style>
|