url
This commit is contained in:
parent
25427fea1b
commit
7b851b8b9d
18
app/centrale/page.tsx
Normal file
18
app/centrale/page.tsx
Normal 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
23
app/lemessage/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
@ -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"],
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user