diff --git a/src/app/download/components/download-card.tsx b/src/app/download/components/DownloadCard.tsx similarity index 52% rename from src/app/download/components/download-card.tsx rename to src/app/download/components/DownloadCard.tsx index 3fcea65..e4c643e 100644 --- a/src/app/download/components/download-card.tsx +++ b/src/app/download/components/DownloadCard.tsx @@ -1,23 +1,41 @@ +import { useState } from 'react'; + import Image from 'next/image'; -import styles from './download-card.module.css'; +import styles from './index.module.css'; export default function Footer({ platform, iconUrl, qrCode }: DownloadQrcodeCard) { + const [showQrCode, setShowQrCode] = useState(false); + + const handleMouseEnter = () => { + setShowQrCode(true); + }; + + const handleMouseLeave = () => { + setShowQrCode(false); + }; + return (
{/* 卡片 */} -
+
{`${platform}-icon`}
-

+

下载应用

-

{platform}

+

{platform}

{/* 二维码 */} -
+
{qrCode ? ( = [ {