diff --git a/apps/remix-template/app/routes/clerk._index.tsx b/apps/remix-template/app/routes/clerk._index.tsx new file mode 100644 index 0000000..89ed32d --- /dev/null +++ b/apps/remix-template/app/routes/clerk._index.tsx @@ -0,0 +1,40 @@ +import { SignInButton, UserButton, SignedIn, SignedOut } from "@clerk/remix"; +import { + Card, + CardContent, + CardHeader, + CardTitle, +} from "@repo/ui/components/card"; +import { Button } from "@repo/ui/components/button"; + +export default function Index() { + return ( +
+ + + Welcome + + + +
+

+ You are signed in! +

+ +
+
+ +
+

+ You are signed out +

+ + + +
+
+
+
+
+ ); +} diff --git a/apps/remix-template/app/routes/clerk.tsx b/apps/remix-template/app/routes/clerk.tsx index 8c1c646..15c1afe 100644 --- a/apps/remix-template/app/routes/clerk.tsx +++ b/apps/remix-template/app/routes/clerk.tsx @@ -1,40 +1,24 @@ import { SignInButton, UserButton, SignedIn, SignedOut } from "@clerk/remix"; -import { - Card, - CardContent, - CardHeader, - CardTitle, -} from "@repo/ui/components/card"; import { Button } from "@repo/ui/components/button"; +import { Outlet } from "@remix-run/react"; export default function Index() { return ( -
- - - Welcome - - - -
-

- You are signed in! -

- -
-
+
+
+
-
-

- You are signed out -

- - - -
+ + +
- - + + + +
+
+ +
); } diff --git a/apps/vite-template/src/app/index.tsx b/apps/vite-template/src/app/index.tsx index 5217819..ad4be23 100644 --- a/apps/vite-template/src/app/index.tsx +++ b/apps/vite-template/src/app/index.tsx @@ -28,7 +28,7 @@ function App() { - +
@@ -39,6 +39,7 @@ function App() { Kitchen Sink + shadcn/ui Card Example @@ -47,6 +48,17 @@ function App() { + + + + Clerk Authentication Example + + + You are signed out! + You are signed in! + + +

Built With{" "}