diff --git a/src/app/register/page.tsx b/src/app/register/page.tsx index d55e9e4..fb246e6 100644 --- a/src/app/register/page.tsx +++ b/src/app/register/page.tsx @@ -8,6 +8,7 @@ import { tailChase } from "ldrs"; import { redirect } from "next/navigation"; export default function RegistrationPage() { + const { data: session } = useSession(); const { status } = useSession({ required: true, onUnauthenticated: async () => { @@ -42,6 +43,32 @@ export default function RegistrationPage() { ); } + if (!session) { + return ( +
+
+

Unauthorized

+

+ You need to log in to access this page. +

+
+
+ ); + } + + if (session.user.role !== "ADMIN" && session.user.role !== "COORDINATOR") { + return ( +
+
+

Forbidden

+

+ You do not have the required permissions to view this page. +

+
+
+ ); + } + return (
diff --git a/src/components/common/cta-section-2.tsx b/src/components/common/cta-section-2.tsx index 82e0171..6b06fb5 100644 --- a/src/components/common/cta-section-2.tsx +++ b/src/components/common/cta-section-2.tsx @@ -87,22 +87,23 @@ export default function FullScreenCTA() {
-
-

+ {/*

*/} + {/*

Limited spots available!
- Register now - to secure your spot.
-

+ + Register now to secure your spot.
+
+

*/} - + {/* - -
+ */} + {/*
*/} ); diff --git a/src/components/common/scrolling-banner.tsx b/src/components/common/scrolling-banner.tsx index 81439f1..01f2d27 100644 --- a/src/components/common/scrolling-banner.tsx +++ b/src/components/common/scrolling-banner.tsx @@ -3,7 +3,7 @@ import { motion } from "framer-motion"; export default function ScrollingBanner() { - const sentence = " Registrations close soon • "; + const sentence = " Registrations closed • "; const repeatCount = 20; // Increase this number to add more repetitions return ( diff --git a/src/components/navbar/register-button.tsx b/src/components/navbar/register-button.tsx index 701e3d4..613e49c 100644 --- a/src/components/navbar/register-button.tsx +++ b/src/components/navbar/register-button.tsx @@ -5,14 +5,15 @@ import { Button } from "../ui/button"; const RegisterButton = () => { return ( - - - + // + + // ); }; diff --git a/src/components/widget/header.tsx b/src/components/widget/header.tsx index 5881235..f37b978 100644 --- a/src/components/widget/header.tsx +++ b/src/components/widget/header.tsx @@ -205,10 +205,11 @@ const Nav = () => {
  • diff --git a/src/components/widget/hero.tsx b/src/components/widget/hero.tsx index 785d7db..8cecc05 100644 --- a/src/components/widget/hero.tsx +++ b/src/components/widget/hero.tsx @@ -139,14 +139,15 @@ export default function HeroHighlight() {
    - - - + {/* */} + + {/* */}