mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-02-03 05:31:44 +01:00
Add nuxt-visitors
This commit is contained in:
18
app/components/AppVisitors.vue
Normal file
18
app/components/AppVisitors.vue
Normal 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>
|
||||
Reference in New Issue
Block a user