Commit 1af1c81 1 parent cef2853 commit 1af1c81 Copy full SHA for 1af1c81
File tree 4 files changed +9
-3
lines changed
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export default function FullScreenCTA() {
82
82
size = "lg"
83
83
className = "bg-red-600 hover:bg-red-700 text-white py-6 px-4 text-xl transition-all duration-300 transform hover:scale-105 mt-8"
84
84
>
85
- Register Now
85
+ Registrations Open Soon
86
86
</ Button >
87
87
</ Link >
88
88
{ /* <p className="text-sm text-gray-400">
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ const Nav = () => {
189
189
size = "lg"
190
190
className = "bg-red-600 hover:bg-red-700 text-white py-4 "
191
191
>
192
- Register Now
192
+ Registrations Open Soon
193
193
{ /* <ArrowRight className="ml-2" /> */ }
194
194
</ Button >
195
195
</ Link >
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export default function HeroHighlight() {
129
129
size = "lg"
130
130
className = "bg-red-600 hover:bg-red-700 text-white py-2 transition-all duration-300 transform hover:scale-105"
131
131
>
132
- Register Now
132
+ Registrations Open Soon
133
133
</ Button >
134
134
</ Link >
135
135
</ div >
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ export async function middleware(request: NextRequest) {
13
13
return NextResponse . redirect ( new URL ( "/" , request . url ) ) ;
14
14
}
15
15
}
16
+ if ( url . pathname . startsWith ( "/register" ) ) {
17
+ if ( token ?. role !== "ADMIN" ) {
18
+ return NextResponse . redirect ( new URL ( "/" , request . url ) ) ;
19
+ }
20
+ }
21
+
16
22
}
17
23
18
24
// See "Matching Paths" below to learn more
You can’t perform that action at this time.
0 commit comments