c4ed23a3d9
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 8s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 1m22s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Failing after 26s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 4s
Backend CI / build-and-test (pull_request) Successful in 54s
Frontend CI / build-and-check (pull_request) Failing after 5m4s
50 lines
1.1 KiB
Vue
50 lines
1.1 KiB
Vue
<script setup lang="ts">
|
|
import AppIcon from '@/components/ui/AppIcon.vue'
|
|
|
|
defineProps<{ amount: number }>()
|
|
defineEmits<{ click: [] }>()
|
|
</script>
|
|
|
|
<template>
|
|
<button class="coin-chip" type="button" @click="$emit('click')">
|
|
<AppIcon class="coin-icon" icon="coin" :size="16" />
|
|
<span class="coin-amount">{{ amount }}</span>
|
|
</button>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.coin-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
background: var(--color-primary-a10);
|
|
border: 1px solid var(--color-coin-chip-border);
|
|
border-radius: 20px;
|
|
padding: 5px 12px;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
transition:
|
|
background 0.2s,
|
|
border-color 0.2s,
|
|
box-shadow 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
.coin-chip:hover {
|
|
background: var(--color-primary-a18);
|
|
border-color: var(--color-primary-a50);
|
|
}
|
|
.coin-chip:focus-visible {
|
|
outline: 2px solid var(--color-primary-a45);
|
|
outline-offset: 2px;
|
|
}
|
|
.coin-icon {
|
|
color: var(--color-coin-chip-text);
|
|
}
|
|
.coin-amount {
|
|
font-weight: 800;
|
|
font-size: 14px;
|
|
color: var(--color-coin-chip-text);
|
|
}
|
|
</style>
|