diff --git a/site/src/components/StatsView.svelte b/site/src/components/StatsView.svelte index 26814f0..315255d 100644 --- a/site/src/components/StatsView.svelte +++ b/site/src/components/StatsView.svelte @@ -1,39 +1,114 @@ + +
+ {#each sports as s} + + {/each} + {#if all.length > 0} + + {activities.length} {activities.length === 1 ? 'activity' : 'activities'} + + {/if} +
+ {#if loading}
{:else} @@ -132,9 +224,8 @@ {month} + >{month} {/each} -
@@ -154,8 +245,8 @@ {#each week as date}
{/each}
@@ -165,12 +256,24 @@
-
- Less - {#each ['#27272a','#0e4c5a','#0a6e82','#0891b2','#06b6d4','#00c8ff'] as c} -
- {/each} - More +
+
+ Less + {#each legendSwatches as c} +
+ {/each} + More ({Math.round(maxDailyKm)} km max) +
+ {#if sportsInData.length > 1} +
+ {#each sportsInData as sp} + + + {sportIcon(sp)} + + {/each} +
+ {/if}
{/if}