Renombrar /register -> /create-account + rediseño (Battle.net)
Mueve la página de registro a /create-account (los enlaces del header y del login apuntan ahí; /register ahora da 404 con el 404 del sitio). Rediseño según el diseño aportado, adaptado a Battle.net (cuenta por email, sin usuario): caja de info bnet (tipo bnet, reglas de contraseña/Gmail, activación, login por correo), ojos para mostrar/ocultar contraseña, checkbox de "no accedo desde EEUU" + términos (con enlaces), ambos requeridos para habilitar el botón, y bloqueo de pegar en confirmar contraseña/correo. i18n ES/EN. No incluye FingerprintJS (antiabuso por huella de dispositivo, requiere backend; la protección es Turnstile + Gmail + activación). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { getTranslations, setRequestLocale } from 'next-intl/server'
|
||||
import { PageShell } from '@/components/PageShell'
|
||||
import { RegisterForm } from './RegisterForm'
|
||||
|
||||
export default async function RegisterPage({ params }: { params: Promise<{ locale: string }> }) {
|
||||
const { locale } = await params
|
||||
setRequestLocale(locale)
|
||||
const t = await getTranslations('Register')
|
||||
|
||||
return (
|
||||
<PageShell title={t('title')}>
|
||||
<div className="box-content">
|
||||
<div className="body-box-content info-box-light justified">
|
||||
<p>{t('info')}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="box-content">
|
||||
<div className="body-box-content centered">
|
||||
<RegisterForm />
|
||||
</div>
|
||||
</div>
|
||||
</PageShell>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user