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>
73 lines
2.5 KiB
TypeScript
73 lines
2.5 KiB
TypeScript
// Dev-only: alternative fonts for the theme switcher. Imported by app/layout.tsx
|
|
// behind a NODE_ENV check, so none of these ship to production. The current
|
|
// fonts (Manrope, EB Garamond) are loaded by the layout itself.
|
|
import {
|
|
DM_Sans,
|
|
Fraunces,
|
|
Geist,
|
|
IBM_Plex_Sans,
|
|
Instrument_Serif,
|
|
Inter,
|
|
Newsreader,
|
|
Playfair_Display,
|
|
} from "next/font/google";
|
|
|
|
const geist = Geist({ variable: "--font-opt-geist", subsets: ["latin"], preload: false });
|
|
const plexSans = IBM_Plex_Sans({
|
|
variable: "--font-opt-plex-sans",
|
|
subsets: ["latin"],
|
|
weight: ["400", "500", "600", "700"],
|
|
preload: false,
|
|
});
|
|
const inter = Inter({ variable: "--font-opt-inter", subsets: ["latin"], preload: false });
|
|
const dmSans = DM_Sans({ variable: "--font-opt-dm-sans", subsets: ["latin"], preload: false });
|
|
|
|
const newsreader = Newsreader({
|
|
variable: "--font-opt-newsreader",
|
|
subsets: ["latin"],
|
|
style: ["normal", "italic"],
|
|
preload: false,
|
|
});
|
|
const fraunces = Fraunces({
|
|
variable: "--font-opt-fraunces",
|
|
subsets: ["latin"],
|
|
style: ["normal", "italic"],
|
|
preload: false,
|
|
});
|
|
const playfair = Playfair_Display({
|
|
variable: "--font-opt-playfair",
|
|
subsets: ["latin"],
|
|
style: ["normal", "italic"],
|
|
preload: false,
|
|
});
|
|
const instrument = Instrument_Serif({
|
|
variable: "--font-opt-instrument",
|
|
subsets: ["latin"],
|
|
weight: "400",
|
|
style: ["normal", "italic"],
|
|
preload: false,
|
|
});
|
|
|
|
/** Class names that define every alternative font's CSS variable; goes on <html>. */
|
|
export const fontVariables = [geist, plexSans, inter, dmSans, newsreader, fraunces, playfair, instrument]
|
|
.map((f) => f.variable)
|
|
.join(" ");
|
|
|
|
export type FontOption = { id: string; label: string; variable: string };
|
|
|
|
export const sansOptions: FontOption[] = [
|
|
{ id: "manrope", label: "Manrope (current)", variable: "--font-manrope" },
|
|
{ id: "inter", label: "Inter (previous)", variable: "--font-opt-inter" },
|
|
{ id: "geist", label: "Geist", variable: "--font-opt-geist" },
|
|
{ id: "plex-sans", label: "IBM Plex Sans", variable: "--font-opt-plex-sans" },
|
|
{ id: "dm-sans", label: "DM Sans", variable: "--font-opt-dm-sans" },
|
|
];
|
|
|
|
export const serifOptions: FontOption[] = [
|
|
{ id: "garamond", label: "EB Garamond (current)", variable: "--font-garamond" },
|
|
{ id: "instrument", label: "Instrument Serif (previous)", variable: "--font-opt-instrument" },
|
|
{ id: "newsreader", label: "Newsreader", variable: "--font-opt-newsreader" },
|
|
{ id: "fraunces", label: "Fraunces", variable: "--font-opt-fraunces" },
|
|
{ id: "playfair", label: "Playfair Display", variable: "--font-opt-playfair" },
|
|
];
|