tiefen_space_h5/app/my/addToHome/page.js

83 lines
2.6 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"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-deepBg">
<div className="w-9 h-9 flex items-center justify-center bg-[#FFFFFF1A] rounded-full float-left absolute">
<FontAwesomeIcon
icon={faAngleLeft}
style={{ maxWidth: "12px" }}
size="xl"
onClick={() => {
router.back();
}}
/>
</div>
<p className="text-base text-center leading-9">添加到主屏幕</p>
</div>
{/* 内容 */}
<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
src={
process.env.NEXT_PUBLIC_WEB_ASSETS_URL +
"/images/addToHome1.png"
}
placeholder=""
className="w-[60%]"
/>
</div>
<p className="text-xs mt-4 mb-2">
2.打开分享弹框后点击[添加到主屏幕]
</p>
<div className="flex justify-center">
<Image
src={
process.env.NEXT_PUBLIC_WEB_ASSETS_URL +
"/images/addToHome2.png"
}
placeholder=""
className="w-[60%]"
/>
</div>
<p className="text-xs mt-4 mb-2">
3.打开添加到主屏幕弹框后点击[添加]按钮即可成功添加到主屏幕
</p>
<div className="flex justify-center">
<Image
src={
process.env.NEXT_PUBLIC_WEB_ASSETS_URL +
"/images/addToHome3.png"
}
placeholder=""
className="w-[60%]"
/>
</div>
</div>
</div>
</div>
);
}