From 26684e836aadffe419574a1590387336e805ab07 Mon Sep 17 00:00:00 2001 From: "shengbin.ma" Date: Sun, 29 Sep 2024 23:48:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A2=AB=E9=82=80=E8=AF=B7=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/invite/page.tsx | 44 +++++++++++++++++++++++++ src/components/DownloadButton/index.tsx | 21 ++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 src/app/invite/page.tsx create mode 100644 src/components/DownloadButton/index.tsx diff --git a/src/app/invite/page.tsx b/src/app/invite/page.tsx new file mode 100644 index 0000000..bae5459 --- /dev/null +++ b/src/app/invite/page.tsx @@ -0,0 +1,44 @@ +'use client'; +import { useEffect } from 'react'; + +import DownloadButton from '@/components/DownloadButton'; + +export default function Invite() { + useEffect(() => { + document.title = '加入雀乐'; + }, []); + + return ( +
+
+
+ +
+

{`${1},邀请你加入雀乐`}

+

一起 记录独立音乐

+
+ +
+ +
+
+
+
推荐码
+
+
xxxxxxx
+
+

填写邀请码,双方均可获得积分

+
+
+
+ + +
+ +
+

填写推荐码流程

+

点击【我的】-编辑资料-填写推荐码

+
+
+ ); +} diff --git a/src/components/DownloadButton/index.tsx b/src/components/DownloadButton/index.tsx new file mode 100644 index 0000000..0a56be2 --- /dev/null +++ b/src/components/DownloadButton/index.tsx @@ -0,0 +1,21 @@ +/** + * 下载 App 页面 + */ +'use client'; + +import { download } from '@/utils/download'; + +export default function DownloadButton({ className = '' }: { className?: string }) { + const handleDownload = () => { + download(); + }; + + return ( + + ); +}