fix: default auth modal to 'Join IndeeHub' register mode
- Modal now opens in register mode by default instead of login - Removed the subtitle text under the heading - Fake form fields update based on mode (Create a password vs Enter) - Toggle text reads "Already have an account? Sign in" first - Forgot password only shows in login mode Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -20,7 +20,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
CACHEBUST: "23"
|
CACHEBUST: "24"
|
||||||
VITE_USE_MOCK_DATA: "false"
|
VITE_USE_MOCK_DATA: "false"
|
||||||
VITE_CONTENT_ORIGIN: ${FRONTEND_URL}
|
VITE_CONTENT_ORIGIN: ${FRONTEND_URL}
|
||||||
VITE_INDEEHUB_API_URL: /api
|
VITE_INDEEHUB_API_URL: /api
|
||||||
|
|||||||
@@ -14,12 +14,9 @@
|
|||||||
<template v-if="sovereignPhase === 'normal'">
|
<template v-if="sovereignPhase === 'normal'">
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<div class="text-center mb-8">
|
<div class="text-center mb-8">
|
||||||
<h2 class="text-3xl font-bold text-white mb-2">
|
<h2 class="text-3xl font-bold text-white">
|
||||||
{{ mode === 'login' ? 'Welcome Back' : 'Join IndeedHub' }}
|
{{ mode === 'login' ? 'Welcome Back' : 'Join IndeeHub' }}
|
||||||
</h2>
|
</h2>
|
||||||
<p class="text-white/60">
|
|
||||||
{{ mode === 'login' ? 'Sign in to continue' : 'Create an account to get started' }}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Error Message -->
|
<!-- Error Message -->
|
||||||
@@ -35,13 +32,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="block text-white/80 text-sm font-medium mb-2">Password</label>
|
<label class="block text-white/80 text-sm font-medium mb-2">Password</label>
|
||||||
<div class="auth-input pointer-events-none select-none text-white/30">Enter your password</div>
|
<div class="auth-input pointer-events-none select-none text-white/30">{{ mode === 'register' ? 'Create a password' : 'Enter your password' }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right">
|
<div v-if="mode === 'login'" class="text-right">
|
||||||
<span class="text-sm text-white/60">Forgot password?</span>
|
<span class="text-sm text-white/60">Forgot password?</span>
|
||||||
</div>
|
</div>
|
||||||
<button type="button" class="hero-play-button w-full flex items-center justify-center">
|
<button type="button" class="hero-play-button w-full flex items-center justify-center">
|
||||||
<span>{{ mode === 'login' ? 'Sign In' : 'Create Account' }}</span>
|
<span>{{ mode === 'register' ? 'Create Account' : 'Sign In' }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -115,12 +112,12 @@
|
|||||||
|
|
||||||
<!-- Toggle Mode -->
|
<!-- Toggle Mode -->
|
||||||
<div class="mt-6 text-center text-sm text-white/60">
|
<div class="mt-6 text-center text-sm text-white/60">
|
||||||
{{ mode === 'login' ? "Don't have an account?" : "Already have an account?" }}
|
{{ mode === 'register' ? 'Already have an account?' : "Don't have an account?" }}
|
||||||
<button
|
<button
|
||||||
@click="toggleMode"
|
@click="toggleMode"
|
||||||
class="ml-1 text-white hover:text-white/80 font-medium transition-colors"
|
class="ml-1 text-white hover:text-white/80 font-medium transition-colors"
|
||||||
>
|
>
|
||||||
{{ mode === 'login' ? 'Sign up' : 'Sign in' }}
|
{{ mode === 'register' ? 'Sign in' : 'Sign up' }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -206,7 +203,7 @@ interface Emits {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<Props>(), {
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
defaultMode: 'login',
|
defaultMode: 'register',
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits<Emits>()
|
const emit = defineEmits<Emits>()
|
||||||
|
|||||||
Reference in New Issue
Block a user