Files
portfolio/components/ui/Cursor.tsx
T
donnyandClaude Opus 5.5 abd5fd4a58 feat: refresh uses, testimonials, and theme
Uses page:
- Merge "For work"/"For fun" into one Hardware list; drop the MS-01.
- Gaming rig becomes the Arch "Daily driver" (9950X, Looking Glass VM);
  custom workstation is now the Proxmox box (5900X, 128GB, RTX 3090).
- Swap MetaMCP -> ContextForge and Open WebUI -> Paseo; add Codex,
  OpenCode, and OpenRouter.

Testimonials:
- Add Douglas Wilhelm; trim all quotes to ~55-60 words of verbatim
  sentences so cards stay the same size.
- Move above projects and restyle as a card with gold-bordered initials,
  inline gold quote marks, and a countdown line under the divider.
- Fix carousel bugs: hooks after an early return, timer not resetting on
  manual navigation, layout shift between quotes of different lengths.
  The countdown animation now drives rotation, and hover/keyboard focus
  pause it.

Theme:
- Centralize colors and fonts as CSS variables in globals.css; the
  neutral-* scale reads from them, and the header's hardcoded bg is gone.
- New defaults: Manrope (body), EB Garamond (display), zinc greys, gold.
- Add a dev-only theme switcher for A/B-ing fonts and palettes; it is
  compiled out of production builds.
- Remove dead runtime-built hover classes on the about page that never
  generated CSS.

Copy: replace em dashes with plain hyphens site-wide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:16:13 -07:00

37 lines
1.0 KiB
TypeScript

"use client";
import { useEffect, useRef } from "react";
export default function Cursor() {
const dotRef = useRef<HTMLDivElement>(null);
useEffect(() => {
// Skip on touchscreens - pointer:fine === false there
if (!window.matchMedia("(pointer: fine)").matches) return;
const el = dotRef.current;
if (!el) return;
const move = (e: MouseEvent) => {
// Two translates: first moves to cursor coords, second re-centers the dot
el.style.transform = `translate(${e.clientX}px, ${e.clientY}px) translate(-50%, -50%)`;
};
window.addEventListener("mousemove", move);
return () => window.removeEventListener("mousemove", move);
}, []);
return (
<div
ref={dotRef}
aria-hidden
// Initial inline transform parks it off-screen until the first mousemove
style={{ transform: "translate(-100px, -100px)" }}
className="
pointer-events-none fixed left-0 top-0 z-[100]
size-3 rounded-full bg-white mix-blend-difference
"
/>
);
}