diff --git a/package-lock.json b/package-lock.json index e79e814..ce3a2a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,8 +11,6 @@ "dependencies": { "@fontsource-variable/inter": "^5.3.0", "@fontsource-variable/jetbrains-mono": "^5.3.0", - "@fontsource-variable/plus-jakarta-sans": "^5.3.0", - "@fontsource/ibm-plex-mono": "^5.3.0", "lucide-react": "^1.50.0", "motion": "^13.5.1", "react": "^19.3.0", @@ -773,24 +771,6 @@ "url": "https://github.com/sponsors/ayuhito" } }, - "node_modules/@fontsource-variable/plus-jakarta-sans": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/@fontsource-variable/plus-jakarta-sans/-/plus-jakarta-sans-5.3.0.tgz", - "integrity": "sha512-/l/4r0yyWK9JzAlmA0LiYgGgmJe/Gswt4jTJEzr5QhJfwMbvJZDmYWyW0M4X7yCK69BajMVlV/Lx8g7WDc1+sw==", - "license": "OFL-1.1", - "funding": { - "url": "https://github.com/sponsors/ayuhito" - } - }, - "node_modules/@fontsource/ibm-plex-mono": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/@fontsource/ibm-plex-mono/-/ibm-plex-mono-5.3.0.tgz", - "integrity": "sha512-eTgnZjZEGk1QtD3ZstF+Vclo2HLAni8YMy34/DxllwZvyz1lR/1RF/xTiAquOBO7MvqBx8D2Ig2WCPMVfdZu7Q==", - "license": "OFL-1.1", - "funding": { - "url": "https://github.com/sponsors/ayuhito" - } - }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", diff --git a/package.json b/package.json index 613d9e6..958d575 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,6 @@ "dependencies": { "@fontsource-variable/inter": "^5.3.0", "@fontsource-variable/jetbrains-mono": "^5.3.0", - "@fontsource-variable/plus-jakarta-sans": "^5.3.0", - "@fontsource/ibm-plex-mono": "^5.3.0", "lucide-react": "^1.50.0", "motion": "^13.5.1", "react": "^19.3.0", diff --git a/src/components/bits/motion.tsx b/src/components/bits/motion.tsx index de3b722..71ae34e 100644 --- a/src/components/bits/motion.tsx +++ b/src/components/bits/motion.tsx @@ -6,10 +6,10 @@ * this project's design tokens and the `motion` runtime already in use. */ import { - useCallback, useEffect, useMemo, useRef, useState, type CSSProperties, type ReactNode, + useEffect, useMemo, useRef, useState, type CSSProperties, type ReactNode, } from 'react'; import { - AnimatePresence, motion, useInView, useMotionValue, useSpring, useTransform, + AnimatePresence, motion, useInView, useMotionValue, useSpring, } from 'motion/react'; const EASE = [0.2, 0.8, 0.2, 1] as const; @@ -40,35 +40,11 @@ export function Aurora({ className = '' }: { className?: string }) { ); } -/* ----------------------------------------------------------------- DotGrid */ -/** Dot lattice that brightens around the cursor. */ -export function DotGrid({ className = '' }: { className?: string }) { - const ref = useRef(null); - useEffect(() => { - const el = ref.current; - if (!el) return; - const onMove = (e: PointerEvent) => { - const r = el.getBoundingClientRect(); - el.style.setProperty('--mx', `${e.clientX - r.left}px`); - el.style.setProperty('--my', `${e.clientY - r.top}px`); - }; - window.addEventListener('pointermove', onMove, { passive: true }); - return () => window.removeEventListener('pointermove', onMove); - }, []); - return