mira, tengo esto: import React, { useState, useEffect }… · The Chat Archive
Explore / Programming mira, tengo esto: import React, { useState, useEffect } from "react"; import {… Save Share Download ▾ Reportmira, tengo esto:
import React, { useState, useEffect } from "react";
import { BsFillPatchCheckFill } from "react-icons/bs";
import { VscFolderLibrary } from "react-icons/vsc";
import "./experience.css";
const Experience = ({ language }) => {
useEffect(() => {
const cards = document.querySelectorAll(".experience__container > div");
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("show");
} else {
entry.target.classList.remove("show");
}
});
});
cards.forEach((card) => observer.observe(card));
return () => observer.disconnect();
}, []);
const content = {
en: {
skillsIHave: "The Skills I Have",
skills: "Skills",
frontEnd: "Front-end Development",
html: "HTML",
css: "CSS",
javascript: "JavaScript",
java: "Java",
kotlin: "Kotlin",
python: "Python",
backEnd: "Back-end Development",
docker: "Docker",
liquibase: "Liquibase",
postgresql: "PostgreSQL",
mysql: "MySql",
swagger: "Swagger",
gitlab: "GitLab",
gitgithub: "Git/GitHub",
frameworks: "Frameworks",
angular: "Angular",
springboot: "Spring Boot",
bootstrap: "Bootstrap",
tailwind: "Tailwind",
react: "React",
thymeleaf: "Thymeleaf",
others: "Others",
scrum: "SCRUM",
query: "Query",
microservices: "Microservices",
nodejs: "Node.js",
api: "API",
pylint: "Pylint",
black: "Black",
showCertificates: "Show Certificates",
hideCertificates: "Hide Certificates",
softwareEngineerCertificate: "Software Engineer Certificate",
viewCertificate: "View Certificate",
angularCertificate: "Angular (Intermediate) Certificate",
sqlCertificate: "SQL (Advanced) Certificate",
scrumCertificate: "Scrum Fundamentals Certified (SFC™)",
frontendReactCertificate: "Frontend Developer (React) Certificate",
restAPICertificate: "Rest API (Intermediate) Certificate",
javascriptCertificate: "JavaScript (Intermediate) Certificate",
},
es: {
skillsIHave: "Las habilidades que tengo",
skills: "Habilidades",
frontEnd: "Desarrollo Front-end",
html: "HTML",
css: "CSS",
javascript: "JavaScript",
java: "Java",
kotlin: "Kotlin",
python: "Python",
backEnd: "Desarrollo Back-end",
docker: "Docker",
liquibase: "Liquibase",
postgresql: "PostgreSQL",
mysql: "MySql",
swagger: "Swagger",
gitlab: "GitLab",
gitgithub: "Git/GitHub",
frameworks: "Frameworks",
angular: "Angular",
springboot: "Spring Boot",
bootstrap: "Bootstrap",
tailwind: "Tailwind",
react: "React",
thymeleaf: "Thymeleaf",
others: "Otros",
scrum: "SCRUM",
query: "Query",
microservices: "Microservicios",
nodejs: "Node.js",
api: "API",
pylint: "Pylint",
black: "Black",
showCertificates: "Mostrar Certificados",
hideCertificates: "Ocultar Certificados",
softwareEngineerCertificate: "Certificado de Ingeniero de Software",
viewCertificate: "Ver Certificado",
angularCertificate: "Certificado de Angular (Intermedio)",
sqlCertificate: "Certificado de SQL (Avanzado)",
scrumCertificate: "Scrum Fundamentals Certified (SFC™)",
frontendReactCertificate: "Certificado de Desarrollador Frontend (React)",
restAPICertificate: "Certificado de Rest API (Intermedio)",
javascriptCertificate: "Certificado de JavaScript (Intermedio)",
},
};
Assistant2024-09-27 19:33 UTC Copy response
Copy first prompt
Details
Provider OpenAI
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Conversation date Sep 27, 2024
Added to archive Nov 16, 2026
ID 01m7h41vydn8znnjz7k7erfp2ySource & license Imported from WildChat-4.8M (AI2) (source ). Imported records earn no Research Points.
Upstream record: 7bc34144273d1cb00c26449be0724e0f
Zhao et al., WildChat: 1M ChatGPT Interaction Logs in the Wild (ICLR 2024). Contains information from WildChat-4.8M, made available under the ODC Attribution License.
License: ODC-BY-1.0
const [showCertificates, setShowCertificates] = useState(false);
const toggleCertificates = () => {
setShowCertificates(!showCertificates);
};
return (
{content[language].skillsIHave}
{content[language].skills}
{content[language].frontEnd}
{content[language].html}
{content[language].css}
{content[language].javascript}
{content[language].java}
{content[language].kotlin}
{content[language].python}
{content[language].backEnd}
{content[language].docker}
{content[language].liquibase}
{content[language].postgresql}
{content[language].mysql}
{content[language].swagger}
{content[language].gitlab}
{content[language].gitgithub}
{content[language].frameworks}
{content[language].angular}
{content[language].springboot}
{content[language].bootstrap}
{content[language].tailwind}
{content[language].react}
{content[language].thymeleaf}
{content[language].others}
{content[language].scrum}
{content[language].query}
{content[language].microservices}
{content[language].nodejs}
{content[language].api}
{content[language].pylint}
{content[language].black}
{/* Botón para ver/ocultar certificados */}
<div className="experience__certificates-button">
{" "}
<button onClick={toggleCertificates} className="btn btn-secondary">
{showCertificates
? content[language].hideCertificates
: content[language].showCertificates}
</button>
</div>
{/* Certificados */}
{showCertificates && (
<div className="experience__certificates">
<article className="experience__card">
<VscFolderLibrary className="experience__icon" />
<h5>{content[language].softwareEngineerCertificate}</h5>
<small>
<a
href="https://www.hackerrank.com/certificates/c1ce3120f28a"
target="_blank"
rel="noopener noreferrer"
>
{content[language].viewCertificate}
</a>
</small>
</article>
<article className="experience__card">
<VscFolderLibrary className="experience__icon" />
<h5>{content[language].frontendReactCertificate}</h5>
<small>
<a
href="https://www.hackerrank.com/certificates/59900afd316e"
target="_blank"
rel="noopener noreferrer"
>
{content[language].viewCertificate}
</a>
</small>
</article>
<article className="experience__card">
<VscFolderLibrary className="experience__icon" />
<h5>{content[language].angularCertificate}</h5>
<small>
<a
href="https://www.hackerrank.com/certificates/f1287cbae472"
target="_blank"
rel="noopener noreferrer"
>
{content[language].viewCertificate}
</a>
</small>
</article>
<article className="experience__card">
<VscFolderLibrary className="experience__icon" />
<h5>{content[language].sqlCertificate}</h5>
<small>
<a
href="https://www.hackerrank.com/certificates/07877ed75494"
target="_blank"
rel="noopener noreferrer"
>
{content[language].viewCertificate}
</a>
</small>
</article>
<article className="experience__card">
<VscFolderLibrary className="experience__icon" />
<h5>{content[language].restAPICertificate}</h5>
<small>
<a
href="https://www.hackerrank.com/certificates/6f9c7aa851a9"
target="_blank"
rel="noopener noreferrer"
>
{content[language].viewCertificate}
</a>
</small>
</article>
<article className="experience__card">
<VscFolderLibrary className="experience__icon" />
<h5>{content[language].javascriptCertificate}</h5>
<small>
<a
href="https://www.hackerrank.com/certificates/bcd1918a93d0"
target="_blank"
rel="noopener noreferrer"
>
{content[language].viewCertificate}
</a>
</small>
</article>
<article className="experience__card">
<VscFolderLibrary className="experience__icon" />
<h5>{content[language].scrumCertificate}</h5>
<small>
<a
href="https://www.scrumstudy.com/certification/verify?type=SFC&number=978278"
target="_blank"
rel="noopener noreferrer"
>
{content[language].viewCertificate}
</a>
</small>
</article>
</div>
)}
</section>
export default Experience;
.experience__container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
justify-content: center;
}
.experience__container > div {
background: var(--color-bg-variant);
padding: 1.5rem 2.5rem;
border-radius: 2rem;
border: 1px solid transparent;
transition: var(--transition);
opacity: 0;
transform: translateY(20px);
transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.experience__container > div:hover {
background: transparent;
border-color: var(--color-primary-variant);
cursor: default;
}
.experience__container > div h3 {
text-align: center;
margin-bottom: 1.5rem;
color: var(--color-primary);
font-size: 1.1rem;
}
.experience__container > div.show {
opacity: 1;
transform: translateY(0);
}
.experience__content {
display: grid;
grid-template-columns: 1fr 1fr;
row-gap: 1.5rem;
}
.experience__details {
display: flex;
gap: 0.8rem;
animation: fadeInUp 0.5s ease-in-out;
}
.experience__details-icon {
margin-top: 6px;
color: var(--color-primary);
font-size: 1.2rem;
}
.experience__certificates {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
margin-top: 2rem;
width: 80%;
margin-left: auto;
margin-right: auto;
}
.experience__card {
background: var(--color-bg-variant);
border: 1px solid transparent;
border-radius: 1rem;
padding: 2rem;
text-align: center;
transition: var(--transition);
}
.experience__card:hover {
background: transparent;
border-color: var(--color-primary-variant);
cursor: default;
}
.experience__icon {
color: var(--color-primary);
font-size: 1.5rem;
margin-bottom: 1rem;
}
.experience__card h5 {
font-size: 1rem;
}
.experience__card small {
font-size: 0.9rem;
color: var(--color-light);
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media screen and (max-width: 1024px) {
.experience__container {
grid-template-columns: 1fr;
}
.experience__container > div {
width: 80%;
margin: 0 auto;
padding: 2rem;
}
.experience__content p {
padding: 1rem;
}
.experience__certificates {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
width: 80%;
margin-left: auto;
margin-right: auto;
}
.experience__card {
background: var(--color-bg-variant);
border: 1px solid transparent;
border-radius: 1rem;
padding: 2rem;
text-align: center;
transition: var(--transition);
}
.experience__card:hover {
background: transparent;
border-color: var(--color-primary-variant);
cursor: default;
}
.experience__icon {
color: var(--color-primary);
font-size: 1.5rem;
margin-bottom: 1rem;
}
.experience__card h5 {
font-size: 1rem;
}
.experience__card small {
font-size: 0.9rem;
color: var(--color-light);
}
}
.experience__certificates-button {
display: block;
margin: 2rem auto 0;
text-align: center;
}
@media screen and (max-width: 600px) {
.experience__container {
gap: 1rem;
}
.experience__container > div {
width: 100%;
padding: 2rem 1rem;
}
.experience__certificates {
grid-template-columns: 1fr;
}
}
necesito que tenga las mismas cosas de neon en los bordes y atras que el boton de dowloand cv:
import React from "react";
import CTA from "./CTA";
import HeaderSocials from "./HeaderSocials";
import "./header.css";
const Header = ({ language, onLanguageChange }) => {
const content = {
en: {
greeting: "Hello I'm",
name: "Johan Morales",
title: "Full Stack Developer",
scrollDown: "Scroll Down",
},
es: {
greeting: "Hola, soy",
name: "Johan Morales",
title: "Desarrollador Full Stack",
scrollDown: "Desplazarse hacia abajo",
},
};
return (
<button
onClick={() => onLanguageChange("en")}
className={btn btn-english ${language === "en" ? "active" : ""}}
>
English
<button
onClick={() => onLanguageChange("es")}
className={btn btn-spanish ${language === "es" ? "active" : ""}}
>
Español
{content[language].greeting}
{content[language].name}
{content[language].title}
{content[language].scrollDown}
);
};
header {
height: 100%;
padding-top: 7rem;
overflow: hidden;
}
.header__container {
text-align: center;
height: 100%;
position: relative;
}
.cta {
display: flex;
justify-content: center;
gap: 1.2rem;
margin-top: 2.5rem;
}
.cta .btn {
display: inline-block;
padding: 10px 20px;
color: white;
text-decoration: none;
font-size: 16px;
border: 2px solid transparent;
border-radius: 5px;
background-color: #97a0aa00;
position: relative;
transition: color 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 0 5px #00c3ff, 0 0 10px #00c3ff, 0 0 15px #00c3ff;
margin-bottom: 20px;
animation: neonGlow 3s infinite alternate;
}
.cta .btn::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 5px;
padding: 2px;
background: linear-gradient(45deg, #00c3ff, #800080);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: destination-out;
mask-composite: exclude;
transition: opacity 0.3s ease;
opacity: 0.5;
animation: neonGradient 3s infinite alternate;
}
.cta .btn:hover::before {
opacity: 1;
}
.cta .btn:hover {
color: #00c3ff;
box-shadow: 0 0 20px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
}
.header__socials {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.8rem;
position: absolute;
left: 5rem;
bottom: 1rem;
}
.header__socials::after {
content: "";
width: 1px;
height: 2rem;
background: var(--color-primary);
}
.scroll__down {
position: absolute;
right: 5rem;
bottom: 5rem;
transform: rotate(90deg);
font-weight: 300;
font-size: 0.9rem;
}
.language-buttons {
display: flex;
justify-content: flex-end;
gap: 0.3rem;
margin-bottom: 3rem;
}
.language-buttons button {
position: relative;
font-size: 0.6rem;
padding: 0.5rem;
border: none;
border-radius: 5px;
background: transparent;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
margin-left: 0.1rem;
font-weight: bold;
}
.language-buttons button:first-child {
margin-left: 0;
}
.language-buttons button:hover {
transform: scale(1.1);
}
.btn {
color: white;
outline: none;
}
.btn-english::before {
content: "";
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
border-radius: 5px;
background: linear-gradient(45deg, white, blue);
z-index: -1;
opacity: 0.7;
box-shadow: 0 0 10px, 0 0 20px white, 0 0 30px blue;
animation: neonPulseEn 3s infinite alternate;
}
.btn-spanish::before {
content: "";
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
border-radius: 5px;
background: linear-gradient(45deg, red, yellow);
z-index: -1;
opacity: 0.7;
box-shadow: 0 0 10px red, 0 0 20px yellow, 0 0 30px red;
animation: neonPulseEs 3s infinite alternate;
}
.btn-english.active::before,
.btn-spanish.active::before {
opacity: 1;
}
@keyframes neonPulseEn {
from {
box-shadow: 0 0 10px red, 0 0 20px white, 0 0 30px blue;
}
to {
box-shadow: 0 0 20px red, 0 0 30px white, 0 0 40px blue;
}
}
@keyframes neonPulseEs {
from {
box-shadow: 0 0 10px, 0 0 20px yellow, 0 0 30px red;
}
to {
box-shadow: 0 0 20px, 0 0 30px yellow, 0 0 40px red;
}
}
@media screen and (max-width: 1024px) {
header {
padding-top: 3rem;
}
section {
margin-top: 6rem;
}
}
@media screen and (max-width: 600px) {
.header__socials,
.scroll__down {
display: none;
}
}
@keyframes neonGlow {
0% {
box-shadow: 0 0 5px #00c3ff, 0 0 10px #00c3ff, 0 0 15px #00c3ff;
}
100% {
box-shadow: 0 0 5px #800080, 0 0 10px #800080, 0 0 15px #800080;
}
}
@keyframes neonGradient {
0% {
background: linear-gradient(45deg, #00c3ff, #800080);
}
100% {
background: linear-gradient(45deg, #800080, #00c3ff);
}
}
¡Claro! Puedo ayudarte a agregar efectos de neón a los bordes y fondos de tu sección de Experience para que coincidan con el estilo del botón de descarga de CV en tu componente Header . A continuación, te mostraré cómo puedes modificar tu archivo CSS para lograr este efecto.
Paso 1: Identificar los Elementos a Estilizar
Para replicar el efecto de neón que tienes en el botón de descarga de CV (.cta .btn), aplicaremos efectos similares a las tarjetas de experiencia y a las secciones principales de la misma.
Elementos Clave:
Tarjetas de Experiencia (.experience__container > div): Estas son las secciones que contienen tus habilidades y certificaciones.
Tarjetas de Certificados (.experience__card): Las tarjetas individuales que muestran cada certificado.
Paso 2: Agregar Efectos de Neón al CSS
Vamos a modificar tu archivo experience.css para incluir efectos de neón similares a los del botón de descarga de CV.
1. Aplicar Efecto de Neón a las Secciones de Experiencia
Añadiremos un pseudo-elemento ::before a las secciones principales para crear un borde de neón y un efecto de fondo.
.experience__container > div {
position: relative; /* Necesario para el posicionamiento del pseudo-elemento */
background: var(--color-bg-variant);
padding: 1.5rem 2.5rem;
border-radius: 2rem;
border: 1px solid transparent;
transition: var(--transition);
opacity: 0;
transform: translateY(20px);
transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
overflow: hidden; /* Para ocultar el pseudo-elemento fuera de los bordes */
}
.experience__container > div::before {
content: "";
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
border-radius: inherit;
background: linear-gradient(45deg, #00c3ff, #800080);
z-index: -1;
opacity: 0.7;
box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
animation: neonPulseExperience 3s infinite alternate;
}
.experience__container > div:hover::before {
opacity: 1;
}
@keyframes neonPulseExperience {
from {
box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
}
to {
box-shadow: 0 0 20px #800080, 0 0 30px #800080, 0 0 40px #800080;
}
}
2. Aplicar Efecto de Neón a las Tarjetas de Certificados
De manera similar, aplicaremos un efecto de neón a las tarjetas de certificados (.experience__card).
.experience__card {
position: relative; /* Necesario para el posicionamiento del pseudo-elemento */
background: var(--color-bg-variant);
border: 1px solid transparent;
border-radius: 1rem;
padding: 2rem;
text-align: center;
transition: var(--transition);
overflow: hidden; /* Para ocultar el pseudo-elemento fuera de los bordes */
}
.experience__card::before {
content: "";
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
border-radius: inherit;
background: linear-gradient(45deg, #00c3ff, #800080);
z-index: -1;
opacity: 0.7;
box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
animation: neonPulseCard 3s infinite alternate;
}
.experience__card:hover::before {
opacity: 1;
}
@keyframes neonPulseCard {
from {
box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
}
to {
box-shadow: 0 0 20px #800080, 0 0 30px #800080, 0 0 40px #800080;
}
}
3. Ajustar Transiciones y Opacidades
Para que las transiciones sean suaves y coherentes, podemos ajustar las propiedades de transición y opacidad en las secciones de experiencia.
.experience__container > div.show {
opacity: 1;
transform: translateY(0);
}
.experience__container > div:hover {
background: transparent;
border-color: var(--color-primary-variant);
cursor: default;
}
4. Opcional: Agregar Efecto de Glorificación Global
Si deseas un efecto más pronunciado, puedes aumentar la intensidad de las sombras y ajustar la animación.
@keyframes neonPulseExperience {
from {
box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
}
to {
box-shadow: 0 0 25px #800080, 0 0 35px #800080, 0 0 45px #800080;
}
}
@keyframes neonPulseCard {
from {
box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
}
to {
box-shadow: 0 0 25px #800080, 0 0 35px #800080, 0 0 45px #800080;
}
}
Paso 3: Integrar los Cambios en el CSS Completo
A continuación, te muestro el archivo experience.css completo con las modificaciones necesarias:
/* experience.css */
.experience__container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
justify-content: center;
}
.experience__container > div {
position: relative; /* Añadido para el pseudo-elemento */
background: var(--color-bg-variant);
padding: 1.5rem 2.5rem;
border-radius: 2rem;
border: 1px solid transparent;
transition: var(--transition);
opacity: 0;
transform: translateY(20px);
transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
overflow: hidden; /* Para ocultar el pseudo-elemento fuera de los bordes */
}
.experience__container > div::before {
content: "";
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
border-radius: inherit;
background: linear-gradient(45deg, #00c3ff, #800080);
z-index: -1;
opacity: 0.7;
box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
animation: neonPulseExperience 3s infinite alternate;
}
.experience__container > div:hover::before {
opacity: 1;
}
.experience__container > div:hover {
background: transparent;
border-color: var(--color-primary-variant);
cursor: default;
}
.experience__container > div.show {
opacity: 1;
transform: translateY(0);
}
@keyframes neonPulseExperience {
from {
box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
}
to {
box-shadow: 0 0 25px #800080, 0 0 35px #800080, 0 0 45px #800080;
}
}
.experience__content {
display: grid;
grid-template-columns: 1fr 1fr;
row-gap: 1.5rem;
}
.experience__details {
display: flex;
gap: 0.8rem;
animation: fadeInUp 0.5s ease-in-out;
}
.experience__details-icon {
margin-top: 6px;
color: var(--color-primary);
font-size: 1.2rem;
}
.experience__certificates {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
margin-top: 2rem;
width: 80%;
margin-left: auto;
margin-right: auto;
}
.experience__card {
position: relative; /* Añadido para el pseudo-elemento */
background: var(--color-bg-variant);
border: 1px solid transparent;
border-radius: 1rem;
padding: 2rem;
text-align: center;
transition: var(--transition);
overflow: hidden; /* Para ocultar el pseudo-elemento fuera de los bordes */
}
.experience__card::before {
content: "";
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
border-radius: inherit;
background: linear-gradient(45deg, #00c3ff, #800080);
z-index: -1;
opacity: 0.7;
box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
animation: neonPulseCard 3s infinite alternate;
}
.experience__card:hover::before {
opacity: 1;
}
.experience__card:hover {
background: transparent;
border-color: var(--color-primary-variant);
cursor: default;
}
@keyframes neonPulseCard {
from {
box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
}
to {
box-shadow: 0 0 25px #800080, 0 0 35px #800080, 0 0 45px #800080;
}
}
.experience__icon {
color: var(--color-primary);
font-size: 1.5rem;
margin-bottom: 1rem;
}
.experience__card h5 {
font-size: 1rem;
}
.experience__card small {
font-size: 0.9rem;
color: var(--color-light);
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media screen and (max-width: 1024px) {
.experience__container {
grid-template-columns: 1fr;
}
.experience__container > div {
width: 80%;
margin: 0 auto;
padding: 2rem;
}
.experience__content p {
padding: 1rem;
}
.experience__certificates {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
width: 80%;
margin-left: auto;
margin-right: auto;
}
.experience__card {
background: var(--color-bg-variant);
border: 1px solid transparent;
border-radius: 1rem;
padding: 2rem;
text-align: center;
transition: var(--transition);
overflow: hidden; /* Asegurarse de que el pseudo-elemento no sobresalga */
}
.experience__card:hover {
background: transparent;
border-color: var(--color-primary-variant);
cursor: default;
}
.experience__icon {
color: var(--color-primary);
font-size: 1.5rem;
margin-bottom: 1rem;
}
.experience__card h5 {
font-size: 1rem;
}
.experience__card small {
font-size: 0.9rem;
color: var(--color-light);
}
@keyframes neonPulseCard {
from {
box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff, 0 0 30px #00c3ff;
}
to {
box-shadow: 0 0 25px #800080, 0 0 35px #800080, 0 0 45px #800080;
}
}
}
@media screen and (max-width: 600px) {
.experience__container {
gap: 1rem;
}
.experience__container > div {
width: 100%;
padding: 2rem 1rem;
}
.experience__certificates {
grid-template-columns: 1fr;
}
}
Explicación de los Cambios
Uso de position: relative y ::before: Para cada sección y tarjeta de certificado, establecemos position: relative para que el pseudo-elemento ::before se posicione correctamente. Este pseudo-elemento crea el borde y el efecto de neón.
Gradientes y Sombras: Utilizamos linear-gradient para los colores del neón y aplicamos múltiples box-shadow para intensificar el efecto luminoso.
Animaciones (@keyframes neonPulseExperience y @keyframes neonPulseCard): Estas animaciones hacen que el brillo del neón pulse suavemente entre diferentes intensidades, creando una apariencia más dinámica.
Transiciones Suaves: Al pasar el cursor por encima (:hover), aumentamos la opacidad del efecto de neón para resaltar la sección o tarjeta.
Responsividad: Aseguramos que los efectos se mantengan consistentes en diferentes tamaños de pantalla ajustando las @media queries.
Resultado Final
Con estos cambios, tus secciones de Experience y las tarjetas de certificados tendrán un atractivo efecto de neón similar al botón de descarga de CV en tu Header . El efecto no solo es visualmente atractivo, sino que también ayuda a resaltar las diferentes áreas de tus habilidades y certificaciones.
Consideraciones Adicionales
Compatibilidad de Navegadores: Asegúrate de probar estos efectos en diferentes navegadores para garantizar una apariencia consistente.
Performance: Los efectos de sombra y animaciones pueden afectar el rendimiento en dispositivos más antiguos. Si notas alguna ralentización, considera reducir la cantidad de sombras o simplificar las animaciones.
Accesibilidad: Asegúrate de que los colores y contrastes utilizados sean accesibles para todos los usuarios. Puedes utilizar herramientas como WebAIM Contrast Checker para verificar la legibilidad.
Si tienes alguna otra duda o necesitas más ayuda, ¡no dudes en preguntar!
Copy first response
Not yet included in a published release.