File tree 9 files changed +314
-3
lines changed
9 files changed +314
-3
lines changed Original file line number Diff line number Diff line change
1
+ import { ReactNode } from "react" ;
2
+
3
+ const LoginLayout = ( { children } : { children : ReactNode } ) => {
4
+ return (
5
+ < div className = "px-4 md:container flex justify-center mt-10" >
6
+ { children }
7
+ </ div >
8
+ ) ;
9
+ } ;
10
+
11
+ export default LoginLayout ;
Original file line number Diff line number Diff line change
1
+ import { SignIn } from "@clerk/nextjs" ;
2
+
3
+ export default function Page ( ) {
4
+ return < SignIn /> ;
5
+ }
Original file line number Diff line number Diff line change
1
+ import { SignUp } from "@clerk/nextjs" ;
2
+
3
+ export default function Page ( ) {
4
+ return < SignUp /> ;
5
+ }
Original file line number Diff line number Diff line change 1
- import { getCountry } from "@/lib/countries" ;
2
-
3
1
import Link from "next/link" ;
2
+ import BackButton from "@/app/components/shared/BackButton" ;
3
+ import { getCountry } from "@/lib/countries" ;
4
4
import { Button } from "@/components/ui/button" ;
5
5
import { Country } from "@/app/types" ;
6
- import BackButton from "@/app/components/shared/BackButton" ;
7
6
import { notFound } from "next/navigation" ;
8
7
9
8
const CountryPage = async ( { params } : { params : { cca3 : string } } ) => {
Original file line number Diff line number Diff line change 8
8
9
9
dd {
10
10
@apply mb-2
11
+ }
12
+
13
+ .cl-internal-1dauvpw {
14
+ @apply hidden
11
15
}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import "./globals.css";
4
4
import NavBar from "./components/shared/NavBar" ;
5
5
import { ThemeProvider } from "@/components/theme-provider" ;
6
6
import Footer from "./components/shared/Footer" ;
7
+ import { ClerkProvider } from "@clerk/nextjs" ;
7
8
8
9
const notoSans = Noto_Sans ( { subsets : [ "latin" ] } ) ;
9
10
@@ -18,6 +19,7 @@ export default function RootLayout({
18
19
children : React . ReactNode ;
19
20
} > ) {
20
21
return (
22
+ < ClerkProvider >
21
23
< html lang = "en" >
22
24
< body className = { notoSans . className } >
23
25
< ThemeProvider
@@ -34,5 +36,6 @@ export default function RootLayout({
34
36
</ ThemeProvider >
35
37
</ body >
36
38
</ html >
39
+ </ ClerkProvider >
37
40
) ;
38
41
}
Original file line number Diff line number Diff line change
1
+ import { clerkMiddleware } from "@clerk/nextjs/server" ;
2
+
3
+ export default clerkMiddleware ( ) ;
4
+
5
+ export const config = {
6
+ matcher : [
7
+ // Skip Next.js internals and all static files, unless found in search params
8
+ '/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)' ,
9
+ // Always run for API routes
10
+ '/(api|trpc)(.*)' ,
11
+ ] ,
12
+ } ;
You can’t perform that action at this time.
0 commit comments