feat(portfolio): add hero command deck with canvas signal grid

This commit is contained in:
kbot
2026-07-06 20:34:19 -05:00
parent d332691e7e
commit d4a6819093
2 changed files with 12 additions and 10 deletions

View File

@@ -6,17 +6,17 @@ import { HeroCanvas } from "./HeroCanvas";
const paletteEventName = "blacksite:palette";
function openCommandPalette() {
if (typeof window === "undefined") {
return;
}
window.dispatchEvent(new CustomEvent(paletteEventName));
}
export function Hero() {
const shouldReduceMotion = useReducedMotion();
const openCommandPalette = () => {
if (typeof window === "undefined") {
return;
}
window.dispatchEvent(new CustomEvent(paletteEventName));
};
return (
<section
aria-labelledby="hero-heading"