重构client,拆分组件
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { forwardRef } from "react";
|
||||
|
||||
interface BackgroundCanvasProps {}
|
||||
|
||||
export const BackgroundCanvas = forwardRef<HTMLCanvasElement, BackgroundCanvasProps>((props, ref) => {
|
||||
return (
|
||||
<canvas
|
||||
ref={ref}
|
||||
className="fixed inset-0 w-full h-full -z-10"
|
||||
style={{ filter: "blur(40px)" }}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
BackgroundCanvas.displayName = "BackgroundCanvas";
|
||||
Reference in New Issue
Block a user