Files
pichunt/app/components/showcase/NumberCard.vue
T
Pascal 61cc516f47
Docker Image CI / test (push) Failing after 41s
Docker Image CI / deploy (push) Skipped
Tests / unit (push) Failing after 36s
Tests / integration (push) Successful in 1m34s
feat(hunt): track walking distance via GPS, show live locations on map
Add foreground-only GPS distance tracking for hunts
2026-09-27 20:55:58 +02:00

30 lines
601 B
Vue

<script setup lang="ts">
defineProps<{
value?: string;
count?: number | string;
title: string;
icon: string;
}>();
</script>
<template>
<div class="card">
<h3>{{ value ? value : Number(count).toLocaleString('de') }}</h3>
<VaIcon :name="icon" size="10rem" />
<p>{{ title }}</p>
</div>
</template>
<style scoped>
.card {
@apply m-4 grid grid-cols-2 items-center justify-items-center gap-8 rounded-lg p-4 text-3xl shadow-lg;
}
.card > *:nth-child(1) {
@apply col-span-2 mt-auto text-9xl font-bold;
}
.card > *:nth-child(3) {
@apply mr-auto text-left text-6xl;
}
</style>