From 3273f3002517fc38dd8ff2d9dbce9d11214e2859 Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Tue, 26 Mar 2024 10:12:07 +0800 Subject: [PATCH] update: download page --- .../{download-card.tsx => DownloadCard.tsx} | 28 +++++++++++++++---- ...nload-card.module.css => index.module.css} | 0 src/app/download/page.tsx | 2 +- 3 files changed, 24 insertions(+), 6 deletions(-) rename src/app/download/components/{download-card.tsx => DownloadCard.tsx} (52%) rename src/app/download/components/{download-card.module.css => index.module.css} (100%) 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 ? ( = [ {