learn iframe fixed calcul and gite

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

24
app/calculation/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://calcul.slm-lab.net"
className="w-full h-full border-none"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
</div>
</main>
);
}

View File

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