tiefen_space_h5/app/webView/[src]/page.js

35 lines
1003 B
JavaScript
Raw Normal View History

2024-07-17 16:58:27 +08:00
"use client";
import React from "react";
import { useRouter, useParams } from "next/navigation";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
2024-07-22 14:38:59 +08:00
import { faAngleLeft } from "@fortawesome/free-solid-svg-icons";
2024-07-17 16:58:27 +08:00
export default function PersonSpace() {
const { src } = useParams();
const router = useRouter();
return (
<div>
<div className="p-4 fixed top-0 z-10 w-full">
2024-08-05 18:55:16 +08:00
<div className="w-9 h-9 flex items-center justify-center rounded-full absolute">
2024-07-17 16:58:27 +08:00
<FontAwesomeIcon
icon={faAngleLeft}
size="xl"
onClick={() => {
router.back();
}}
/>
</div>
<p className="text-base text-center leading-9"></p>
</div>
{/* 内容 */}
2024-07-24 13:53:12 +08:00
<div className="mt-12">
2024-07-22 14:38:59 +08:00
<iframe
2024-07-25 19:52:30 +08:00
src={`${process.env.NEXT_PUBLIC_WEB_URL}` + decodeURIComponent(src)}
2024-08-05 18:55:16 +08:00
className="w-full"
style={{height:"calc(100vh - 4.5rem)"}}
2024-07-22 14:38:59 +08:00
/>
2024-07-24 13:53:12 +08:00
</div>
2024-07-17 16:58:27 +08:00
</div>
);
}