diff --git a/AquaNet/src/components/ActionCard.svelte b/AquaNet/src/components/ActionCard.svelte index e5de0ab7..97fff86a 100644 --- a/AquaNet/src/components/ActionCard.svelte +++ b/AquaNet/src/components/ActionCard.svelte @@ -5,12 +5,8 @@ export let color: string = '179, 198, 255' export let icon: string - // const iconPos = [ - // [1, 0.5], - // [0.5, 3.5], - // [4, 2], - // [4.5, -1], - // ] + + // Manually positioned icons const iconPos = [ [1, 0.5, 2], [6, 2, 1.5], @@ -21,38 +17,14 @@ [12.5, 2.5, 0.8], [10, 4.4, 0.8], ] - - // function genIconPos() { - // const n = 15 - // const xFactor = 3.8 - // const yFactor = 3.9 - // let iconPos = [] - // let lastYStart = -yFactor + 2 - // for (let i = 0; i < n; i++) { - // lastYStart += 0.5 - // if (lastYStart > 2) lastYStart -= yFactor - // let ratio = (1 - i / n) - // let y = lastYStart - // let x = i * xFactor - // while (y < 6) { - // iconPos.push([x, y, - // ratio / 2 + 0.5, - // 10 + Math.random() * 20 - // ]) - // y += yFactor - // } - // } - // return iconPos - // } - // const iconPos = genIconPos()
- {#each iconPos as [x, y, size, rot], i} - + {#each iconPos as [x, y, size], i} + {/each}