diff --git a/app/auth/login/page.tsx b/app/auth/login/page.tsx index 67b76d3..2c95e9d 100644 --- a/app/auth/login/page.tsx +++ b/app/auth/login/page.tsx @@ -191,13 +191,14 @@ export default function LoginPage() { {/* Footer */}

- Don't have an account?{' '} - - Sign up - + Contact us + + {' '}to request access.

diff --git a/app/auth/sign-up-success/page.tsx b/app/auth/sign-up-success/page.tsx deleted file mode 100644 index 6f04e44..0000000 --- a/app/auth/sign-up-success/page.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import Link from 'next/link' -import { Mail, ArrowLeft } from 'lucide-react' -import { Button } from '@/components/ui/button' - -export default function SignUpSuccessPage() { - return ( -
- {/* Background elements */} -
-
-
-
- -
- {/* Back to home */} - - - Back to home - - - {/* Card */} -
- {/* Icon */} -
- -
- - {/* Content */} -

Check your email

-

- We've sent you a confirmation link. Please check your email and click the link to verify your account. -

- - {/* Actions */} -
- -

- Didn't receive the email? Check your spam folder or{' '} - - try again - -

-
-
-
-
- ) -} diff --git a/app/auth/sign-up/page.tsx b/app/auth/sign-up/page.tsx index 964f60d..59688e4 100644 --- a/app/auth/sign-up/page.tsx +++ b/app/auth/sign-up/page.tsx @@ -1,68 +1,8 @@ -'use client' - -import { createClient } from '@/lib/supabase/client' -import { Button } from '@/components/ui/button' -import { Input } from '@/components/ui/input' -import { Label } from '@/components/ui/label' import Link from 'next/link' -import { useRouter } from 'next/navigation' -import { useState } from 'react' -import { Mail, Lock, Loader2, ArrowLeft, User } from 'lucide-react' +import { ArrowLeft, Mail, Lock } from 'lucide-react' +import { Button } from '@/components/ui/button' export default function SignUpPage() { - const [name, setName] = useState('') - const [email, setEmail] = useState('') - const [password, setPassword] = useState('') - const [error, setError] = useState(null) - const [isLoading, setIsLoading] = useState(false) - const [isGoogleLoading, setIsGoogleLoading] = useState(false) - const router = useRouter() - - const handleSignUp = async (e: React.FormEvent) => { - e.preventDefault() - const supabase = createClient() - setIsLoading(true) - setError(null) - - try { - const { error } = await supabase.auth.signUp({ - email, - password, - options: { - emailRedirectTo: `${window.location.origin}/auth/callback`, - data: { - full_name: name, - }, - }, - }) - if (error) throw error - router.push('/auth/sign-up-success') - } catch (error: unknown) { - setError(error instanceof Error ? error.message : 'An error occurred') - } finally { - setIsLoading(false) - } - } - - const handleGoogleSignUp = async () => { - const supabase = createClient() - setIsGoogleLoading(true) - setError(null) - - try { - const { error } = await supabase.auth.signInWithOAuth({ - provider: 'google', - options: { - redirectTo: `${window.location.origin}/auth/callback`, - }, - }) - if (error) throw error - } catch (error: unknown) { - setError(error instanceof Error ? error.message : 'An error occurred') - setIsGoogleLoading(false) - } - } - return (
{/* Background elements */} @@ -73,8 +13,8 @@ export default function SignUpPage() {
{/* Back to home */} - @@ -82,150 +22,40 @@ export default function SignUpPage() { {/* Card */} -
- {/* Header */} -
- - - Cloudrite - - -

Create an account

-

- Get started with Cloudrite today -

+
+ {/* Logo */} + + + Cloudrite + + + + {/* Icon */} +
+
- {/* Google OAuth Button */} +

Invite Only

+

+ Account creation is by invitation only. +

+

+ To request access, please get in touch with us and we'll get you set up. +

+ - {/* Divider */} -
-
-
-
-
- - Or continue with email - -
-
- - {/* Email/Password Form */} -
-
- -
- - setName(e.target.value)} - className="pl-10 h-12" - /> -
-
- -
- -
- - setEmail(e.target.value)} - className="pl-10 h-12" - /> -
-
- -
- -
- - setPassword(e.target.value)} - className="pl-10 h-12" - /> -
-

- Must be at least 6 characters -

-
- - {error && ( -
-

{error}

-
- )} - - -
- - {/* Footer */} -

- Already have an account?{' '} - - Sign in - -

+