diff --git a/components/AuthComponent/SigninForm.tsx b/components/AuthComponent/SigninForm.tsx index 7d9a4b4..9f8565a 100644 --- a/components/AuthComponent/SigninForm.tsx +++ b/components/AuthComponent/SigninForm.tsx @@ -50,84 +50,102 @@ export default function SigninForm() { }; return ( -
- - - Sign in - - Enter your credentials to access your account - - - -
- - ( - - Email - - - - - - )} - /> - ( - - Password - -
+
+
+ + + + Log In + + + Enter your credentials to access your account + + + + + + ( + + Email + - -
- - - + + + + )} + /> + ( + + Password + +
+ + +
+
+ +
+ )} + /> + {signinError && ( + + {signinError} + )} - /> - {signinError && ( - - {signinError} - - )} - - - - - - - - + + + + + + + + +
+

Welcome Back

+

+ We're glad to see you again! Please sign in to continue. +

+
+
); } diff --git a/components/AuthComponent/SignupForm.tsx b/components/AuthComponent/SignupForm.tsx index 66cb706..12db934 100644 --- a/components/AuthComponent/SignupForm.tsx +++ b/components/AuthComponent/SignupForm.tsx @@ -5,7 +5,7 @@ import { useRouter } from "next/navigation"; import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; import * as z from "zod"; -import { Eye, EyeOff } from "lucide-react"; +import { Eye, EyeOff } from 'lucide-react'; import { Button } from "@/components/ui/button"; import { Form, @@ -36,6 +36,7 @@ import { useAuthStore } from "@/store/AuthStore/useAuthStore"; import AuthBottom from "./AuthBottom"; import LoadingButton from "../Buttons/LoadingButton"; import { signupSchema } from "@/validations/validation"; + type SignupFormValues = z.infer; export default function SignupForm() { @@ -50,7 +51,7 @@ export default function SignupForm() { email: "", password: "", leetcodeUsername: "", - gender: undefined, // Changed from "" to undefined + gender: undefined, }, }); @@ -59,137 +60,151 @@ export default function SignupForm() { }; return ( -
- - - - Register your Account - - - Sign up to start your coding journey - - - -
- - ( - - Full Name - - - - - - )} - /> - ( - - Email - - - - - - )} - /> - ( - - Password - -
+
+
+ + + Register + + Sign up to start your coding journey + + + + + + ( + + Full Name + + + + + + )} + /> + ( + + Email + + + + + + )} + /> + ( + + Password + +
+ + +
+
+ +
+ )} + /> + ( + + LeetCode Username + - -
- - - - )} - /> - ( - - LeetCode Username - - - - - - )} - /> - ( - - Gender - - - + + + )} + /> + ( + + Gender + + + + )} + /> + {signupError && ( + + {signupError} + )} - /> - {signupError && ( - - {signupError} - - )} - - - - - - - - + + + + + + + + +
+

Join Us Today

+

+ Create an account to start your coding journey with us. +

+
+
); } diff --git a/components/header.tsx b/components/header.tsx index 286f402..8aad36c 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -1,4 +1,5 @@ "use client" + import { useState } from "react"; import Link from "next/link"; import { Button } from "@/components/ui/button"; diff --git a/public/dark-auth.jpg b/public/dark-auth.jpg new file mode 100644 index 0000000..44d7a08 Binary files /dev/null and b/public/dark-auth.jpg differ diff --git a/public/light-auth.jpg b/public/light-auth.jpg new file mode 100644 index 0000000..ae552b5 Binary files /dev/null and b/public/light-auth.jpg differ diff --git a/tailwind.config.ts b/tailwind.config.ts index cffd6a0..b006bd4 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -9,6 +9,10 @@ export default { ], theme: { extend: { + backgroundImage:{ + "light-auth" : "url('/light-auth.jpg')", + "dark-auth" : "url('/dark-auth.jpg')" + }, colors: { background: 'hsl(var(--background))', foreground: 'hsl(var(--foreground))',