T45b Site · Iso: isometric line miniatures on a canvas, hidden lines removed, cells on a marimba beat, playable under the pointer, still under reduced motion

This commit is contained in:
ZacharyZhang-NY committed 2026-10-01 08:38:05 -04:00
1 parent 8a5ce82119
commit 3aa895c24d
13 files changed
+488 -15

No files matched your search

+5
View File
@@ -1,11 +1,13 @@
import { Link, Outlet } from "@tanstack/react-router";
import { REPO } from "./data";
import { Icon } from "./icons";
import { setSound, useSound } from "./iso/marimba";
import { setMode, useMode } from "./theme";
function Header() {
const theme = useMode();
const dark = theme === "dark";
const sound = useSound();
return (
<header className="bar">
<Link to="/" className="brand">
@@ -17,6 +19,9 @@ function Header() {
</Link>
</nav>
<div className="end">
<button className="tool" aria-label={sound ? "Sound off" : "Sound on"} aria-pressed={sound} onClick={() => setSound(!sound)}>
<Icon name={sound ? "Sound" : "VolumeCross"} />
</button>
<button className="tool" aria-label={dark ? "Light mode" : "Dark mode"} onClick={() => setMode(dark ? "light" : "dark")}>
<Icon name={dark ? "Sun" : "Moon"} />
</button>