2024-07-30 22:53:41 +08:00
|
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import React from "react";
|
|
|
|
|
import { Image } from "antd-mobile";
|
|
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
|
|
import { faAngleLeft } from "@fortawesome/free-solid-svg-icons";
|
|
|
|
|
import { useRouter } from "next/navigation";
|
|
|
|
|
export default function AddToHome() {
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
2024-09-11 14:22:02 +08:00
|
|
|
|
<div className="p-4 fixed top-0 z-10 w-full bg-deepBg">
|
2024-07-30 22:53:41 +08:00
|
|
|
|
<div className="w-9 h-9 flex items-center justify-center bg-[#FFFFFF1A] rounded-full float-left absolute">
|
|
|
|
|
<FontAwesomeIcon
|
|
|
|
|
icon={faAngleLeft}
|
2024-08-21 11:30:19 +08:00
|
|
|
|
style={{ maxWidth: "12px" }}
|
2024-07-30 22:53:41 +08:00
|
|
|
|
size="xl"
|
|
|
|
|
onClick={() => {
|
2024-08-13 11:18:46 +08:00
|
|
|
|
router.back();
|
2024-07-30 22:53:41 +08:00
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2024-07-31 14:46:03 +08:00
|
|
|
|
<p className="text-base text-center leading-9">添加到主屏幕</p>
|
2024-08-13 11:18:46 +08:00
|
|
|
|
</div>
|
2024-07-30 22:53:41 +08:00
|
|
|
|
{/* 内容 */}
|
|
|
|
|
<div className="p-4 mt-14">
|
|
|
|
|
<div>
|
2024-08-13 11:18:46 +08:00
|
|
|
|
<p className="text-base font-bold">
|
|
|
|
|
在浏览器中如何将铁粉空间添加到主屏幕
|
|
|
|
|
</p>
|
|
|
|
|
<p className="text-xs text-[red]">
|
|
|
|
|
注:请勿在当前页面点击[添加到主屏幕]
|
|
|
|
|
</p>
|
|
|
|
|
<p className="text-xs my-2 text-[#ffffff69]">
|
|
|
|
|
以IOS的“Safari”浏览器为例
|
|
|
|
|
</p>
|
2024-07-30 22:53:41 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div>
|
2024-08-13 11:18:46 +08:00
|
|
|
|
<p className="text-xs mt-4 mb-2">
|
|
|
|
|
1.在浏览器中打开主界面,点击浏览器中的[分享]按钮。
|
|
|
|
|
</p>
|
2024-07-30 22:53:41 +08:00
|
|
|
|
<div className="flex justify-center">
|
2024-08-13 11:18:46 +08:00
|
|
|
|
<Image
|
|
|
|
|
src={
|
|
|
|
|
process.env.NEXT_PUBLIC_WEB_ASSETS_URL +
|
|
|
|
|
"/images/addToHome1.png"
|
|
|
|
|
}
|
2024-07-30 22:53:41 +08:00
|
|
|
|
placeholder=""
|
|
|
|
|
className="w-[60%]"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2024-08-13 11:18:46 +08:00
|
|
|
|
<p className="text-xs mt-4 mb-2">
|
|
|
|
|
2.打开分享弹框后,点击[添加到主屏幕]。
|
|
|
|
|
</p>
|
2024-07-30 22:53:41 +08:00
|
|
|
|
<div className="flex justify-center">
|
2024-08-13 11:18:46 +08:00
|
|
|
|
<Image
|
|
|
|
|
src={
|
|
|
|
|
process.env.NEXT_PUBLIC_WEB_ASSETS_URL +
|
|
|
|
|
"/images/addToHome2.png"
|
|
|
|
|
}
|
2024-07-30 22:53:41 +08:00
|
|
|
|
placeholder=""
|
|
|
|
|
className="w-[60%]"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2024-08-13 11:18:46 +08:00
|
|
|
|
<p className="text-xs mt-4 mb-2">
|
|
|
|
|
3.打开添加到主屏幕弹框后,点击[添加]按钮即可成功添加到主屏幕。
|
|
|
|
|
</p>
|
2024-07-30 22:53:41 +08:00
|
|
|
|
<div className="flex justify-center">
|
2024-08-13 11:18:46 +08:00
|
|
|
|
<Image
|
|
|
|
|
src={
|
|
|
|
|
process.env.NEXT_PUBLIC_WEB_ASSETS_URL +
|
|
|
|
|
"/images/addToHome3.png"
|
|
|
|
|
}
|
2024-07-30 22:53:41 +08:00
|
|
|
|
placeholder=""
|
|
|
|
|
className="w-[60%]"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|