From cf7fd2448f2fe985ca2920a3a44d041e7608d3eb Mon Sep 17 00:00:00 2001 From: Alma Date: Wed, 9 Apr 2025 10:55:33 +0200 Subject: [PATCH] learn iframe fixed diary, mail, drive and contacts --- app/contacts/page.tsx | 24 ++++++++++++++++++++++++ app/diary/page.tsx | 24 ++++++++++++++++++++++++ app/drive/page.tsx | 24 ++++++++++++++++++++++++ app/mail/page.tsx | 24 ++++++++++++++++++++++++ 4 files changed, 96 insertions(+) create mode 100644 app/contacts/page.tsx create mode 100644 app/diary/page.tsx create mode 100644 app/drive/page.tsx create mode 100644 app/mail/page.tsx diff --git a/app/contacts/page.tsx b/app/contacts/page.tsx new file mode 100644 index 00000000..79f8cbab --- /dev/null +++ b/app/contacts/page.tsx @@ -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 ( +
+
+