feat: build UI

This commit is contained in:
Viet An
2026-04-09 17:20:47 +07:00
parent bcfda00993
commit 631527225e
36 changed files with 11305 additions and 1123 deletions

View File

@@ -0,0 +1,33 @@
<script setup>
const props = defineProps({
id: Number,
code: String,
name: String,
value: Number,
icon: String,
color: String,
})
</script>
<template>
<div class="cell">
<div class="card" :style="{ border: `1px solid var(--bulma-${color}-70)` }">
<div class="card-content is-flex is-flex-direction-column is-align-items-center is-gap-1">
<div
:class="[
'p-3 is-flex rounded-full',
`has-background-${color}-90`,
`has-text-${color}-40`,
]" >
<Icon
:name="icon"
:size="24"
/>
</div>
<div class="is-flex is-flex-direction-column is-align-items-center">
<p class="fs-24 font-bold">{{ value }}</p>
<p class="has-text-grey">{{ name }}</p>
</div>
</div>
</div>
</div>
</template>