Update form submission and signup toggle

cgen-d0440ca51e934e0f83e2714fb1ef0e0c
This commit is contained in:
Builder.io 2025-08-06 00:06:49 +00:00
parent a082a1a71e
commit eab528f76c

View file

@ -235,6 +235,7 @@ export default function Login() {
)} )}
</div> </div>
{!isSignUp && (
<div className="flex items-center justify-between text-sm"> <div className="flex items-center justify-between text-sm">
<label className="flex items-center space-x-2 cursor-pointer"> <label className="flex items-center space-x-2 cursor-pointer">
<input <input
@ -250,23 +251,24 @@ export default function Login() {
Forgot password? Forgot password?
</button> </button>
</div> </div>
)}
<Button <Button
type="submit" type="submit"
className="w-full bg-gradient-to-r from-aethex-500 to-neon-blue hover:from-aethex-600 hover:to-neon-blue/90 hover-lift interactive-scale glow-blue" className="w-full bg-gradient-to-r from-aethex-500 to-neon-blue hover:from-aethex-600 hover:to-neon-blue/90 hover-lift interactive-scale glow-blue"
disabled={!email || !password} disabled={!email || !password || (isSignUp && !fullName) || isLoading}
> >
<LogIn className="h-4 w-4 mr-2" /> <LogIn className="h-4 w-4 mr-2" />
Sign In to Dashboard {isSignUp ? "Create Account" : "Sign In to Dashboard"}
<ArrowRight className="h-4 w-4 ml-2" /> <ArrowRight className="h-4 w-4 ml-2" />
</Button> </Button>
</form> </form>
<div className="text-center pt-4"> <div className="text-center pt-4">
<p className="text-sm text-muted-foreground"> <p className="text-sm text-muted-foreground">
Don't have an account?{" "} {isSignUp ? "Already have an account?" : "Don't have an account?"}{" "}
<button <button
onClick={() => navigate("/onboarding")} onClick={() => setIsSignUp(!isSignUp)}
className="text-aethex-400 hover:underline font-medium" className="text-aethex-400 hover:underline font-medium"
> >
Join AeThex Join AeThex