Rough out chat

This commit is contained in:
Jon Staab
2024-10-08 11:39:16 -07:00
parent 7ffd02b736
commit 8698dcc359
59 changed files with 833 additions and 437 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
</style>
<script lang="ts">
import {clamp} from '@welshman/lib'
import {clamp} from "@welshman/lib"
export let score
export let max = 100
@@ -26,7 +26,7 @@
$: normalizedScore = clamp([0, max], score) / max
$: dashOffset = 100 - 44 * normalizedScore
$: style = `transform: rotate(${135 - normalizedScore * 180}deg)`
$: stroke = active ? 'var(--primary)' : 'var(--base-content)'
$: stroke = active ? "var(--primary)" : "var(--base-content)"
</script>
<div class="relative h-[14px] w-[14px]">