feat: allow custom account login and add auth page cross-links
This commit is contained in:
@@ -23,14 +23,48 @@ export default function RegisterPage() {
|
||||
<main className="grid min-h-screen place-items-center bg-slate-50 px-4">
|
||||
<form onSubmit={submit} className="w-full max-w-md rounded-3xl bg-white p-8 shadow-soft">
|
||||
<h1 className="text-3xl font-black">Ücretsiz başla</h1>
|
||||
|
||||
<label className="mt-6 block text-sm font-bold">Ad</label>
|
||||
<input className="mt-2 w-full rounded-xl border border-slate-200 px-4 py-3" value={name} onChange={(e) => setName(e.target.value)} />
|
||||
<input
|
||||
placeholder="Adınız"
|
||||
className="mt-2 w-full rounded-xl border border-slate-200 px-4 py-3 focus:outline-none focus:ring-2 focus:ring-violet-600"
|
||||
value={name}
|
||||
onChange={(e) => setName(e.target.value)}
|
||||
required
|
||||
/>
|
||||
|
||||
<label className="mt-4 block text-sm font-bold">E-posta</label>
|
||||
<input className="mt-2 w-full rounded-xl border border-slate-200 px-4 py-3" value={email} onChange={(e) => setEmail(e.target.value)} />
|
||||
<input
|
||||
type="email"
|
||||
placeholder="E-posta adresiniz"
|
||||
className="mt-2 w-full rounded-xl border border-slate-200 px-4 py-3 focus:outline-none focus:ring-2 focus:ring-violet-600"
|
||||
value={email}
|
||||
onChange={(e) => setEmail(e.target.value)}
|
||||
required
|
||||
/>
|
||||
|
||||
<label className="mt-4 block text-sm font-bold">Şifre</label>
|
||||
<input type="password" className="mt-2 w-full rounded-xl border border-slate-200 px-4 py-3" value={password} onChange={(e) => setPassword(e.target.value)} />
|
||||
<input
|
||||
type="password"
|
||||
placeholder="En az 6 karakterli şifreniz"
|
||||
className="mt-2 w-full rounded-xl border border-slate-200 px-4 py-3 focus:outline-none focus:ring-2 focus:ring-violet-600"
|
||||
value={password}
|
||||
onChange={(e) => setPassword(e.target.value)}
|
||||
required
|
||||
/>
|
||||
|
||||
{error && <div className="mt-4 rounded-xl bg-red-50 p-3 text-sm text-red-700">{error}</div>}
|
||||
<button className="mt-6 w-full rounded-xl bg-violet-700 px-4 py-3 font-bold text-white">Hesap oluştur</button>
|
||||
|
||||
<button className="mt-6 w-full rounded-xl bg-violet-700 px-4 py-3 font-bold text-white hover:bg-violet-800 transition">
|
||||
Hesap oluştur
|
||||
</button>
|
||||
|
||||
<div className="mt-6 text-center text-sm">
|
||||
<span className="text-slate-500">Zaten hesabınız var mı? </span>
|
||||
<a href="/login" className="font-semibold text-violet-700 hover:underline">
|
||||
Giriş yap
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</main>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user