web-next: migrar toda la UI al tema real nw-ryu

Reescritura completa del frontend Next.js del sistema visual Tailwind
"simulado" al tema Django original (nw-ryu), para paridad pixel con la
web actual antes del cutover.

- Tema real: copia de static/nw-themes/nw-ryu + favicons a public/, el
  layout carga el novavow-style.css real de ultimo (gana la cascada sobre
  Tailwind) + Font Awesome.
- Shell replicando los partials Django: SiteHeader, Video, Social, Footer,
  ServerClock; home con estructura real (main-page/middle-content/...).
- Helpers reutilizables: PageShell (main-page > middle-content > body-content
  > title-content) y ServiceBox (title-box-content + back-to-account).
- Paginas migradas a clases reales del tema (fieldset/tool-button/char-box/
  item-box/info-box-light/max-center-table/alert-message/botones reales),
  eliminando el markup Tailwind (.nw-btn/.nw-card/.nw-input):
  auth (login/register/recover/reset/select-account/activate),
  cuenta + servicios de personaje (revive/unstuck/rename/customize/
  change-race/change-faction/level-up/gold/transfer + pago Stripe),
  ajustes (change-password/change-email/security-token),
  comunidad (vote-points/recruit/battlepay), foro completo, y
  admin (indice + 7 secciones + los Admin*Manager).
- Se conserva el bilingue (next-intl); claves nuevas en messages/es|en.json.

Verificado: typecheck + build OK; rutas protegidas 307->login; sin
MISSING_MESSAGE; cero Tailwind residual (solo .nw-tool-btn/.nw-page,
clases propias en globals.css).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-13 09:54:58 +00:00
parent 8bb18838ff
commit cc158d3819
230 changed files with 7899 additions and 1386 deletions
+27 -23
View File
@@ -44,36 +44,40 @@ export function AdminVotesManager({ initial }: { initial: VoteSite[] }) {
if ((await res.json()).success) setSites(sites.filter((s) => s.id !== id))
}
const field = 'nw-input'
return (
<div>
<form onSubmit={create} className="mb-8 space-y-3 nw-card">
<input value={form.name} onChange={(e) => upd('name', e.target.value)} placeholder={t('voteName')} className={field} />
<input value={form.url} onChange={(e) => upd('url', e.target.value)} placeholder={t('voteUrl')} className={field} />
<input value={form.imageUrl} onChange={(e) => upd('imageUrl', e.target.value)} placeholder={t('voteImage')} className={field} />
<input type="number" min="0" value={form.points} onChange={(e) => upd('points', e.target.value)} placeholder={t('votePoints')} className={field} />
<button type="submit" disabled={busy} className="nw-btn disabled:opacity-60">
<form onSubmit={create} className="admin-form info-box-light separate2">
<input value={form.name} onChange={(e) => upd('name', e.target.value)} placeholder={t('voteName')} />
<input value={form.url} onChange={(e) => upd('url', e.target.value)} placeholder={t('voteUrl')} />
<input value={form.imageUrl} onChange={(e) => upd('imageUrl', e.target.value)} placeholder={t('voteImage')} />
<input type="number" min="0" value={form.points} onChange={(e) => upd('points', e.target.value)} placeholder={t('votePoints')} />
<button type="submit" disabled={busy}>
{busy ? t('creating') : t('create')}
</button>
</form>
<br />
{sites.length === 0 ? (
<p className="text-amber-200/70">{t('noVotes')}</p>
<p className="second-brown centered">{t('noVotes')}</p>
) : (
<ul className="divide-y divide-amber-900/40">
{sites.map((s) => (
<li key={s.id} className="flex items-center justify-between gap-4 py-3">
<div>
<p className="font-semibold text-amber-300">{s.name}</p>
<p className="text-xs text-amber-200/50">
{s.points} PV · {s.url}
</p>
</div>
<button onClick={() => remove(s.id)} className="rounded border border-red-900/60 px-3 py-1 text-sm text-red-400 hover:bg-red-950/40">
{t('delete')}
</button>
</li>
))}
</ul>
<table className="max-center-table">
<tbody>
{sites.map((s) => (
<tr key={s.id} className="team-center-table-tr">
<td className="lefted separate">
<span className="yellow-info">{s.name}</span>
<p className="third-brown small-font">
{s.points} PV · {s.url}
</p>
</td>
<td className="real-info-box">
<button onClick={() => remove(s.id)} className="nw-tool-btn red-info2">
{t('delete')}
</button>
</td>
</tr>
))}
</tbody>
</table>
)}
</div>
)