tiefen_space_h5/app/my/addToHome/page.js

61 lines
2.3 KiB
JavaScript
Raw Normal View History

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>
<div className="p-4 fixed top-0 z-10 w-full bg-black">
<div className="w-9 h-9 flex items-center justify-center bg-[#FFFFFF1A] rounded-full float-left absolute">
<FontAwesomeIcon
icon={faAngleLeft}
size="xl"
onClick={() => {
router.push("/my");
}}
/>
</div>
2024-07-31 14:46:03 +08:00
<p className="text-base text-center leading-9">添加到主屏幕</p>
</div>
2024-07-30 22:53:41 +08:00
{/* 内容 */}
<div className="p-4 mt-14">
<div>
<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>
</div>
<div>
<p className="text-xs mt-4 mb-2">1.在浏览器中打开主界面点击浏览器中的[分享]按钮</p>
<div className="flex justify-center">
<Image
2024-07-31 18:16:25 +08:00
src={process.env.NEXT_PUBLIC_WEB_ASSETS_URL+"/images/addToHome1.png"}
2024-07-30 22:53:41 +08:00
placeholder=""
className="w-[60%]"
/>
</div>
<p className="text-xs mt-4 mb-2">2.打开分享弹框后点击[添加到主屏幕]</p>
<div className="flex justify-center">
<Image
2024-07-31 18:16:25 +08:00
src={process.env.NEXT_PUBLIC_WEB_ASSETS_URL+"/images/addToHome2.png"}
2024-07-30 22:53:41 +08:00
placeholder=""
className="w-[60%]"
/>
</div>
<p className="text-xs mt-4 mb-2">3.打开添加到主屏幕弹框后点击[添加]按钮即可成功添加到主屏幕</p>
<div className="flex justify-center">
<Image
2024-07-31 18:16:25 +08:00
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>
);
}