mira, tengo esto: import React, { useState } from "react"; import { AiOutlineHome,…
- User
mira, tengo esto:
import React, { useState } from "react"; import { AiOutlineHome, AiOutlineUser } from "react-icons/ai"; import { BiBook, BiMessageSquareDetail } from "react-icons/bi"; import { RiServiceLine } from "react-icons/ri"; import { FaEnvelope } from "react-icons/fa";
import "./topbar.css";
const Topbar = ({ language }) => { const [activeNav, setActiveNav] = useState("#home");
const content = { en: { home: "Home", about: "About", skills: "Skills", portfolio: "Portfolio", contact: "Contact", contactMe: "Contact Me", }, es: { home: "Inicio", about: "Sobre mí", skills: "Habilidades", portfolio: "Portafolio", contact: "Contacto", contactMe: "Contáctame", }, };
return ( <a href="#home" onClick={() => setActiveNav("#home")} className={activeNav === "#home" ? "active" : ""} aria-label={content[language].home} > <a href="#about" onClick={() => setActiveNav("#about")} className={activeNav === "#about" ? "active" : ""} aria-label={content[language].about} > <a href="#experience" onClick={() => setActiveNav("#experience")} className={activeNav === "#experience" ? "active" : ""} aria-label={content[language].skills} > <a href="#portfolio" onClick={() => setActiveNav("#portfolio")} className={activeNav === "#portfolio" ? "active" : ""} aria-label={content[language].portfolio} > <a href="#contact" onClick={() => setActiveNav("#contact")} className={activeNav === "#contact" ? "active" : ""} aria-label={content[language].contact} > {/* Botón "Contáctame" con icono */} {content[language].contactMe} ); };
export default Topbar;
mira mi css:
/* src/components/topbar/topbar.css */
.topbar-nav { background: rgba(0, 0, 0, 0.3); width: max-content; display: flex; align-items: center; padding: 0.7rem 1.7rem; z-index: 2; position: fixed; left: 50%; transform: translateX(-50%); bottom: 2rem; gap: 0.8rem; border-radius: 3rem; backdrop-filter: blur(15px); }
.topbar-nav a { background: transparent; padding: 0.9rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-light); font-size: 1.1rem; text-decoration: none; transition: background 0.3s ease, color 0.3s ease; }
.topbar-nav a:hover { background: rgba(0, 0, 0, 0.3); }
.topbar-nav a.active { background: var(--color-bg); color: var(--color-white); }
/* Estilos para el botón "Contáctame" */ .topbar-contact-button { padding: 0.4rem 0.8rem; border: 2px solid; border-radius: 8px; color: #fff; font-size: 0.8rem; text-decoration: none; cursor: pointer; transition: all 0.3s ease;
/* Gráfico en el borde */ border-image: linear-gradient(45deg, #a64ac9, #00c6ff, #a64ac9) 1;
/* Sombra para efecto de neón */ box-shadow: 0 0 3px #a64ac9, 0 0 6px #a64ac9, 0 0 12px #a64ac9, 0 0 24px #00c6ff, 0 0 48px #00c6ff;
/* Animación inicial */ animation: neonGlow 3s infinite; display: flex; align-items: center; }
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.