-
-
-
Radically Transparent
-
- No algorithms. Every profile searchable.
-
-
+
+ Don't Swipe.
|
+
+
+
+
+
+
Radically Transparent
+
+ No algorithms. Every profile searchable.
+
+
-
-
Built for Depth
-
- Filter by any keyword and what matters most.
-
-
+
+
Built for Depth
+
+ Filter by any keyword and what matters most.
+
+
-
-
Community Owned
-
- Free forever. Built by users, for users.
-
+
+
Community Owned
+
+ Free forever. Built by users, for users.
+
+
+
-
-
>}
{user &&
<>
diff --git a/web/pages/register.tsx b/web/pages/register.tsx
new file mode 100644
index 0000000..974e307
--- /dev/null
+++ b/web/pages/register.tsx
@@ -0,0 +1,252 @@
+"use client";
+
+import {Suspense, useState} from "react";
+import Link from "next/link";
+import {FcGoogle} from "react-icons/fc";
+import {useSearchParams} from "next/navigation";
+import {signupThenMaybeRedirectToSignup} from "web/lib/util/signup";
+
+import {createUserWithEmailAndPassword} from "firebase/auth";
+import {auth} from "web/lib/firebase/users";
+import FavIcon from "web/public/FavIcon";
+import {LovePage} from "web/components/love-page";
+import {getLoverRow} from "common/love/lover";
+import {db} from "web/lib/supabase/db";
+import Router from "next/router";
+
+const handleEmailPasswordSignUp = async (email: string, password: string) => {
+ try {
+ const creds = await createUserWithEmailAndPassword(auth, email, password);
+ console.log("User signed up:", creds.user);
+ const userId = creds?.user.uid
+ if (userId) {
+ const lover = await getLoverRow(userId, db)
+ if (!lover) {
+ await Router.push('/signup')
+ } else {
+ await Router.push('/')
+ }
+ }
+ } catch (error) {
+ console.error("Error signing up:", error);
+ }
+};
+
+
+export default function RegisterPage() {
+ return (
+
+
+ );
+}
+
+const href = '/signup';
+
+function RegisterComponent() {
+ const searchParams = useSearchParams();
+ const [error, setError] = useState