NeahFront2/app/diary/page.tsx
2025-04-09 12:20:16 +02:00

32 lines
995 B
TypeScript

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 px-4 pt-12 pb-4">
<iframe
src="https://espace.slm-lab.net/apps/calendar"
className="w-full h-full border-none"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
sandbox="allow-same-origin allow-scripts allow-popups allow-forms"
style={{
marginTop: '-64px',
marginLeft: '-180px',
width: 'calc(100% + 500px)',
position: 'relative',
right: '-160px'
}}
allowFullScreen
/>
</div>
</main>
);
}