diff --git a/package-lock.json b/package-lock.json index 62ba2d9..cd7f6d2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "personal", "version": "0.0.0", "dependencies": { + "@vercel/analytics": "^1.6.1", "framer-motion": "^12.12.1", "react": "^19.1.0", "react-dom": "^19.1.0", @@ -1378,6 +1379,44 @@ "@types/react": "^19.0.0" } }, + "node_modules/@vercel/analytics": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.6.1.tgz", + "integrity": "sha512-oH9He/bEM+6oKlv3chWuOOcp8Y6fo6/PSro8hEkgCW3pu9/OiCXiUpRUogDh3Fs3LH2sosDrx8CxeOLBEE+afg==", + "license": "MPL-2.0", + "peerDependencies": { + "@remix-run/react": "^2", + "@sveltejs/kit": "^1 || ^2", + "next": ">= 13", + "react": "^18 || ^19 || ^19.0.0-rc", + "svelte": ">= 4", + "vue": "^3", + "vue-router": "^4" + }, + "peerDependenciesMeta": { + "@remix-run/react": { + "optional": true + }, + "@sveltejs/kit": { + "optional": true + }, + "next": { + "optional": true + }, + "react": { + "optional": true + }, + "svelte": { + "optional": true + }, + "vue": { + "optional": true + }, + "vue-router": { + "optional": true + } + } + }, "node_modules/@vitejs/plugin-react": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.4.1.tgz", diff --git a/package.json b/package.json index ea5c3c7..8e61028 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "preview": "vite preview" }, "dependencies": { + "@vercel/analytics": "^1.6.1", "framer-motion": "^12.12.1", "react": "^19.1.0", "react-dom": "^19.1.0", diff --git a/src/App.jsx b/src/App.jsx index 687a420..1a5a82b 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,4 +1,4 @@ -import { useEffect, useRef, useState } from 'react' +import { useEffect, useRef } from 'react' import * as THREE from 'three' import './App.css' import ParticleBackground from './ParticleBackground' @@ -6,6 +6,7 @@ import { pickInitialOutcomeIndex } from './personalization' import outcomes from './data/outcomes' import useImpactRotation from './hooks/useImpactRotation' import useImpactPopover from './hooks/useImpactPopover' +import { Analytics } from '@vercel/analytics/react' function App() { const mountRef = useRef(null) @@ -18,8 +19,6 @@ function App() { if (!mount) return const width = mount.clientWidth const height = mount.clientHeight - const scene = new THREE.Scene() - const camera = new THREE.PerspectiveCamera(75, width / height, 0.1, 1000) const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true }) renderer.setSize(width, height) mount.appendChild(renderer.domElement) @@ -140,6 +139,7 @@ function App() { + ) }