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,38 +235,40 @@ export default function Login() {
)} )}
</div> </div>
<div className="flex items-center justify-between text-sm"> {!isSignUp && (
<label className="flex items-center space-x-2 cursor-pointer"> <div className="flex items-center justify-between text-sm">
<input <label className="flex items-center space-x-2 cursor-pointer">
type="checkbox" <input
className="rounded border-border/50" type="checkbox"
/> className="rounded border-border/50"
<span className="text-muted-foreground">Remember me</span> />
</label> <span className="text-muted-foreground">Remember me</span>
<button </label>
type="button" <button
className="text-aethex-400 hover:underline" type="button"
> className="text-aethex-400 hover:underline"
Forgot password? >
</button> Forgot password?
</div> </button>
</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