"use client"; import { motion } from "framer-motion"; import { Badge } from "@/components/ui/Badge"; import { ContactoForm } from "@/components/forms/ContactoForm"; import { FiMapPin, FiMail, FiPhone } from "react-icons/fi"; import { useLanguage } from "@/context/LanguageContext"; export default function ContactoPage() { const { t } = useLanguage(); const infoContacto = [ { icon: , label: t.contacto.info.address, value: "Av. de Madrid, 138, Sants-Montjuïc, 08028 Barcelona", href: "https://www.google.com/maps/search/?api=1&query=Av.+de+Madrid,+138,+08028+Barcelona", }, { icon: , label: t.contacto.info.email, value: "jordi@itemopina.com", href: "mailto:jordi@itemopina.com", isEmail: true, }, { icon: , label: t.contacto.info.phone, value: "650 066 923", href: "tel:+34650066923", }, ]; // Lógica para resaltar la última palabra del título en color ocean const titleWords = t.contacto.heroTitle.split(" "); const lastWord = titleWords.pop(); const mainTitle = titleWords.join(" "); return ( {/* Columna de Información */} {t.contacto.badge || "Contacto Directo"} {mainTitle} {lastWord} {t.contacto.heroDesc} {infoContacto.map((item, idx) => ( {item.icon} {item.label} {item.value} ))} {/* Columna del Formulario */} {t.contacto.form.title} ); }
{t.contacto.heroDesc}