"use client"; import { m, useReducedMotion } from "motion/react"; import { hero } from "@/lib/portfolio"; 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 headingFragments = hero.heading .split(". ") .map((fragment, index, fragments) => { if (index < fragments.length - 1 && !fragment.endsWith(".")) { return `${fragment}.`; } return fragment; }); return (
[STATUS: ONLINE]

{headingFragments.map((fragment) => ( {fragment} ))}

{hero.subline}

View Work
); }