diff --git a/src/components/DemoCard.tsx b/src/components/DemoCard.tsx index be4b6db..26ae4d3 100644 --- a/src/components/DemoCard.tsx +++ b/src/components/DemoCard.tsx @@ -1,7 +1,7 @@ import { Link as LinkIcon, Search } from 'lucide-react'; import Image from 'next/image'; import { useRouter } from 'next/navigation'; -import React, { useState } from 'react'; +import React from 'react'; interface DemoCardProps { id: string; @@ -45,7 +45,6 @@ function SearchCircle({ } const DemoCard = ({ id, title, poster, rate, type }: DemoCardProps) => { - const [hover, setHover] = useState(false); const router = useRouter(); const handleClick = () => { @@ -58,7 +57,7 @@ const DemoCard = ({ id, title, poster, rate, type }: DemoCardProps) => { onClick={handleClick} > {/* 海报图片区域 */} -
+
{title} { )} {/* 悬浮层 - 搜索按钮 */} -
-
setHover(true)} - onMouseLeave={() => setHover(false)} - className={`transition-all duration-300 cubic-bezier(0.4, 0, 0.2, 1) ${ - hover ? 'scale-110 rotate-12' : 'scale-90' - }`} - > - +
+
+