Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { useEffect, useRef, useState } from 'react'
import { useEffect, useRef } from 'react'
import * as THREE from 'three'
import './App.css'
import ParticleBackground from './ParticleBackground'
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)
Expand All @@ -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)
Expand Down Expand Up @@ -140,6 +139,7 @@ function App() {
</a>
</div>
</main>
<Analytics />
</div>
)
}
Expand Down