From 1774317d667aed94b2a2f0acae885ce9420de8e2 Mon Sep 17 00:00:00 2001 From: Yuren Hao <97327730+YurenHao0426@users.noreply.github.com> Date: Sun, 2 Feb 2025 23:59:29 -0600 Subject: Add files via upload initialization --- app/page.tsx | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 app/page.tsx (limited to 'app/page.tsx') diff --git a/app/page.tsx b/app/page.tsx new file mode 100644 index 0000000..384f0bc --- /dev/null +++ b/app/page.tsx @@ -0,0 +1,60 @@ +"use client" + +import Link from "next/link" +import WaveEffect from "./components/WaveEffect" +import { useState, useCallback } from "react" + +export default function Home() { + const [triggerWave, setTriggerWave] = useState(false) + const [mousePosition, setMousePosition] = useState({ x: 0, y: 0 }) + const [activeButton, setActiveButton] = useState(null) + + const handleMouseEnter = useCallback((e: React.MouseEvent) => { + const rect = e.currentTarget.getBoundingClientRect() + setMousePosition({ x: rect.left + rect.width / 2, y: rect.top + rect.height / 2 }) + setTriggerWave(true) + }, []) + + const handleMouseLeave = useCallback(() => { + setTriggerWave(false) + // We're not resetting the activeButton here to keep the color consistent + }, []) + + return ( +
+ +

🤓️👆

+
+ + + + + + +
+
+ ) +} + -- cgit v1.2.3