Add nuxt-visitors

This commit is contained in:
2025-04-17 17:45:33 +02:00
parent 3b9c239a75
commit 65221f8f54
9 changed files with 922 additions and 1469 deletions

View File

@@ -0,0 +1,18 @@
<script lang="ts" setup>
const { visitors } = useVisitors()
</script>
<template>
<UBadge
color="green"
variant="outline"
class="shadow-xl fixed bottom-4 right-4 rounded-full px-1.5 py-0.5"
>
<div class="flex items-center gap-1">
<p class="text-neutral-500">
{{ visitors }}
</p>
<div class="w-3 h-3 bg-green-200/70 dark:bg-green-800/70 rounded-full border-2 border-green-400 dark:border-green-600" />
</div>
</UBadge>
</template>