add analytics

This commit is contained in:
ld3zian 2025-01-26 13:05:06 -07:00
parent f9fc2c4cb0
commit 9f4ec3d3fd
4 changed files with 5 additions and 1 deletions

1
package-lock.json generated
View file

@ -12,6 +12,7 @@
"@astrojs/tailwind": "^5.1.0",
"@astrojs/vercel": "^8.0.2",
"@floating-ui/dom": "^1.6.3",
"@vercel/analytics": "^1.4.1",
"@vercel/kv": "^1.0.1",
"astro": "^5.1.6",
"ioredis": "^5.4.2",

View file

@ -15,6 +15,7 @@
"@astrojs/tailwind": "^5.1.0",
"@astrojs/vercel": "^8.0.2",
"@floating-ui/dom": "^1.6.3",
"@vercel/analytics": "^1.4.1",
"@vercel/kv": "^1.0.1",
"astro": "^5.1.6",
"ioredis": "^5.4.2",

View file

@ -1,5 +1,6 @@
---
import ThemeToggle from '../components/ThemeToggle.astro';
import { Analytics } from '@vercel/analytics/react';
interface Props {
title: string;
@ -101,6 +102,7 @@ const isCreditsPage = Astro.url.pathname === '/credits';
<main id="main-content" class="transition-opacity duration-300">
<slot />
</main>
<Analytics />
</body>
</html>

View file

@ -145,7 +145,7 @@ const credits = [
<div class="mt-12 text-center text-primary/60">
<p class="text-lg">
Thank you to all the creators, artists, and contributors to other projectswho made this project possible! ✨
Thank you to all the creators, artists, and contributors to other projects who made this project possible! ✨
</p>
</div>
</main>