Spaces:
Running

rubi / index.html
eliteware's picture
Add 3 files
a26c06a verified
Raw History Blame Contribute Delete
15.5 kB
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rubi - Tu Secretaria Virtual Cuántica</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
background-color: #0f0e17;
color: #fffffe;
overflow-x: hidden;
}
.quantum-text {
font-family: 'Orbitron', sans-serif;
text-shadow: 0 0 10px #00f7ff, 0 0 20px #0084ff;
}
.neon-border {
border: 2px solid #00f7ff;
box-shadow: 0 0 10px #00f7ff, inset 0 0 10px #00f7ff;
}
.particle-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.rubi-avatar {
background: linear-gradient(135deg, #3a0ca3 0%, #7209b7 50%, #f72585 100%);
box-shadow: 0 0 30px #f72585;
animation: pulse 4s infinite alternate;
}
@keyframes pulse {
0% { box-shadow: 0 0 30px #f72585; }
50% { box-shadow: 0 0 50px #00f7ff; }
100% { box-shadow: 0 0 30px #7209b7; }
}
.message-bubble {
max-width: 80%;
border-radius: 20px;
position: relative;
margin-bottom: 15px;
}
.user-message {
background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
margin-left: auto;
}
.rubi-message {
background: linear-gradient(135deg, #7209b7 0%, #3a0ca3 100%);
margin-right: auto;
}
.typing-indicator span {
display: inline-block;
width: 8px;
height: 8px;
background-color: #00f7ff;
border-radius: 50%;
margin: 0 2px;
animation: bounce 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) {
animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes bounce {
0%, 60%, 100% { transform: translateY(0); }
30% { transform: translateY(-10px); }
}
.quantum-btn {
background: linear-gradient(135deg, #3a0ca3 0%, #7209b7 50%, #f72585 100%);
transition: all 0.3s ease;
}
.quantum-btn:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(247, 37, 133, 0.4);
}
</style>
</head>
<body class="min-h-screen flex flex-col">
<!-- Fondo de partículas cuánticas -->
<div id="particles-js" class="particle-bg"></div>
<!-- Header cuántico -->
<header class="py-6 px-4 sm:px-8 text-center relative z-10">
<h1 class="text-3xl sm:text-5xl font-bold quantum-text mb-2">RUBI</h1>
<p class="text-sm sm:text-lg text-cyan-300">Tu Secretaria Virtual Cuántica</p>
<div class="absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-purple-600 via-cyan-400 to-pink-500 opacity-70"></div>
</header>
<!-- Contenedor principal -->
<main class="flex-1 container mx-auto px-4 sm:px-6 py-6 flex flex-col max-w-4xl relative z-10">
<!-- Avatar de Rubi -->
<div class="flex justify-center mb-6">
<div class="rubi-avatar w-24 h-24 sm:w-32 sm:h-32 rounded-full flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-16 w-16 sm:h-20 sm:w-20 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
</svg>
</div>
</div>
<!-- Chat container -->
<div class="flex-1 bg-gray-900 bg-opacity-70 rounded-xl p-4 sm:p-6 neon-border mb-6 overflow-y-auto max-h-96">
<div class="space-y-4" id="chat-messages">
<!-- Mensaje de bienvenida -->
<div class="message-bubble rubi-message p-4 text-white">
<p>¡Hola! Soy Rubi, tu asistente cuántica. ¿En qué puedo ayudarte hoy?</p>
<div class="absolute -bottom-2 left-4 w-4 h-4 transform rotate-45 bg-purple-800"></div>
</div>
<!-- Ejemplo de mensaje del usuario -->
<div class="message-bubble user-message p-4 text-white">
<p>¿Qué puedes hacer por mí?</p>
<div class="absolute -bottom-2 right-4 w-4 h-4 transform rotate-45 bg-blue-500"></div>
</div>
<!-- Ejemplo de respuesta de Rubi -->
<div class="message-bubble rubi-message p-4 text-white">
<p>Puedo organizar tu agenda, recordarte eventos importantes, buscar información en la web, hacer cálculos complejos e incluso predecir posibles futuros con mi procesador cuántico. ¡Solo dime qué necesitas!</p>
<div class="absolute -bottom-2 left-4 w-4 h-4 transform rotate-45 bg-purple-800"></div>
</div>
<!-- Indicador de que está escribiendo -->
<div class="typing-indicator flex items-center pl-4">
<span></span>
<span></span>
<span></span>
</div>
</div>
</div>
<!-- Input de mensaje -->
<div class="flex space-x-2">
<input type="text" placeholder="Escribe tu mensaje..."
class="flex-1 bg-gray-800 bg-opacity-70 border border-cyan-400 rounded-lg px-4 py-3 text-white focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-transparent">
<button class="quantum-btn text-white px-6 py-3 rounded-lg font-bold flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-1" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-8.707l-3-3a1 1 0 00-1.414 1.414L10.586 9H7a1 1 0 100 2h3.586l-1.293 1.293a1 1 0 101.414 1.414l3-3a1 1 0 000-1.414z" clip-rule="evenodd" />
</svg>
Enviar
</button>
</div>
<!-- Acciones rápidas -->
<div class="mt-6 grid grid-cols-2 sm:grid-cols-4 gap-3">
<button class="bg-purple-900 bg-opacity-50 text-cyan-200 py-2 px-3 rounded-lg text-sm sm:text-base hover:bg-opacity-70 transition">
Agenda
</button>
<button class="bg-blue-900 bg-opacity-50 text-cyan-200 py-2 px-3 rounded-lg text-sm sm:text-base hover:bg-opacity-70 transition">
Recordatorios
</button>
<button class="bg-pink-900 bg-opacity-50 text-cyan-200 py-2 px-3 rounded-lg text-sm sm:text-base hover:bg-opacity-70 transition">
Búsqueda
</button>
<button class="bg-cyan-900 bg-opacity-50 text-cyan-200 py-2 px-3 rounded-lg text-sm sm:text-base hover:bg-opacity-70 transition">
Cálculos
</button>
</div>
</main>
<!-- Footer -->
<footer class="py-4 text-center text-xs sm:text-sm text-gray-400 relative z-10">
<p>Sistema Cuántico v2.4.7 | © 2023 Rubi AI Technologies</p>
</footer>
<script>
// Inicializar partículas
document.addEventListener('DOMContentLoaded', function() {
particlesJS('particles-js', {
"particles": {
"number": {
"value": 80,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": ["#00f7ff", "#7209b7", "#f72585"]
},
"shape": {
"type": "circle",
"stroke": {
"width": 0,
"color": "#000000"
},
"polygon": {
"nb_sides": 5
}
},
"opacity": {
"value": 0.5,
"random": true,
"anim": {
"enable": true,
"speed": 1,
"opacity_min": 0.1,
"sync": false
}
},
"size": {
"value": 3,
"random": true,
"anim": {
"enable": true,
"speed": 2,
"size_min": 0.1,
"sync": false
}
},
"line_linked": {
"enable": true,
"distance": 150,
"color": "#00f7ff",
"opacity": 0.3,
"width": 1
},
"move": {
"enable": true,
"speed": 2,
"direction": "none",
"random": true,
"straight": false,
"out_mode": "out",
"bounce": false,
"attract": {
"enable": true,
"rotateX": 600,
"rotateY": 1200
}
}
},
"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": true,
"mode": "grab"
},
"onclick": {
"enable": true,
"mode": "push"
},
"resize": true
},
"modes": {
"grab": {
"distance": 140,
"line_linked": {
"opacity": 1
}
},
"bubble": {
"distance": 400,
"size": 40,
"duration": 2,
"opacity": 8,
"speed": 3
},
"repulse": {
"distance": 200,
"duration": 0.4
},
"push": {
"particles_nb": 4
},
"remove": {
"particles_nb": 2
}
}
},
"retina_detect": true
});
// Simular interacción de chat
const chatInput = document.querySelector('input');
const sendButton = document.querySelector('button.quantum-btn');
const chatMessages = document.getElementById('chat-messages');
const typingIndicator = document.querySelector('.typing-indicator');
typingIndicator.style.display = 'none';
function addMessage(text, isUser = false) {
const messageDiv = document.createElement('div');
messageDiv.className = `message-bubble ${isUser ? 'user-message' : 'rubi-message'} p-4 text-white`;
const messageContent = document.createElement('p');
messageContent.textContent = text;
messageDiv.appendChild(messageContent);
const tail = document.createElement('div');
tail.className = `absolute -bottom-2 ${isUser ? 'right-4 w-4 h-4 transform rotate-45 bg-blue-500' : 'left-4 w-4 h-4 transform rotate-45 bg-purple-800'}`;
messageDiv.appendChild(tail);
chatMessages.appendChild(messageDiv);
chatMessages.scrollTop = chatMessages.scrollHeight;
}
sendButton.addEventListener('click', function() {
const message = chatInput.value.trim();
if (message) {
addMessage(message, true);
chatInput.value = '';
// Mostrar indicador de que está escribiendo
typingIndicator.style.display = 'flex';
chatMessages.scrollTop = chatMessages.scrollHeight;
// Simular respuesta después de un retraso
setTimeout(function() {
typingIndicator.style.display = 'none';
const responses = [
"He procesado tu solicitud con mi núcleo cuántico. ¿Hay algo más en lo que pueda ayudarte?",
"Interesante pregunta. Según mis cálculos, la respuesta óptima es...",
"¡Operación completada! Mi procesador cuántico ha terminado la tarea.",
"He analizado múltiples futuros y esta es la mejor opción para ti.",
"La información que solicitaste está lista. ¿Necesitas algo más?"
];
const randomResponse = responses[Math.floor(Math.random() * responses.length)];
addMessage(randomResponse, false);
}, 2000);
}
});
// Permitir enviar con Enter
chatInput.addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
sendButton.click();
}
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=eliteware/rubi" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>