fix: computer animation positioning

This commit is contained in:
jwinterm
2026-01-20 09:34:14 -05:00
parent 0df4c3d09c
commit 6f8c2ba325
3 changed files with 66 additions and 9 deletions
@@ -13,7 +13,11 @@ const NebulaField = dynamic(
}
);
export function DynamicBackground() {
interface DynamicBackgroundProps {
nebulaPosition?: { x: number; y: number } | null;
}
export function DynamicBackground({ nebulaPosition }: DynamicBackgroundProps) {
const { resolvedTheme, systemTheme } = useTheme();
const [mounted, setMounted] = useState(false);
const [showNebula, setShowNebula] = useState(false);
@@ -51,6 +55,7 @@ export function DynamicBackground() {
<NebulaField
className="fixed inset-0 z-0 h-screen w-screen"
themeMode={themeMode}
position={nebulaPosition ?? undefined}
/>
);
}