diff --git a/.gitignore b/.gitignore index 9b1913ec..cef619f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.env.local # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # dependencies diff --git a/app/auth/register/page.tsx b/app/auth/register/page.tsx index f362eedb..4b00052e 100644 --- a/app/auth/register/page.tsx +++ b/app/auth/register/page.tsx @@ -151,7 +151,6 @@ export default function Register() { const isFormValid = name.trim() && email.trim() && - /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email) && password.trim() && confirmPassword.trim() && password === confirmPassword && @@ -311,7 +310,7 @@ export default function Register() { }`} /> Email Address - {email && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email) && ( + {email && email.includes("@") && ( )} @@ -325,47 +324,27 @@ export default function Register() { onBlur={() => setFocusedField(null)} placeholder="Enter your email" required - className={`glass-effect focus:ring-yellow-400/20 pl-4 pr-4 py-3 text-sm sm:text-base transition-all duration-300 group-hover:shadow-lg ${ - email && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email) && email.length > 0 - ? "border-red-400/60 focus:border-red-400/80 hover:border-red-400/70" - : "border-yellow-400/30 focus:border-yellow-400/60 hover:border-yellow-400/50" - }`} + className="glass-effect border-yellow-400/30 focus:border-yellow-400/60 focus:ring-yellow-400/20 pl-4 pr-4 py-3 text-sm sm:text-base transition-all duration-300 hover:border-yellow-400/50 group-hover:shadow-lg" disabled={isLoading} />
0 - ? "border-red-400/40 shadow-lg shadow-red-400/20" - : "border-yellow-400/40 shadow-lg shadow-yellow-400/20" - : email && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email) && email.length > 0 - ? "border-red-400/20" + ? "border-yellow-400/40 shadow-lg shadow-yellow-400/20" : "border-yellow-400/20" }`} >
{/* Progress indicator */}
0 - ? "w-full bg-gradient-to-r from-red-400 to-orange-500" + className={`absolute bottom-0 left-0 h-0.5 bg-gradient-to-r from-yellow-400 to-blue-500 transition-all duration-300 ${ + email && email.includes("@") + ? "w-full" : email - ? "w-1/2 bg-gradient-to-r from-yellow-400 to-blue-500" + ? "w-1/2" : "w-0" }`} >
- - {/* Email validation feedback */} - {email && email.length > 0 && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email) && ( -
-

- - Please enter a valid email address -

-
- )} {/* Enhanced Password field with strength indicator */} diff --git a/app/auth/signin/page.tsx b/app/auth/signin/page.tsx index 9caad166..e7a15fec 100644 --- a/app/auth/signin/page.tsx +++ b/app/auth/signin/page.tsx @@ -194,7 +194,7 @@ export default function SignIn() { }`} /> Email Address - {email && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email) && ( + {email && email.includes("@") && ( )} @@ -208,47 +208,27 @@ export default function SignIn() { onBlur={() => setFocusedField(null)} placeholder="Enter your email" required - className={`glass-effect focus:ring-yellow-400/20 pl-4 pr-4 py-3 text-sm sm:text-base transition-all duration-300 group-hover:shadow-lg ${ - email && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email) && email.length > 0 - ? "border-red-400/60 focus:border-red-400/80 hover:border-red-400/70" - : "border-yellow-400/30 focus:border-yellow-400/60 hover:border-yellow-400/50" - }`} + className="glass-effect border-yellow-400/30 focus:border-yellow-400/60 focus:ring-yellow-400/20 pl-4 pr-4 py-3 text-sm sm:text-base transition-all duration-300 hover:border-yellow-400/50 group-hover:shadow-lg" disabled={isLoading} />
0 - ? "border-red-400/40 shadow-lg shadow-red-400/20" - : "border-yellow-400/40 shadow-lg shadow-yellow-400/20" - : email && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email) && email.length > 0 - ? "border-red-400/20" + ? "border-yellow-400/40 shadow-lg shadow-yellow-400/20" : "border-yellow-400/20" }`} >
{/* Progress indicator */}
0 - ? "w-full bg-gradient-to-r from-red-400 to-orange-500" + className={`absolute bottom-0 left-0 h-0.5 bg-gradient-to-r from-yellow-400 to-blue-500 transition-all duration-300 ${ + email && email.includes("@") + ? "w-full" : email - ? "w-1/2 bg-gradient-to-r from-yellow-400 to-blue-500" + ? "w-1/2" : "w-0" }`} >
- - {/* Email validation feedback */} - {email && email.length > 0 && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email) && ( -
-

- - Please enter a valid email address -

-
- )} {/* Enhanced password field with better UX */} @@ -338,7 +318,7 @@ export default function SignIn() { > - + {/* Download Options */} {letterData && (
@@ -554,33 +541,20 @@ ${letterData.content || ''} Fill in the details to send your letter directly to the recipient. - +
-
- +
- +
- +
); -} +} \ No newline at end of file diff --git a/components/resume/ats-analyzer.tsx b/components/resume/ats-analyzer.tsx index 7cf8c260..43e9ef40 100644 --- a/components/resume/ats-analyzer.tsx +++ b/components/resume/ats-analyzer.tsx @@ -121,7 +121,7 @@ export function ATSAnalyzer() {