El footer "Ayuda" no tenía contenido real -- los 4 links apuntaban a /catalog. Se agregan dos páginas nuevas con información real: - /envios: transportadoras reales de EnvíoClick (Coordinadora, Envía, TCC, Rappi, Pibox -- confirmadas en una cotización real, ver ADR 0010 §2) y cómo se calcula el costo. - /contacto: WhatsApp real (+57 301 613 8155, mismo número ya usado en el fallback de checkout) y correo [email protected] (reenviado por Cloudflare Email Routing -- configuración manual de DNS pendiente del lado del usuario, fuera de alcance de este cambio). "Preguntas frecuentes" y "Cambios" quedan sin contenido real definido todavía, apuntando a /catalog como antes. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01THZFwPzrwv6VAbuwmaf5vR
31 lines
2.4 KiB
TypeScript
31 lines
2.4 KiB
TypeScript
import Link from "next/link";
|
|
import { Facebook, Instagram, MessageCircle } from "lucide-react";
|
|
|
|
// "Envíos" y "Contacto" ya tienen paginas reales (app/envios,
|
|
// app/contacto -- contenido real: transportadoras de EnvioClick,
|
|
// WhatsApp/correo reales). "Preguntas frecuentes" y "Cambios" todavia
|
|
// no tienen contenido real decidido -- quedan apuntando a /catalog
|
|
// (no rotas, pero tampoco resueltas) hasta que se defina que van a
|
|
// decir.
|
|
const HELP_LINKS = [
|
|
{ label: "Preguntas frecuentes", href: "/catalog" },
|
|
{ label: "Envíos", href: "/envios" },
|
|
{ label: "Cambios", href: "/catalog" },
|
|
{ label: "Contacto", href: "/contacto" },
|
|
];
|
|
|
|
const SHOP_LINKS = [
|
|
{ label: "Novedades", href: "/catalog" },
|
|
{ label: "Juguetes", href: "/catalog" },
|
|
{ label: "Mochilas", href: "/catalog" },
|
|
{ label: "Regalos", href: "/catalog" },
|
|
];
|
|
|
|
export function Footer() {
|
|
return <footer className="bg-ari-marino text-white"><div className="mx-auto grid max-w-7xl gap-10 px-4 py-14 sm:grid-cols-2 lg:grid-cols-4"><div><div className="flex flex-col items-start gap-3"><img src="/images/brand/logo-ari.svg" alt="ARI shopping" className="h-11 w-auto" width={200} height={64} />{/* eslint-disable-line @next/next/no-img-element -- vector propio, next/image no optimiza SVG sin habilitar dangerouslyAllowSVG */}<p className="text-xs text-white/60">Tesoros para cada aventura.</p></div><div className="mt-5 flex gap-3"><Instagram /><Facebook /><MessageCircle /></div></div><FooterColumn title="Compra" links={SHOP_LINKS} /><FooterColumn title="Ayuda" links={HELP_LINKS} /><div><h3 className="font-black">Newsletter</h3><p className="mt-3 text-sm leading-6 text-white/60">Recibe lanzamientos y promociones especiales.</p><div className="mt-4 flex rounded-full bg-white p-1"><input className="min-w-0 flex-1 bg-transparent px-4 text-sm text-slate-950 outline-none" placeholder="Tu correo" /><button className="rounded-full bg-ari-coral px-4 text-sm font-black text-white">Unirme</button></div></div></div><div className="border-t border-white/10 py-5 text-center text-xs text-white/50">© 2026 ARI Shopping · Frontend headless v4.1 · GitOps</div></footer>;
|
|
}
|
|
|
|
function FooterColumn({ title, links }: { title: string; links: { label: string; href: string }[] }) {
|
|
return <div><h3 className="font-black">{title}</h3><div className="mt-4 grid gap-3 text-sm text-white/60">{links.map((link) => <Link key={link.label} href={link.href} className="hover:text-ari-coral-claro">{link.label}</Link>)}</div></div>;
|
|
}
|