learn iframe fixed artlab and parole

This commit is contained in:
Alma 2025-04-09 10:06:36 +02:00
parent ffb8cc687b
commit 4be7c7f53f
2 changed files with 26 additions and 2 deletions

View File

@ -10,8 +10,8 @@ export default async function Page() {
} }
return ( return (
<main className="w-full min-h-screen bg-black"> <main className="w-full h-screen bg-black">
<div className="w-full h-[calc(100vh-4rem)]"> <div className="w-full h-full pt-16">
<iframe <iframe
src="https://artlab.slm-lab.net" src="https://artlab.slm-lab.net"
className="w-full h-full border-none" className="w-full h-full border-none"

24
app/parole/page.tsx Normal file
View File

@ -0,0 +1,24 @@
import { getServerSession } from "next-auth/next";
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
import { redirect } from "next/navigation";
export default async function Page() {
const session = await getServerSession(authOptions);
if (!session) {
redirect("/signin");
}
return (
<main className="w-full h-screen bg-black">
<div className="w-full h-full pt-16">
<iframe
src="https://parole.slm-lab.net/channel/City"
className="w-full h-full border-none"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
</div>
</main>
);
}