This commit is contained in:
alma 2026-01-11 23:09:28 +01:00
parent 25427fea1b
commit 7b851b8b9d
3 changed files with 44 additions and 3 deletions

18
app/centrale/page.tsx Normal file
View File

@ -0,0 +1,18 @@
"use client";
import { useEffect } from "react";
import { useRouter } from "next/navigation";
export default function CentralePage() {
const router = useRouter();
useEffect(() => {
router.replace("/missions");
}, [router]);
return (
<div className="flex justify-center items-center h-screen">
<div className="animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-blue-600"></div>
</div>
);
}

23
app/lemessage/page.tsx Normal file
View File

@ -0,0 +1,23 @@
import { getServerSession } from "next-auth/next";
import { authOptions } from "@/app/api/auth/options";
import { redirect } from "next/navigation";
import { ResponsiveIframe } from "@/app/components/responsive-iframe";
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">
<ResponsiveIframe
src={process.env.NEXT_PUBLIC_IFRAME_THEMESSAGE_URL || ''}
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
/>
</div>
</main>
);
}

View File

@ -195,13 +195,13 @@ export function MainNav() {
{
title: "Centrale",
icon: Target,
href: '/missions',
href: '/centrale',
requiredRoles: ["entrepreneurship", "admin"],
},
{
title: "TheMessage",
title: "Lemessage",
icon: Mail,
href: '/the-message',
href: '/lemessage',
requiredRoles: ["mediation", "expression"],
},
{