Spaces:
Running

milli / index.html
erickdiniz's picture
Add 3 files
d4c2cdf verified
Raw History Blame Contribute Delete
22.1 kB
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MILLI - Sua IA Pessoal</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.pulse-animation {
animation: pulse 2s infinite;
}
.gradient-bg {
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #93c5fd 100%);
}
.glass-effect {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.command-chip {
transition: all 0.3s ease;
}
.command-chip:hover {
transform: translateY(-3px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.voice-wave {
position: relative;
}
.voice-wave::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
animation: voiceWave 1.5s infinite;
z-index: -1;
}
@keyframes voiceWave {
0% { transform: scale(1); opacity: 1; }
100% { transform: scale(1.5); opacity: 0; }
}
</style>
</head>
<body class="min-h-screen gradient-bg text-white font-sans">
<div class="container mx-auto px-4 py-8">
<!-- Header -->
<header class="flex justify-between items-center mb-8 glass-effect p-4 rounded-xl">
<div class="flex items-center space-x-4">
<div class="voice-wave bg-blue-500 w-12 h-12 rounded-full flex items-center justify-center">
<i class="fas fa-microphone text-xl"></i>
</div>
<div>
<h1 class="text-2xl font-bold">MILLI</h1>
<p class="text-blue-200">Sua assistente pessoal inteligente</p>
</div>
</div>
<div class="flex space-x-4">
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg flex items-center">
<i class="fas fa-cog mr-2"></i> Configurações
</button>
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg flex items-center">
<i class="fas fa-user mr-2"></i> Perfil
</button>
</div>
</header>
<!-- Main Content -->
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
<!-- Left Sidebar -->
<div class="lg:col-span-1 space-y-6">
<!-- Quick Commands -->
<div class="glass-effect p-6 rounded-xl">
<h2 class="text-xl font-semibold mb-4 flex items-center">
<i class="fas fa-bolt mr-2 text-yellow-400"></i> Comandos Rápidos
</h2>
<div class="grid grid-cols-2 gap-3">
<button class="command-chip bg-blue-600 hover:bg-blue-700 p-3 rounded-lg flex flex-col items-center">
<i class="fas fa-lightbulb text-2xl mb-2"></i>
<span>Luzes</span>
</button>
<button class="command-chip bg-blue-600 hover:bg-blue-700 p-3 rounded-lg flex flex-col items-center">
<i class="fas fa-temperature-low text-2xl mb-2"></i>
<span>Temperatura</span>
</button>
<button class="command-chip bg-blue-600 hover:bg-blue-700 p-3 rounded-lg flex flex-col items-center">
<i class="fas fa-music text-2xl mb-2"></i>
<span>Música</span>
</button>
<button class="command-chip bg-blue-600 hover:bg-blue-700 p-3 rounded-lg flex flex-col items-center">
<i class="fas fa-lock text-2xl mb-2"></i>
<span>Segurança</span>
</button>
<button class="command-chip bg-blue-600 hover:bg-blue-700 p-3 rounded-lg flex flex-col items-center">
<i class="fas fa-calendar-alt text-2xl mb-2"></i>
<span>Agenda</span>
</button>
<button class="command-chip bg-blue-600 hover:bg-blue-700 p-3 rounded-lg flex flex-col items-center">
<i class="fas fa-car text-2xl mb-2"></i>
<span>Veículo</span>
</button>
</div>
</div>
<!-- Connected Devices -->
<div class="glass-effect p-6 rounded-xl">
<h2 class="text-xl font-semibold mb-4 flex items-center">
<i class="fas fa-plug mr-2 text-green-400"></i> Dispositivos Conectados
</h2>
<div class="space-y-3">
<div class="flex items-center justify-between bg-blue-600 bg-opacity-50 p-3 rounded-lg">
<div class="flex items-center">
<i class="fas fa-lightbulb text-yellow-400 mr-3"></i>
<span>Luz da Sala</span>
</div>
<div class="w-10 h-5 bg-blue-700 rounded-full flex items-center p-1 cursor-pointer">
<div class="bg-white w-3 h-3 rounded-full toggle-dot"></div>
</div>
</div>
<div class="flex items-center justify-between bg-blue-600 bg-opacity-50 p-3 rounded-lg">
<div class="flex items-center">
<i class="fas fa-thermometer-half text-red-400 mr-3"></i>
<span>Ar Condicionado</span>
</div>
<div class="w-10 h-5 bg-blue-700 rounded-full flex items-center p-1 cursor-pointer">
<div class="bg-white w-3 h-3 rounded-full toggle-dot ml-auto"></div>
</div>
</div>
<div class="flex items-center justify-between bg-blue-600 bg-opacity-50 p-3 rounded-lg">
<div class="flex items-center">
<i class="fas fa-lock text-blue-300 mr-3"></i>
<span>Porta da Frente</span>
</div>
<div class="w-10 h-5 bg-blue-700 rounded-full flex items-center p-1 cursor-pointer">
<div class="bg-white w-3 h-3 rounded-full toggle-dot"></div>
</div>
</div>
<div class="flex items-center justify-between bg-blue-600 bg-opacity-50 p-3 rounded-lg">
<div class="flex items-center">
<i class="fas fa-camera text-purple-300 mr-3"></i>
<span>Câmera Externa</span>
</div>
<div class="w-10 h-5 bg-blue-700 rounded-full flex items-center p-1 cursor-pointer">
<div class="bg-white w-3 h-3 rounded-full toggle-dot ml-auto"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Main Chat Area -->
<div class="lg:col-span-2">
<div class="glass-effect p-6 rounded-xl h-full flex flex-col">
<!-- Chat Messages -->
<div class="flex-1 overflow-y-auto mb-6 space-y-4" id="chat-messages">
<div class="flex justify-start">
<div class="bg-blue-600 rounded-2xl rounded-bl-none px-4 py-3 max-w-xs lg:max-w-md">
<p>Olá! Eu sou a MILLI, sua assistente pessoal inteligente. Como posso ajudar você hoje?</p>
</div>
</div>
<div class="flex justify-end">
<div class="bg-blue-800 rounded-2xl rounded-br-none px-4 py-3 max-w-xs lg:max-w-md">
<p>Ligue as luzes da sala</p>
</div>
</div>
<div class="flex justify-start">
<div class="bg-blue-600 rounded-2xl rounded-bl-none px-4 py-3 max-w-xs lg:max-w-md">
<p>Luzes da sala ligadas. A temperatura atual é de 23°C. Gostaria de ajustar?</p>
</div>
</div>
</div>
<!-- Voice Command Interface -->
<div class="glass-effect p-4 rounded-xl mb-4">
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="pulse-animation bg-blue-500 w-10 h-10 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-microphone"></i>
</div>
<div>
<p class="font-medium">Comando de voz ativo</p>
<p class="text-xs text-blue-200">Fale agora...</p>
</div>
</div>
<button class="bg-red-500 hover:bg-red-600 px-4 py-2 rounded-lg">
<i class="fas fa-stop mr-2"></i> Parar
</button>
</div>
</div>
<!-- Text Input -->
<div class="relative">
<input type="text" placeholder="Digite sua mensagem ou comando..."
class="w-full bg-blue-600 bg-opacity-50 border border-blue-400 rounded-full py-4 px-6 pr-16 focus:outline-none focus:ring-2 focus:ring-blue-400">
<button class="absolute right-3 top-1/2 transform -translate-y-1/2 bg-blue-500 hover:bg-blue-600 w-10 h-10 rounded-full flex items-center justify-center">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
<!-- Right Sidebar -->
<div class="lg:col-span-1 space-y-6">
<!-- Status Overview -->
<div class="glass-effect p-6 rounded-xl">
<h2 class="text-xl font-semibold mb-4 flex items-center">
<i class="fas fa-chart-line mr-2 text-purple-400"></i> Status Geral
</h2>
<div class="space-y-4">
<div class="flex items-center justify-between">
<span class="text-blue-200">Casa</span>
<span class="font-medium">Modo Conforto</span>
</div>
<div class="flex items-center justify-between">
<span class="text-blue-200">Temperatura</span>
<span class="font-medium">23°C</span>
</div>
<div class="flex items-center justify-between">
<span class="text-blue-200">Luzes</span>
<span class="font-medium">3/8 ligadas</span>
</div>
<div class="flex items-center justify-between">
<span class="text-blue-200">Segurança</span>
<span class="font-medium text-green-400">Ativa</span>
</div>
<div class="flex items-center justify-between">
<span class="text-blue-200">Energia</span>
<span class="font-medium">1.2kW/h</span>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="glass-effect p-6 rounded-xl">
<h2 class="text-xl font-semibold mb-4 flex items-center">
<i class="fas fa-rocket mr-2 text-red-400"></i> Ações Rápidas
</h2>
<div class="grid grid-cols-2 gap-3">
<button class="command-chip bg-blue-600 hover:bg-blue-700 p-3 rounded-lg flex flex-col items-center">
<i class="fas fa-home text-2xl mb-2"></i>
<span class="text-sm">Modo Casa</span>
</button>
<button class="command-chip bg-blue-600 hover:bg-blue-700 p-3 rounded-lg flex flex-col items-center">
<i class="fas fa-moon text-2xl mb-2"></i>
<span class="text-sm">Modo Noite</span>
</button>
<button class="command-chip bg-blue-600 hover:bg-blue-700 p-3 rounded-lg flex flex-col items-center">
<i class="fas fa-sun text-2xl mb-2"></i>
<span class="text-sm">Modo Dia</span>
</button>
<button class="command-chip bg-blue-600 hover:bg-blue-700 p-3 rounded-lg flex flex-col items-center">
<i class="fas fa-door-open text-2xl mb-2"></i>
<span class="text-sm">Sair</span>
</button>
</div>
</div>
<!-- Calendar -->
<div class="glass-effect p-6 rounded-xl">
<h2 class="text-xl font-semibold mb-4 flex items-center">
<i class="fas fa-calendar-day mr-2 text-green-400"></i> Agenda Hoje
</h2>
<div class="space-y-3">
<div class="bg-blue-600 bg-opacity-50 p-3 rounded-lg">
<div class="flex items-start">
<div class="bg-blue-400 w-2 h-full rounded mr-3"></div>
<div>
<p class="font-medium">Reunião com equipe</p>
<p class="text-xs text-blue-200">10:00 - 11:30</p>
</div>
</div>
</div>
<div class="bg-blue-600 bg-opacity-50 p-3 rounded-lg">
<div class="flex items-start">
<div class="bg-green-400 w-2 h-full rounded mr-3"></div>
<div>
<p class="font-medium">Almoço com cliente</p>
<p class="text-xs text-blue-200">12:30 - 14:00</p>
</div>
</div>
</div>
<div class="bg-blue-600 bg-opacity-50 p-3 rounded-lg">
<div class="flex items-start">
<div class="bg-purple-400 w-2 h-full rounded mr-3"></div>
<div>
<p class="font-medium">Consulta médica</p>
<p class="text-xs text-blue-200">16:00 - 16:30</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Bottom Navigation (Mobile) -->
<div class="lg:hidden fixed bottom-0 left-0 right-0 bg-blue-900 bg-opacity-90 p-3 flex justify-around items-center">
<button class="flex flex-col items-center text-blue-200">
<i class="fas fa-home text-xl mb-1"></i>
<span class="text-xs">Início</span>
</button>
<button class="flex flex-col items-center text-blue-200">
<i class="fas fa-comment-alt text-xl mb-1"></i>
<span class="text-xs">Chat</span>
</button>
<button class="flex flex-col items-center text-white bg-blue-600 p-3 rounded-full -mt-8">
<i class="fas fa-microphone text-xl"></i>
</button>
<button class="flex flex-col items-center text-blue-200">
<i class="fas fa-cog text-xl mb-1"></i>
<span class="text-xs">Config</span>
</button>
<button class="flex flex-col items-center text-blue-200">
<i class="fas fa-user text-xl mb-1"></i>
<span class="text-xs">Perfil</span>
</button>
</div>
</div>
<script>
// Toggle functionality for device switches
document.querySelectorAll('.toggle-dot').forEach(toggle => {
toggle.addEventListener('click', function() {
const parent = this.parentElement;
if (this.classList.contains('ml-auto')) {
this.classList.remove('ml-auto');
parent.classList.remove('bg-green-500');
parent.classList.add('bg-blue-700');
} else {
this.classList.add('ml-auto');
parent.classList.remove('bg-blue-700');
parent.classList.add('bg-green-500');
}
});
});
// Simulate chat interaction
const chatInput = document.querySelector('input[type="text"]');
const chatMessages = document.getElementById('chat-messages');
const sendButton = document.querySelector('.fa-paper-plane').parentElement;
function addMessage(text, isUser = false) {
const messageDiv = document.createElement('div');
messageDiv.className = `flex ${isUser ? 'justify-end' : 'justify-start'}`;
const messageContent = document.createElement('div');
messageContent.className = isUser
? 'bg-blue-800 rounded-2xl rounded-br-none px-4 py-3 max-w-xs lg:max-w-md'
: 'bg-blue-600 rounded-2xl rounded-bl-none px-4 py-3 max-w-xs lg:max-w-md';
messageContent.textContent = text;
messageDiv.appendChild(messageContent);
chatMessages.appendChild(messageDiv);
chatMessages.scrollTop = chatMessages.scrollHeight;
}
sendButton.addEventListener('click', function() {
if (chatInput.value.trim() !== '') {
addMessage(chatInput.value, true);
// Simulate MILLI response
setTimeout(() => {
const responses = [
"Comando executado com sucesso.",
"O que mais posso fazer por você?",
"Tarefa concluída. Alguma outra solicitação?",
"Feito! Precisa de algo mais?",
"Operação realizada. Como posso continuar ajudando?"
];
addMessage(responses[Math.floor(Math.random() * responses.length)]);
}, 1000);
chatInput.value = '';
}
});
chatInput.addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
sendButton.click();
}
});
// Voice command simulation
const voiceButton = document.querySelector('.fa-microphone').parentElement.parentElement;
const voiceStopButton = document.querySelector('.fa-stop').parentElement;
const voiceWave = document.querySelector('.voice-wave');
const pulseAnimation = document.querySelector('.pulse-animation');
voiceButton.addEventListener('click', function() {
voiceWave.classList.add('voice-wave-active');
pulseAnimation.style.display = 'flex';
document.querySelector('.glass-effect.p-4.rounded-xl.mb-4').style.display = 'block';
});
voiceStopButton.addEventListener('click', function() {
voiceWave.classList.remove('voice-wave-active');
pulseAnimation.style.display = 'none';
document.querySelector('.glass-effect.p-4.rounded-xl.mb-4').style.display = 'none';
// Simulate voice command result
setTimeout(() => {
addMessage("Luzes da cozinha desligadas.", false);
}, 500);
});
</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=erickdiniz/milli" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>