diff --git a/bun.lockb b/bun.lockb
index b58462d5..4d280d4d 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/package.json b/package.json
index fbf1a31a..8dbb6a9e 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,7 @@
"web"
],
"dependencies": {
+ "@clerk/themes": "^2.1.27",
"@tauri-apps/cli": "^2.0.0-rc.12",
"@tauri-apps/plugin-fs": "^2.0.0-rc.2",
"jazz-nodejs": "0.7.35-guest-auth.5",
diff --git a/web/app/(auth)/sign-in/[[...sign-in]]/page.tsx b/web/app/(auth)/sign-in/[[...sign-in]]/page.tsx
index 0b5feeb9..aa9403c5 100644
--- a/web/app/(auth)/sign-in/[[...sign-in]]/page.tsx
+++ b/web/app/(auth)/sign-in/[[...sign-in]]/page.tsx
@@ -1,9 +1,19 @@
-import { SignInClient } from "@/components/custom/clerk/sign-in-client"
+// import { SignInClient } from "@/components/custom/clerk/sign-in-client"
+
+// export default async function Page() {
+// return (
+//
+//
+//
+// )
+// }
+
+import { SignUpClient } from "@/components/custom/clerk/sign-up-client"
export default async function Page() {
return (
-
+
)
}
diff --git a/web/components/custom/clerk/clerk-provider-client.tsx b/web/components/custom/clerk/clerk-provider-client.tsx
index 6edee0ca..769a8c3f 100644
--- a/web/components/custom/clerk/clerk-provider-client.tsx
+++ b/web/components/custom/clerk/clerk-provider-client.tsx
@@ -1,7 +1,31 @@
"use client"
-
import { ClerkProvider } from "@clerk/nextjs"
+import { dark } from "@clerk/themes"
+import { useEffect, useState } from "react"
export const ClerkProviderClient = ({ children }: { children: React.ReactNode }) => {
- return {children}
+ const [darkMode, setDarkMode] = useState(false)
+
+ useEffect(() => {
+ const updateTheme = () => {
+ setDarkMode(document.documentElement.classList.contains("dark"))
+ }
+ updateTheme()
+
+ const observer = new MutationObserver(updateTheme)
+ observer.observe(document.documentElement, { attributes: true, attributeFilter: ["class"] })
+
+ return () => observer.disconnect()
+ }, [])
+
+ return (
+
+ {children}
+
+ )
}
diff --git a/web/components/custom/clerk/sign-in-client.tsx b/web/components/custom/clerk/sign-in-client.tsx
index a789546a..aae99d82 100644
--- a/web/components/custom/clerk/sign-in-client.tsx
+++ b/web/components/custom/clerk/sign-in-client.tsx
@@ -1,7 +1,16 @@
-"use client"
+import { SignUp } from "@clerk/nextjs"
-import { SignIn } from "@clerk/nextjs"
-
-export const SignInClient = () => {
- return
+export const SignUpClient = () => {
+ return (
+
+
+
+ )
}