Layout visual: cabecera con nav/sesión/idioma + pie, tema Tailwind

- components/Header.tsx (server, lee sesión): marca, nav (Inicio; login/register o
  account/logout según sesión), LanguageSwitcher y LogoutButton.
- components/LanguageSwitcher.tsx (cliente): cambia de idioma conservando la ruta
  (next-intl usePathname/useRouter). components/LogoutButton.tsx (compartido).
- components/Footer.tsx. app/[locale]/layout.tsx envuelve children con Header/Footer
  (columna min-h-screen). Se unifica el LogoutButton (se borra el de account/).
- messages: namespace Nav.

Verificado: home ES/EN con cabecera+nav+idioma+pie; enlaces locale-aware (/en/login);
textos por idioma. Al leer sesión en el header, todas las rutas pasan a dinámicas.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-12 22:57:00 +00:00
parent f332fc39ca
commit 4a783d165f
8 changed files with 113 additions and 10 deletions
+8
View File
@@ -3,6 +3,14 @@
"title": "Nova WoW WoW WotLK 3.4.3 Server - Latino & Español 💎",
"description": "Download and play WotLK Classic for free on Nova WoW - WoW WotLK 3.4.3 server - The best WoW server 🔥"
},
"Nav": {
"home": "Home",
"login": "Sign in",
"register": "Create account",
"account": "My account",
"logout": "Log out",
"language": "Language"
},
"Home": {
"brand": "Nova WoW",
"serverStatus": "Server status",
+8
View File
@@ -3,6 +3,14 @@
"title": "Nova WoW Server de WoW WotLK 3.4.3 Latino y Español 💎",
"description": "Descarga y juega gratis a WotLK Classic en Nova WoW - Server de WoW WotLK 3.4.3 Latino y Español - El mejor server de WoW 🔥"
},
"Nav": {
"home": "Inicio",
"login": "Iniciar sesión",
"register": "Crear cuenta",
"account": "Mi cuenta",
"logout": "Cerrar sesión",
"language": "Idioma"
},
"Home": {
"brand": "Nova WoW",
"serverStatus": "Estado del servidor",