Default to login mode and make signup toggle a prominent button

This commit is contained in:
nmemmert
2026-05-21 14:51:59 -04:00
parent 01143d3ec9
commit 295c0b61f8
2 changed files with 15 additions and 9 deletions
+2 -2
View File
@@ -16,9 +16,9 @@
"colossians"
],
"createdAt": "2026-05-21T13:05:00.000Z",
"updatedAt": "2026-05-21T15:41:16.259Z",
"updatedAt": "2026-05-21T18:41:10.857Z",
"lastLoginAt": "2026-05-21T15:41:16.259Z"
}
],
"updatedAt": "2026-05-21T15:41:16.259Z"
"updatedAt": "2026-05-21T18:41:10.858Z"
}
+13 -7
View File
@@ -549,7 +549,7 @@ export function StudyLandingPage({ content }: Props) {
export function StudySignupPage() {
const navigate = useNavigate()
const [mode, setMode] = useState<'signup' | 'login'>('signup')
const [mode, setMode] = useState<'signup' | 'login'>('login')
const [email, setEmail] = useState('')
const [password, setPassword] = useState('')
const [subscribeNewsletter, setSubscribeNewsletter] = useState(true)
@@ -645,12 +645,18 @@ export function StudySignupPage() {
{busy ? (mode === 'signup' ? 'Creating...' : 'Signing in...') : (mode === 'signup' ? 'Create Account' : 'Sign In')}
</button>
</div>
<p className="study-signup-switch">
{mode === 'signup'
? <><span>Already have an account? </span><button type="button" className="study-signup-toggle" onClick={() => { setMode('login'); setMessage('') }}>Sign in instead</button></>
: <><span>New here? </span><button type="button" className="study-signup-toggle" onClick={() => { setMode('signup'); setMessage('') }}>Create a free account</button></>
}
</p>
<div className="study-signup-actions" style={{ marginTop: '1rem' }}>
{mode === 'login' && (
<button type="button" className="btn-secondary" onClick={() => { setMode('signup'); setMessage('') }}>
Don't have an account? Sign up here
</button>
)}
{mode === 'signup' && (
<button type="button" className="btn-secondary" onClick={() => { setMode('login'); setMessage('') }}>
Already have an account? Sign in instead
</button>
)}
</div>
</div>
<div className="study-signup-why-grid" style={{ marginTop: '2rem' }}>