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>
40 lines
909 B
TypeScript
40 lines
909 B
TypeScript
"use client";
|
|
|
|
import { useEffect, useState } from "react";
|
|
|
|
type RotatingHeadlineProps = {
|
|
items: string[];
|
|
subtext: string;
|
|
intervalSeconds?: number;
|
|
};
|
|
|
|
export default function RotatingHeadline({
|
|
items,
|
|
subtext,
|
|
intervalSeconds = 3,
|
|
}: RotatingHeadlineProps) {
|
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
|
|
useEffect(() => {
|
|
if (items.length <= 1) return;
|
|
|
|
const id = setInterval(() => {
|
|
setActiveIndex((i) => (i + 1) % items.length);
|
|
}, intervalSeconds * 1000);
|
|
|
|
return () => clearInterval(id);
|
|
}, [items.length, intervalSeconds]);
|
|
|
|
return (
|
|
<div className="space-y-2">
|
|
{/* rotating row - key forces remount so a CSS transition can fire */}
|
|
<div className="text-2xl">
|
|
<span key={activeIndex}>{items[activeIndex]}</span>
|
|
</div>
|
|
|
|
{/* static row */}
|
|
<div className="text-neutral-400">{subtext}</div>
|
|
</div>
|
|
);
|
|
}
|