diff --git a/Frontend/env-example b/Frontend/env-example deleted file mode 100644 index 4ce57da..0000000 --- a/Frontend/env-example +++ /dev/null @@ -1,3 +0,0 @@ -VITE_SUPABASE_URL=https://your-project.supabase.co -VITE_SUPABASE_ANON_KEY=your-anon-key-here -VITE_YOUTUBE_API_KEY=your-youtube-api-key-here \ No newline at end of file diff --git a/Frontend/src/pages/Login.tsx b/Frontend/src/pages/Login.tsx index 875567a..4540e4a 100644 --- a/Frontend/src/pages/Login.tsx +++ b/Frontend/src/pages/Login.tsx @@ -48,12 +48,11 @@ export default function LoginPage() { console.log("Google login error", error); return; } - - // AuthContext will handle navigation based on user onboarding status and role }; return (
+ {/* Header - Now simplified with only the Logo */}
-
- - Don't have an account? - - - Sign up - -
@@ -230,6 +218,19 @@ export default function LoginPage() { Facebook
+ + {/* --- MOVED AUTH SWITCH LINK --- */} +
+

+ Don't have an account?{" "} + + Sign up + +

+
@@ -241,4 +242,4 @@ export default function LoginPage() { ); -} +} \ No newline at end of file diff --git a/Frontend/src/pages/Signup.tsx b/Frontend/src/pages/Signup.tsx index 0055239..460426d 100644 --- a/Frontend/src/pages/Signup.tsx +++ b/Frontend/src/pages/Signup.tsx @@ -1,4 +1,3 @@ - import { useState } from "react"; import { Link, useNavigate } from "react-router-dom"; import { Check, Eye, EyeOff, Rocket } from "lucide-react"; @@ -42,7 +41,6 @@ export default function SignupPage() { try { const { name, email, password } = formData; - // Check if user already exists const { data: existingUser } = await supabase.auth.signInWithPassword({ email, password: "dummy-password-to-check-existence", @@ -69,7 +67,6 @@ export default function SignupPage() { return; } setIsLoading(false); - // AuthContext will handle navigation based on user onboarding status and role } catch (err) { setError("Something went wrong. Please try again."); } finally { @@ -86,8 +83,6 @@ export default function SignupPage() { console.log("Google login error", error); return; } - - // AuthContext will handle navigation based on user onboarding status and role }; const passwordStrength = () => { @@ -119,6 +114,7 @@ export default function SignupPage() { return (
+ {/* Header - Simplified */}
-
- - Already have an account? - - - Sign in - -
@@ -221,6 +206,19 @@ export default function SignupPage() {
)} + + {/* --- MOVED AUTH SWITCH LINK --- */} +
+

+ Already have an account?{" "} + + Sign in + +

+
@@ -231,4 +229,4 @@ export default function SignupPage() { ); -} +} \ No newline at end of file