- Created "My 2023 Coding Edition" post detailing projects and experiences in Rust and game development. - Added "My 2024 and 2025 roadmap" outlining goals and projects for the upcoming years. - Introduced "Python Tutorial - Introduction" and "Python - Variables" posts to teach Python programming basics. - Published "ROADMAP for 2023" to outline initial goals for the year. - Added "My Rust little adventure" post summarizing various Rust projects undertaken. - Released "Spanish Inquisition - 3.0.1 UPDATE" detailing the latest game update and features. - Added multiple background images in AVIF format for website use. - Removed unused SVG files to clean up the public directory.
26 lines
537 B
TypeScript
26 lines
537 B
TypeScript
"use client";
|
|
|
|
import { useEffect } from "react";
|
|
|
|
export default function CursorEffect() {
|
|
useEffect(() => {
|
|
let cursor: any;
|
|
let isMounted = true;
|
|
|
|
import("cursor-effects").then((mod) => {
|
|
if (isMounted && mod?.trailingCursor) {
|
|
const TrailingCursor = mod.trailingCursor as any;
|
|
cursor = new TrailingCursor();
|
|
}
|
|
});
|
|
return () => {
|
|
isMounted = false;
|
|
if (cursor && typeof cursor.destroy === "function") {
|
|
cursor.destroy();
|
|
}
|
|
};
|
|
}, []);
|
|
|
|
return null;
|
|
}
|