feat: add operational use cases console
This commit is contained in:
1 parent
78d1f0e308
commit
8d687ad05b
19 files changed
+4707
-12
No files matched your search
@@ -0,0 +1,34 @@
|
||||
<script setup lang="ts">
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
value: number
|
||||
tone?: 'accent' | 'muted' | 'subtle'
|
||||
label?: string
|
||||
height?: 'sm' | 'md'
|
||||
}>(),
|
||||
{
|
||||
tone: 'accent',
|
||||
label: '',
|
||||
height: 'sm',
|
||||
},
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="w-full overflow-hidden rounded-full border border-white/10 bg-[#081723]"
|
||||
:class="height === 'md' ? 'h-2' : 'h-1.5'"
|
||||
role="img"
|
||||
:aria-label="label || `${Math.round(value)} percent`"
|
||||
>
|
||||
<div
|
||||
class="h-full rounded-full transition-all duration-500"
|
||||
:class="{
|
||||
'bg-[#00C3CD] shadow-[0_0_8px_rgba(0,195,205,0.55)]': tone === 'accent',
|
||||
'bg-[#94A3B8]': tone === 'muted',
|
||||
'bg-[#475569]': tone === 'subtle',
|
||||
}"
|
||||
:style="{ width: `${Math.max(0, Math.min(100, value))}%` }"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user