Interfaz FAQ Cyberpunk
Un componente FAQ futurista con estética cyberpunk, neones brillantes y efectos de glitch
Diseño Responsivo
Sí
Soporte para Modo Oscuro
No
líneas
334
Compatibilidad del Navegador
No
Vista Previa en Vivo
Interactúa con el componente sin salir de la página.
Componente de Interfaz FAQ Cyberpunk
Un componente FAQ futurista con estética cyberpunk, neones brillantes y efectos de glitch para una experiencia tecnológica distópica.
Características
- Estética Cyberpunk: Diseño futurista distópico con colores neón y elementos digitales
- Efectos de Brillo Neón: Elementos brillantes vibrantes usando sombras de texto y caja CSS
- Animaciones Glitch: Simulación de artefactos digitales y distorsiones de pantalla
- Efectos de Línea de Escaneo: Líneas de escaneo móviles para apariencia auténtica de monitor CRT
- Fondo de Cuadrícula: Patrón de cuadrícula animado para sensación de matriz digital
- Tipografía de Terminal: Fuente monoespaciada con formato estilo hacker
Estructura HTML
<div class="cyberpunk-faq-container">
<div class="faq-header">
<h2 class="faq-title">/// SISTEMA FAQ ///</h2>
<p class="faq-subtitle">ACCEDIENDO BASE DE CONOCIMIENTO...</p>
</div>
<div class="faq-list">
<div class="faq-item">
<div class="faq-question">
<span class="question-marker">>></span>
<span class="question-text">¿QUÉ ES EL DISEÑO CYBERPUNK?</span>
<span class="question-status">[ABIERTO]</span>
</div>
<div class="faq-answer">
<p>> CYBERPUNK ES UN SUBGÉNERO DE CIENCIA FICCIÓN ambientado en futuros distópicos con tecnología avanzada y decadencia social.</p>
<p>> CARACTERIZADO POR LUCES DE NEÓN, DOMINIO CORPORATIVO Y CULTURA DE HACKERS.</p>
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<span class="question-marker">>></span>
<span class="question-text">¿CÓMO FUNCIONAN LOS EFECTOS NEÓN?</span>
<span class="question-status">[ABIERTO]</span>
</div>
<div class="faq-answer">
<p>> LOS EFECTOS NEÓN SE LOGRAN MEDIANTE BOX-SHADOWS, TEXT-SHADOWS Y ANIMACIONES CSS.</p>
<p>> MÚLTIPLES CAPAS DE BRILLO CREAN LA ILUSIÓN DE EMISIÓN DE LUZ.</p>
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<span class="question-marker">>></span>
<span class="question-text">¿SON REALES LOS EFECTOS GLITCH?</span>
<span class="question-status">[ABIERTO]</span>
</div>
<div class="faq-answer">
<p>> LOS EFECTOS GLITCH SE SIMULAN USANDO TRANSFORMACIONES CSS Y PROPIEDADES CLIP-PATH.</p>
<p>> JAVASCRIPT ALEATORIZA LOS EFECTOS PARA CREAR ARTIFACTOS VISUALES IMPREDECIBLES.</p>
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<span class="question-marker">>></span>
<span class="question-text">¿PUEDO PERSONALIZAR LOS COLORES?</span>
<span class="question-status">[ABIERTO]</span>
</div>
<div class="faq-answer">
<p>> SÍ, EL COMPONENTE USA PROPIEDADES CSS PERSONALIZADAS PARA FACILITAR EL TEMADO DE COLORES.</p>
<p>> MODIFICA LA VARIABLE --neon-color PARA CAMBIAR EL COLOR PRINCIPAL DEL BRILLO.</p>
</div>
</div>
</div>
<div class="scanline"></div>
</div>Estilos CSS
.cyberpunk-faq-container {
max-width: 800px;
margin: 2rem auto;
padding: 2rem;
font-family: 'Courier New', monospace;
background: #0a0a0a;
color: #00ff41;
position: relative;
overflow: hidden;
border: 1px solid #00ff41;
box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}
.cyberpunk-faq-container::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
background-size: 20px 20px;
pointer-events: none;
animation: grid-move 20s linear infinite;
}
.faq-header {
text-align: center;
margin-bottom: 2rem;
position: relative;
}
.faq-title {
font-size: 2rem;
margin-bottom: 0.5rem;
color: #00ff41;
text-shadow:
0 0 5px #00ff41,
0 0 10px #00ff41,
0 0 20px #00ff41;
letter-spacing: 3px;
animation: text-flicker 3s infinite alternate;
}
.faq-subtitle {
color: #008f11;
font-size: 1rem;
text-shadow: 0 0 5px #008f11;
letter-spacing: 2px;
}
.faq-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.faq-item {
background: rgba(0, 20, 10, 0.3);
border: 1px solid #008f11;
padding: 1rem;
position: relative;
transition: all 0.3s ease;
overflow: hidden;
}
.faq-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, transparent, #00ff41, transparent);
animation: scan 3s linear infinite;
}
.faq-item:hover {
border-color: #00ff41;
box-shadow:
0 0 10px rgba(0, 255, 65, 0.5),
inset 0 0 10px rgba(0, 255, 65, 0.1);
transform: translateZ(0);
}
.faq-question {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
cursor: pointer;
background: rgba(0, 30, 15, 0.5);
border: 1px solid #008f11;
margin-bottom: 1rem;
position: relative;
transition: all 0.3s ease;
}
.faq-question:hover {
background: rgba(0, 50, 25, 0.7);
border-color: #00ff41;
box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}
.question-marker {
color: #ff00ff;
text-shadow: 0 0 5px #ff00ff;
font-weight: bold;
}
.question-text {
flex: 1;
margin: 0 1rem;
font-weight: bold;
letter-spacing: 1px;
text-shadow: 0 0 3px #00ff41;
}
.question-status {
color: #ffff00;
text-shadow: 0 0 5px #ffff00;
font-size: 0.8rem;
}
.faq-answer {
padding: 0 1rem;
max-height: 0;
overflow: hidden;
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
background: rgba(0, 15, 10, 0.5);
border: 1px dashed #008f11;
position: relative;
}
.faq-item.active .faq-answer {
padding: 1rem;
max-height: 300px;
}
.faq-answer p {
margin: 0.5rem 0;
color: #00cc44;
font-size: 0.9rem;
line-height: 1.6;
text-shadow: 0 0 2px #00cc44;
}
.faq-answer p:first-child::before {
content: '> ';
color: #ff00ff;
}
.scanline {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: rgba(0, 255, 65, 0.3);
animation: scanline 8s linear infinite;
pointer-events: none;
}
@keyframes scanline {
0% {
transform: translateY(0);
}
100% {
transform: translateY(100vh);
}
}
@keyframes scan {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
@keyframes grid-move {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(20px, 20px);
}
}
@keyframes text-flicker {
0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
text-shadow:
0 0 5px #00ff41,
0 0 10px #00ff41,
0 0 20px #00ff41;
opacity: 1;
}
20%, 24%, 55% {
text-shadow: none;
opacity: 0.8;
}
}
@media (max-width: 768px) {
.cyberpunk-faq-container {
padding: 1rem;
}
.faq-title {
font-size: 1.5rem;
}
.question-text {
font-size: 0.9rem;
}
}Funcionalidad JavaScript
document.addEventListener('DOMContentLoaded', function() {
const faqItems = document.querySelectorAll('.faq-item');
faqItems.forEach(item => {
const question = item.querySelector('.faq-question');
question.addEventListener('click', () => {
const isActive = item.classList.contains('active');
// Close all other items
faqItems.forEach(otherItem => {
if (otherItem !== item) {
otherItem.classList.remove('active');
}
});
// Toggle current item
if (isActive) {
item.classList.remove('active');
} else {
item.classList.add('active');
// Add glitch effect on open
item.style.animation = 'none';
setTimeout(() => {
item.style.animation = 'glitch 0.3s linear';
}, 10);
}
});
});
// Add glitch animation to CSS
const style = document.createElement('style');
style.textContent = `
@keyframes glitch {
0% {
transform: translate(0);
}
20% {
transform: translate(-2px, 2px);
}
40% {
transform: translate(-2px, -2px);
}
60% {
transform: translate(2px, 2px);
}
80% {
transform: translate(2px, -2px);
}
100% {
transform: translate(0);
}
}
`;
document.head.appendChild(style);
});Guía de Implementación
- Copia la estructura HTML en tu proyecto
- Agrega los estilos CSS a tu hoja de estilos
- Incluye el código JavaScript en tu archivo de script
- Personaliza los colores neón modificando los valores de color
- Agrega tus propias preguntas y respuestas del FAQ en estilo cyberpunk
La interfaz FAQ cyberpunk presenta un diseño futurista distópico con neones brillantes, líneas de escaneo y efectos glitch que crean una estética auténtica cyberpunk. El componente usa tipografía monoespaciada y formato estilo hacker para mejorar la experiencia digital.
HTML
58
líneas
CSS
219
líneas
JavaScript
57
líneas
<div class="cyberpunk-faq-container">
<div class="faq-header">
<h2 class="faq-title">/// SISTEMA FAQ ///</h2>
<p class="faq-subtitle">ACCEDIENDO BASE DE CONOCIMIENTO...</p>
</div>
<div class="faq-list">
<div class="faq-item">
<div class="faq-question">
<span class="question-marker">>></span>
<span class="question-text">¿QUÉ ES EL DISEÑO CYBERPUNK?</span>
<span class="question-status">[ABIERTO]</span>
</div>
<div class="faq-answer">
<p>> CYBERPUNK ES UN SUBGÉNERO DE CIENCIA FICCIÓN ambientado en futuros distópicos con tecnología avanzada y decadencia social.</p>
<p>> CARACTERIZADO POR LUCES DE NEÓN, DOMINIO CORPORATIVO Y CULTURA DE HACKERS.</p>
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<span class="question-marker">>></span>
<span class="question-text">¿CÓMO FUNCIONAN LOS EFECTOS NEÓN?</span>
<span class="question-status">[ABIERTO]</span>
</div>
<div class="faq-answer">
<p>> LOS EFECTOS NEÓN SE LOGRAN MEDIANTE BOX-SHADOWS, TEXT-SHADOWS Y ANIMACIONES CSS.</p>
<p>> MÚLTIPLES CAPAS DE BRILLO CREAN LA ILUSIÓN DE EMISIÓN DE LUZ.</p>
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<span class="question-marker">>></span>
<span class="question-text">¿SON REALES LOS EFECTOS GLITCH?</span>
<span class="question-status">[ABIERTO]</span>
</div>
<div class="faq-answer">
<p>> LOS EFECTOS GLITCH SE SIMULAN USANDO TRANSFORMACIONES CSS Y PROPIEDADES CLIP-PATH.</p>
<p>> JAVASCRIPT ALEATORIZA LOS EFECTOS PARA CREAR ARTIFACTOS VISUALES IMPREDECIBLES.</p>
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<span class="question-marker">>></span>
<span class="question-text">¿PUEDO PERSONALIZAR LOS COLORES?</span>
<span class="question-status">[ABIERTO]</span>
</div>
<div class="faq-answer">
<p>> SÍ, EL COMPONENTE USA PROPIEDADES CSS PERSONALIZADAS PARA FACILITAR EL TEMADO DE COLORES.</p>
<p>> MODIFICA LA VARIABLE --neon-color PARA CAMBIAR EL COLOR PRINCIPAL DEL BRILLO.</p>
</div>
</div>
</div>
<div class="scanline"></div>
</div>