MarcRyan's picture
Add 2 files
cfaac8e verified
Raw History Blame Contribute Delete
64.2 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Haven - AI Home Management System</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> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); :root { --primary: #5E35B1; --secondary: #3949AB; --accent: #7C4DFF; --light: #EDE7F6; --dark: #311B92; } body { font-family: 'Poppins', sans-serif; background-color: #f9fafb; } .gradient-bg { background: linear-gradient(135deg, var(--primary), var(--secondary)); } .nav-item { position: relative; transition: all 0.3s ease; } .nav-item.active::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 100%; height: 3px; background-color: var(--accent); border-radius: 3px; } .ai-message { border-radius: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; } .user-message { background: var(--primary); color: white; border-radius: 18px 18px 4px 18px; } .ai-response { background: white; border-radius: 18px 18px 18px 4px; border: 1px solid #e5e7eb; } .task-card { transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } .task-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); } .progress-ring { transition: stroke-dashoffset 0.5s ease; transform: rotate(-90deg); transform-origin: 50% 50%; } .fade-in { animation: fadeIn 0.4s ease-out forwards; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .slide-up { animation: slideUp 0.4s ease-out forwards; } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .custom-scroll { scrollbar-width: thin; scrollbar-color: var(--primary) #e5e7eb; } .custom-scroll::-webkit-scrollbar { width: 6px; } .custom-scroll::-webkit-scrollbar-track { background: #e5e7eb; border-radius: 10px; } .custom-scroll::-webkit-scrollbar-thumb { background-color: var(--primary); border-radius: 10px; } .room-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: white; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); } /* AI Strategy Mode Styles */ .ai-strategy-viewport { position: fixed; top: 0; left: 0; right: 0; height: 300px; background: #111; z-index: 1000; color: white; transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); box-shadow: 0 10px 25px rgba(0,0,0,0.5); border-bottom: 3px solid var(--accent); } .ai-strategy-viewport.active { transform: translateY(0); } .viewport-header { background: rgba(0,0,0,0.7); padding: 8px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; } .viewport-content { display: flex; height: calc(100% - 45px); } .ai-agent-view { flex: 1; position: relative; overflow: hidden; background: linear-gradient(135deg, #1a1a2e, #16213e); } .ai-agent-scene { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; transition: all 1s ease; } .ai-agent { position: absolute; width: 80px; height: 80px; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%237C4DFF"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5-9h10v2H7z"/></svg>') no-repeat center; background-size: 40px; background-color: rgba(255,255,255,0.9); border-radius: 50%; box-shadow: 0 0 0 3px var(--accent), 0 0 15px rgba(124, 77, 255, 0.5); transition: all 1s ease; display: flex; align-items: center; justify-content: center; } .ai-speech { position: absolute; background: white; color: #333; padding: 8px 12px; border-radius: 18px; font-size: 12px; max-width: 200px; opacity: 0; transition: opacity 0.3s ease; box-shadow: 0 3px 10px rgba(0,0,0,0.2); } .ai-speech.active { opacity: 1; } .task-log { width: 300px; background: rgba(0,0,0,0.8); padding: 10px; overflow-y: auto; border-left: 1px solid #333; } .log-entry { font-size: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #333; color: #ddd; } .log-time { color: var(--accent); font-weight: bold; margin-right: 5px; } .log-message { color: #fff; } .scene-controls { position: absolute; bottom: 10px; left: 10px; display: flex; gap: 8px; z-index: 10; } .scene-btn { background: rgba(0,0,0,0.7); border: 1px solid #444; color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; } .scene-btn:hover { background: var(--accent); transform: scale(1.1); } .scene-indicator { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.7); color: white; padding: 5px 10px; border-radius: 20px; font-size: 12px; } .viewport-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; } .viewport-overlay.active { opacity: 1; } .ai-status { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); padding: 5px 10px; border-radius: 20px; font-size: 12px; color: white; display: flex; align-items: center; } .status-light { width: 10px; height: 10px; border-radius: 50%; background: #4CAF50; margin-right: 5px; animation: pulse 2s infinite; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } .ai-energy { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7); padding: 5px 10px; border-radius: 20px; font-size: 12px; color: white; display: flex; align-items: center; } .energy-bar { width: 60px; height: 6px; background: #333; border-radius: 3px; margin-left: 5px; overflow: hidden; } .energy-fill { height: 100%; width: 80%; background: linear-gradient(90deg, #FFC107, #FF9800); border-radius: 3px; transition: width 0.5s ease; } /* AI Agent Presence Indicator */ .ai-presence { position: fixed; bottom: 20px; right: 20px; z-index: 999; } .ai-presence-btn { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); cursor: pointer; transition: all 0.3s ease; position: relative; } .ai-presence-btn:hover { transform: scale(1.1); } .ai-presence-btn.active { box-shadow: 0 0 0 3px white, 0 0 0 6px var(--accent); } .ai-presence-pulse { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: rgba(124, 77, 255, 0.4); animation: pulse 2s infinite; } /* AI Context Menu */ .ai-context-menu { position: absolute; bottom: 80px; right: 0; width: 250px; background: white; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); padding: 10px 0; opacity: 0; transform: translateY(20px); transition: all 0.3s ease; pointer-events: none; } .ai-context-menu.active { opacity: 1; transform: translateY(0); pointer-events: all; } .ai-context-item { padding: 12px 20px; display: flex; align-items: center; cursor: pointer; transition: all 0.2s ease; } .ai-context-item:hover { background: #f5f5f5; } .ai-context-item i { margin-right: 12px; color: var(--primary); width: 20px; text-align: center; } .ai-context-divider { height: 1px; background: #eee; margin: 5px 0; } /* AI Notification */ .ai-notification { position: fixed; bottom: 20px; left: 20px; background: white; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); padding: 15px; max-width: 300px; display: flex; align-items: flex-start; transform: translateX(-120%); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); z-index: 1001; } .ai-notification.active { transform: translateX(0); } .ai-notification-icon { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; } .ai-notification-content { flex: 1; } .ai-notification-title { font-weight: 600; margin-bottom: 5px; color: #333; } .ai-notification-message { font-size: 14px; color: #666; margin-bottom: 8px; } .ai-notification-actions { display: flex; justify-content: flex-end; gap: 8px; } .ai-notification-btn { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; } .ai-notification-btn.primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; } .ai-notification-btn.secondary { background: #f5f5f5; color: #666; } </style> </head> <body class="min-h-screen"> <!-- AI Strategy Viewport --> <div id="ai-strategy-viewport" class="ai-strategy-viewport active"> <div class="viewport-header"> <div class="flex items-center"> <div class="w-6 h-6 rounded-full bg-purple-500 mr-2 flex items-center justify-center"> <i class="fas fa-robot text-white text-xs"></i> </div> <span class="font-medium">GEMMA3 AI AGENT - LIVE OPERATIONS VIEW</span> </div> <div class="flex items-center space-x-3"> <span class="text-xs text-gray-300">STRATEGY MODE: ACTIVE</span> <button id="close-viewport" class="text-gray-300 hover:text-white"> <i class="fas fa-times"></i> </button> </div> </div> <div class="viewport-content"> <div class="ai-agent-view"> <div id="ai-agent-scene" class="ai-agent-scene"></div> <div id="ai-agent" class="ai-agent"></div> <div id="ai-speech" class="ai-speech"></div> <div class="ai-status"> <div class="status-light"></div> <span>OPERATIONAL</span> </div> <div class="ai-energy"> <span>ENERGY</span> <div class="energy-bar"> <div class="energy-fill"></div> </div> </div> <div class="scene-controls"> <div class="scene-btn" data-scene="kitchen"> <i class="fas fa-utensils text-xs"></i> </div> <div class="scene-btn" data-scene="livingroom"> <i class="fas fa-couch text-xs"></i> </div> <div class="scene-btn" data-scene="bedroom"> <i class="fas fa-bed text-xs"></i> </div> <div class="scene-btn" data-scene="bathroom"> <i class="fas fa-bath text-xs"></i> </div> <div class="scene-btn" data-scene="garage"> <i class="fas fa-tools text-xs"></i> </div> </div> <div class="scene-indicator"> <span id="current-scene">KITCHEN</span> </div> <div id="viewport-overlay" class="viewport-overlay"> <div class="text-center"> <div class="text-4xl mb-2"><i class="fas fa-robot"></i></div> <div>GEMMA3 AGENT PERFORMING TASK...</div> </div> </div> </div> <div class="task-log" id="task-log"> <div class="log-entry"> <span class="log-time">09:00:00</span> <span class="log-message">GEMMA3 system initialized. Beginning daily home maintenance routine.</span> </div> <div class="log-entry"> <span class="log-time">09:02:15</span> <span class="log-message">Scanning kitchen for organization opportunities.</span> </div> <div class="log-entry"> <span class="log-time">09:05:30</span> <span class="log-message">Detected expired items in refrigerator. Added to grocery list.</span> </div> <div class="log-entry"> <span class="log-time">09:08:45</span> <span class="log-message">Optimizing pantry storage layout for efficiency.</span> </div> <div class="log-entry"> <span class="log-time">09:12:20</span> <span class="log-message">Scheduled deep clean for oven based on usage patterns.</span> </div> </div> </div> </div> <!-- AI Presence Button --> <div class="ai-presence"> <div class="ai-presence-btn" id="ai-presence-btn"> <div class="ai-presence-pulse"></div> <i class="fas fa-robot text-xl"></i> </div> <div class="ai-context-menu" id="ai-context-menu"> <div class="ai-context-item"> <i class="fas fa-home"></i> <span>Home Overview</span> </div> <div class="ai-context-item"> <i class="fas fa-tasks"></i> <span>Current Tasks</span> </div> <div class="ai-context-item"> <i class="fas fa-chart-line"></i> <span>Performance Stats</span> </div> <div class="ai-context-divider"></div> <div class="ai-context-item"> <i class="fas fa-cog"></i> <span>Agent Settings</span> </div> </div> </div> <!-- AI Notification --> <div class="ai-notification" id="ai-notification"> <div class="ai-notification-icon"> <i class="fas fa-robot"></i> </div> <div class="ai-notification-content"> <div class="ai-notification-title">GEMMA3 Agent Active</div> <div class="ai-notification-message">I'm currently optimizing your home systems. Would you like to see what I'm working on?</div> <div class="ai-notification-actions"> <div class="ai-notification-btn secondary" id="notification-dismiss">Dismiss</div> <div class="ai-notification-btn primary" id="notification-view">View</div> </div> </div> </div> <div class="flex h-screen overflow-hidden"> <!-- Premium Sidebar --> <div class="w-20 gradient-bg flex flex-col items-center py-8"> <div class="mb-12"> <div class="w-12 h-12 rounded-xl bg-white flex items-center justify-center"> <i class="fas fa-home text-xl" style="color: var(--primary);"></i> </div> </div> <div class="flex flex-col items-center space-y-10"> <div class="nav-item active" title="Dashboard"> <i class="fas fa-th-large text-white text-xl"></i> </div> <div class="nav-item" title="Rooms"> <i class="fas fa-door-open text-white text-xl opacity-70"></i> </div> <div class="nav-item" title="Tasks"> <i class="fas fa-tasks text-white text-xl opacity-70"></i> </div> <div class="nav-item" title="Inventory"> <i class="fas fa-boxes text-white text-xl opacity-70"></i> </div> <div class="nav-item" title="AI Assistant"> <i class="fas fa-robot text-white text-xl opacity-70"></i> </div> </div> <div class="mt-auto"> <div class="w-10 h-10 rounded-full bg-white bg-opacity-20 flex items-center justify-center"> <i class="fas fa-cog text-white text-sm"></i> </div> </div> </div> <!-- Main Content --> <div class="flex-1 flex flex-col overflow-hidden"> <!-- Premium Header --> <div class="bg-white border-b border-gray-100 p-5 flex items-center justify-between"> <div class="flex items-center space-x-4"> <h1 class="text-2xl font-bold text-gray-800"> <span style="color: var(--primary);">Haven</span> Home Organization </h1> <div class="relative"> <i class="fas fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i> <input type="text" placeholder="Search your home..." class="pl-10 pr-4 py-2 border border-gray-200 rounded-xl focus:ring-2 focus:ring-purple-500 focus:border-purple-500 w-64"> </div> </div> <div class="flex items-center space-x-4"> <button id="activate-strategy-mode" class="px-4 py-2 gradient-bg text-white rounded-xl flex items-center space-x-2 hover:opacity-90 transition-all"> <i class="fas fa-tv"></i> <span>Exit Strategy Mode</span> </button> <div class="relative"> <i class="fas fa-bell text-gray-500 text-xl"></i> <span class="absolute -top-1 -right-1 w-4 h-4 bg-red-500 rounded-full text-white text-xs flex items-center justify-center">3</span> </div> <div class="flex items-center space-x-3"> <div class="w-10 h-10 rounded-full bg-gradient-to-r from-purple-500 to-indigo-600 flex items-center justify-center"> <span class="text-white font-medium">JS</span> </div> <span class="font-medium text-gray-700">Jessica S.</span> <i class="fas fa-chevron-down text-gray-400 text-sm"></i> </div> </div> </div> <!-- Premium Content --> <div class="flex-1 overflow-y-auto custom-scroll p-6"> <!-- Welcome Section --> <div class="bg-gradient-to-r from-purple-50 to-indigo-50 rounded-2xl p-6 mb-8 slide-up"> <div class="flex items-center justify-between"> <div> <h2 class="text-2xl font-bold text-gray-800 mb-2">Welcome back, Jessica!</h2> <p class="text-gray-600 max-w-2xl">Your home is 72% organized. GEMMA3 is currently optimizing your systems.</p> </div> <div class="relative w-20 h-20"> <svg class="w-full h-full" viewBox="0 0 36 36"> <circle cx="18" cy="18" r="16" fill="none" stroke="#e5e7eb" stroke-width="3"></circle> <circle cx="18" cy="18" r="16" fill="none" stroke="var(--primary)" stroke-width="3" stroke-dasharray="100 100" stroke-dashoffset="28" class="progress-ring"></circle> <text x="18" y="20.5" text-anchor="middle" font-size="10" fill="var(--primary)" font-weight="bold">72%</text> </svg> </div> </div> </div> <!-- Quick Access Rooms --> <div class="mb-8"> <div class="flex items-center justify-between mb-6"> <h3 class="text-lg font-semibold text-gray-800">GEMMA3 Monitored Rooms</h3> <button class="text-sm font-medium flex items-center" style="color: var(--primary);"> <i class="fas fa-plus mr-2"></i> Add Room </button> </div> <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 lg:grid-cols-7 gap-4"> <div class="flex flex-col items-center"> <div class="room-icon mb-2" style="background: var(--light);"> <i class="fas fa-kitchen-set" style="color: var(--primary);"></i> </div> <span class="text-sm font-medium text-gray-700">Kitchen</span> </div> <div class="flex flex-col items-center"> <div class="room-icon mb-2" style="background: var(--light);"> <i class="fas fa-bed" style="color: var(--primary);"></i> </div> <span class="text-sm font-medium text-gray-700">Bedroom</span> </div> <div class="flex flex-col items-center"> <div class="room-icon mb-2" style="background: var(--light);"> <i class="fas fa-bath" style="color: var(--primary);"></i> </div> <span class="text-sm font-medium text-gray-700">Bathroom</span> </div> <div class="flex flex-col items-center"> <div class="room-icon mb-2" style="background: var(--light);"> <i class="fas fa-couch" style="color: var(--primary);"></i> </div> <span class="text-sm font-medium text-gray-700">Living Room</span> </div> <div class="flex flex-col items-center"> <div class="room-icon mb-2" style="background: var(--light);"> <i class="fas fa-utensils" style="color: var(--primary);"></i> </div> <span class="text-sm font-medium text-gray-700">Dining</span> </div> <div class="flex flex-col items-center"> <div class="room-icon mb-2" style="background: var(--light);"> <i class="fas fa-tshirt" style="color: var(--primary);"></i> </div> <span class="text-sm font-medium text-gray-700">Closet</span> </div> <div class="flex flex-col items-center"> <div class="room-icon mb-2" style="background: var(--light);"> <i class="fas fa-plus" style="color: var(--primary);"></i> </div> <span class="text-sm font-medium text-gray-700">Add New</span> </div> </div> </div> <!-- AI Assistant Section --> <div class="bg-white rounded-2xl shadow-sm p-6 mb-8"> <div class="flex items-center justify-between mb-6"> <div class="flex items-center"> <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3"> <i class="fas fa-robot text-purple-600"></i> </div> <h3 class="text-lg font-semibold text-gray-800">GEMMA3 AI Assistant</h3> </div> <div class="flex space-x-2"> <button class="px-3 py-1 bg-purple-50 text-purple-600 rounded-lg text-sm font-medium"> <i class="fas fa-lightbulb mr-1"></i> Suggestions </button> <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg text-sm font-medium"> <i class="fas fa-history mr-1"></i> History </button> </div> </div> <!-- AI Chat Interface --> <div id="ai-chat" class="space-y-4 mb-6 max-h-96 overflow-y-auto custom-scroll p-2"> <!-- Example conversation --> <div class="flex justify-end fade-in"> <div class="user-message px-4 py-3 max-w-xs"> <p>Help me organize my kitchen pantry</p> </div> </div> <div class="flex justify-start fade-in"> <div class="ai-response px-4 py-3 max-w-2xl"> <div class="flex items-center mb-2"> <div class="w-6 h-6 rounded-full bg-purple-100 flex items-center justify-center mr-2"> <i class="fas fa-robot text-purple-600 text-xs"></i> </div> <span class="text-sm font-medium">GEMMA3 AI</span> </div> <p class="mb-3">Here's a step-by-step plan to organize your kitchen pantry:</p> <ol class="list-decimal list-inside space-y-2 text-sm"> <li>Remove all items and categorize them</li> <li>Wipe down shelves and consider shelf liners</li> <li>Use clear containers for dry goods</li> <li>Implement a FIFO (first in, first out) system</li> <li>Label everything for easy identification</li> </ol> <div class="mt-3 pt-3 border-t border-gray-100 flex justify-between"> <button class="text-purple-600 text-sm font-medium flex items-center"> <i class="fas fa-save mr-2"></i> Save Plan </button> <button class="text-purple-600 text-sm font-medium flex items-center"> <i class="fas fa-calendar-plus mr-2"></i> Schedule </button> <button class="text-purple-600 text-sm font-medium flex items-center"> <i class="fas fa-shopping-cart mr-2"></i> Shop Supplies </button> </div> </div> </div> </div> <!-- AI Input --> <div class="flex items-center space-x-3"> <div class="flex-1 relative"> <textarea id="ai-prompt" rows="2" placeholder="Ask GEMMA3 AI for home organization advice..." class="w-full px-4 py-3 border border-gray-200 rounded-xl focus:ring-2 focus:ring-purple-500 focus:border-purple-500 resize-none"></textarea> <div class="absolute right-3 bottom-3 flex space-x-2"> <button class="text-gray-400 hover:text-purple-500"> <i class="fas fa-paperclip"></i> </button> <button class="text-gray-400 hover:text-purple-500"> <i class="fas fa-microphone"></i> </button> </div> </div> <button id="submit-prompt" class="gradient-bg hover:opacity-90 text-white w-12 h-12 rounded-xl flex items-center justify-center shadow-md"> <i class="fas fa-paper-plane text-xl"></i> </button> </div> </div> <!-- Priority Tasks --> <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> <div class="bg-white rounded-2xl shadow-sm p-6"> <div class="flex items-center justify-between mb-6"> <h3 class="text-lg font-semibold text-gray-800 flex items-center"> <i class="fas fa-exclamation-circle text-red-500 mr-3"></i> <span>GEMMA3 Detected Issues</span> </h3> <button class="text-sm font-medium" style="color: var(--primary);"> View All </button> </div> <div class="space-y-4"> <div class="task-card bg-white border border-gray-100 rounded-xl p-5"> <div class="flex items-start justify-between mb-3"> <div class="flex items-center"> <div class="w-10 h-10 rounded-lg bg-red-100 flex items-center justify-center mr-4"> <i class="fas fa-bolt text-red-500"></i> </div> <div> <h3 class="font-semibold">Replace smoke detector batteries</h3> <p class="text-sm text-gray-500">Safety check - all floors</p> </div> </div> <div class="flex space-x-2"> <button class="text-gray-400 hover:text-purple-500"> <i class="fas fa-edit"></i> </button> </div> </div> <div class="mt-4 pt-3 border-t border-gray-100 flex justify-between items-center"> <div class="flex items-center text-sm text-gray-500"> <i class="fas fa-clock text-red-500 mr-2"></i> <span>Due today</span> </div> <button class="text-sm font-medium px-3 py-1 bg-red-50 text-red-600 rounded-lg"> Complete Task </button> </div> </div> <div class="task-card bg-white border border-gray-100 rounded-xl p-5"> <div class="flex items-start justify-between mb-3"> <div class="flex items-center"> <div class="w-10 h-10 rounded-lg bg-orange-100 flex items-center justify-center mr-4"> <i class="fas fa-prescription-bottle-alt text-orange-500"></i> </div> <div> <h3 class="font-semibold">Organize medicine cabinet</h3> <p class="text-sm text-gray-500">Expired medications need disposal</p> </div> </div> <div class="flex space-x-2"> <button class="text-gray-400 hover:text-purple-500"> <i class="fas fa-edit"></i> </button> </div> </div> <div class="mt-4 pt-3 border-t border-gray-100 flex justify-between items-center"> <div class="flex items-center text-sm text-gray-500"> <i class="fas fa-clock text-orange-500 mr-2"></i> <span>Due tomorrow</span> </div> <button class="text-sm font-medium px-3 py-1 bg-orange-50 text-orange-600 rounded-lg"> Start Task </button> </div> </div> </div> </div> <div class="bg-white rounded-2xl shadow-sm p-6"> <div class="flex items-center justify-between mb-6"> <h3 class="text-lg font-semibold text-gray-800 flex items-center"> <i class="fas fa-star text-yellow-500 mr-3"></i> <span>GEMMA3 Recommendations</span> </h3> <button class="text-sm font-medium" style="color: var(--primary);"> View All </button> </div> <div class="space-y-4"> <div class="task-card bg-white border border-gray-100 rounded-xl p-5"> <div class="flex items-start justify-between mb-3"> <div class="flex items-center"> <div class="w-10 h-10 rounded-lg bg-blue-100 flex items-center justify-center mr-4"> <i class="fas fa-tshirt text-blue-500"></i> </div> <div> <h3 class="font-semibold">Seasonal closet rotation</h3> <p class="text-sm text-gray-500">Store winter clothes, bring out summer</p> </div> </div> <div class="flex space-x-2"> <button class="text-gray-400 hover:text-purple-500"> <i class="fas fa-edit"></i> </button> </div> </div> <div class="mt-4 pt-3 border-t border-gray-100 flex justify-between items-center"> <div class="flex items-center text-sm text-gray-500"> <i class="fas fa-calendar-alt text-blue-500 mr-2"></i> <span>Recommended this week</span> </div> <button class="text-sm font-medium px-3 py-1 bg-blue-50 text-blue-600 rounded-lg"> Plan Project </button> </div> </div> <div class="task-card bg-white border border-gray-100 rounded-xl p-5"> <div class="flex items-start justify-between mb-3"> <div class="flex items-center"> <div class="w-10 h-10 rounded-lg bg-green-100 flex items-center justify-center mr-4"> <i class="fas fa-seedling text-green-500"></i> </div> <div> <h3 class="font-semibold">Start herb garden</h3> <p class="text-sm text-gray-500">Kitchen window setup</p> </div> </div> <div class="flex space-x-2"> <button class="text-gray-400 hover:text-purple-500"> <i class="fas fa-edit"></i> </button> </div> </div> <div class="mt-4 pt-3 border-t border-gray-100 flex justify-between items-center"> <div class="flex items-center text-sm text-gray-500"> <i class="fas fa-calendar-alt text-green-500 mr-2"></i> <span>Perfect time to start</span> </div> <button class="text-sm font-medium px-3 py-1 bg-green-50 text-green-600 rounded-lg"> Get Started </button> </div> </div> </div> </div> </div> <!-- Home Inventory --> <div class="bg-white rounded-2xl shadow-sm p-6"> <div class="flex items-center justify-between mb-6"> <h3 class="text-lg font-semibold text-gray-800 flex items-center"> <i class="fas fa-box-open text-purple-500 mr-3"></i> <span>GEMMA3 Managed Inventory</span> </h3> <div class="flex space-x-3"> <button class="px-3 py-1 bg-purple-50 text-purple-600 rounded-lg text-sm font-medium"> <i class="fas fa-plus mr-1"></i> Add Item </button> <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg text-sm font-medium"> <i class="fas fa-filter mr-1"></i> Filter </button> </div> </div> <div class="overflow-x-auto"> <table class="w-full"> <thead> <tr class="text-left text-sm text-gray-500 border-b border-gray-100"> <th class="pb-3 font-medium">Item</th> <th class="pb-3 font-medium">Location</th> <th class="pb-3 font-medium">Category</th> <th class="pb-3 font-medium">Quantity</th> <th class="pb-3 font-medium">Status</th> <th class="pb-3 font-medium"></th> </tr> </thead> <tbody class="divide-y divide-gray-100"> <tr class="hover:bg-gray-50"> <td class="py-4"> <div class="flex items-center"> <div class="w-10 h-10 rounded-md bg-purple-100 flex items-center justify-center mr-3"> <i class="fas fa-blender text-purple-500"></i> </div> <span class="font-medium">Stand Mixer</span> </div> </td> <td class="py-4 text-sm text-gray-600">Kitchen</td> <td class="py-4 text-sm text-gray-600">Appliances</td> <td class="py-4 text-sm text-gray-600">1</td> <td class="py-4"> <span class="px-2 py-1 text-xs font-medium rounded-full bg-green-100 text-green-800">In Use</span> </td> <td class="py-4 text-right"> <button class="text-gray-400 hover:text-purple-500"> <i class="fas fa-ellipsis-v"></i> </button> </td> </tr> <tr class="hover:bg-gray-50"> <td class="py-4"> <div class="flex items-center"> <div class="w-10 h-10 rounded-md bg-blue-100 flex items-center justify-center mr-3"> <i class="fas fa-umbrella-beach text-blue-500"></i> </div> <span class="font-medium">Beach Chairs</span> </div> </td> <td class="py-4 text-sm text-gray-600">Garage</td> <td class="py-4 text-sm text-gray-600">Outdoor</td> <td class="py-4 text-sm text-gray-600">4</td> <td class="py-4"> <span class="px-2 py-1 text-xs font-medium rounded-full bg-yellow-100 text-yellow-800">Storage</span> </td> <td class="py-4 text-right"> <button class="text-gray-400 hover:text-purple-500"> <i class="fas fa-ellipsis-v"></i> </button> </td> </tr> <tr class="hover:bg-gray-50"> <td class="py-4"> <div class="flex items-center"> <div class="w-10 h-10 rounded-md bg-red-100 flex items-center justify-center mr-3"> <i class="fas fa-toolbox text-red-500"></i> </div> <span class="font-medium">Tool Set</span> </div> </td> <td class="py-4 text-sm text-gray-600">Basement</td> <td class="py-4 text-sm text-gray-600">Tools</td> <td class="py-4 text-sm text-gray-600">1</td> <td class="py-4"> <span class="px-2 py-1 text-xs font-medium rounded-full bg-red-100 text-red-800">Needs Repair</span> </td> <td class="py-4 text-right"> <button class="text-gray-400 hover:text-purple-500"> <i class="fas fa-ellipsis-v"></i> </button> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <script> // Initialize GEMMA3 AI Agent on page load document.addEventListener('DOMContentLoaded', function() { // Start AI Strategy Mode automatically startAISimulation(); // Show notification after 3 seconds setTimeout(() => { document.getElementById('ai-notification').classList.add('active'); }, 3000); }); // GEMMA3 AI Assistant Functionality const gemmaAI = { responses: [ { trigger: ["organize", "pantry", "kitchen"], response: { title: "Pantry Organization Plan", steps: [ "Remove all items and categorize them", "Wipe down shelves and consider shelf liners", "Use clear containers for dry goods", "Implement a FIFO (first in, first out) system", "Label everything for easy identification" ], products: [ "Clear airtight containers", "Lazy susans for corner access", "Stackable bins", "Chalkboard labels" ], timeEstimate: "2-3 hours" } }, { trigger: ["closet", "wardrobe", "clothes"], response: { title: "Closet Organization System", steps: [ "Remove everything and sort by category", "Donate/sell items not worn in past year", "Install matching hangers for uniformity", "Organize by category then color", "Use shelf dividers for folded items" ], products: [ "Velvet hangers (25+ pack)", "Shoe racks or cubbies", "Shelf dividers", "Under-bed storage for off-season" ], timeEstimate: "4-5 hours" } }, { trigger: ["home office", "desk", "workspace"], response: { title: "Home Office Optimization", steps: [ "Declutter desktop and drawers", "Implement cable management system", "Create zones for different tasks", "Add personal touches for motivation", "Set up proper lighting" ], products: [ "Cable management kit", "Desk organizer set", "Monitor stand with storage", "Task lighting" ], timeEstimate: "3-4 hours" } } ], analyzePrompt: function(prompt) { const lowerPrompt = prompt.toLowerCase(); let bestMatch = { score: 0, response: null }; this.responses.forEach(item => { let score = 0; item.trigger.forEach(trigger => { if (lowerPrompt.includes(trigger)) score++; }); if (score > bestMatch.score) { bestMatch = { score, response: item.response }; } }); return bestMatch.response || this.generateGenericResponse(prompt); }, generateGenericResponse: function(prompt) { return { title: "Home Organization Plan", steps: [ "Start by decluttering the area completely", "Clean the space thoroughly before reorganizing", "Categorize items to determine storage needs", "Implement storage solutions based on frequency of use", "Label everything for easy maintenance" ], products: [ "Storage bins appropriate for your items", "Labels and a labeling system", "Shelving or organizers if needed" ], timeEstimate: "Varies by project size" }; }, // New method to handle all AI interactions throughout the site handleSiteInteraction: function(elementId, action) { const element = document.getElementById(elementId); if (!element) return; switch(action) { case 'hover': element.addEventListener('mouseenter', () => { this.showContextualHelp(elementId); }); break; case 'click': element.addEventListener('click', () => { this.logInteraction(elementId); }); break; case 'focus': element.addEventListener('focus', () => { this.suggestImprovements(elementId); }); break; } }, showContextualHelp: function(elementId) { // In a real implementation, this would show relevant help based on the element console.log(`GEMMA3: Showing contextual help for ${elementId}`); }, logInteraction: function(elementId) { // Log user interactions for learning patterns const now = new Date(); const timeString = now.toTimeString().substring(0, 8); addLogEntry(`User interacted with ${elementId} at ${timeString}`); }, suggestImprovements: function(elementId) { // Provide suggestions when user focuses on certain elements const suggestions = { 'ai-prompt': "Try asking me to 'create a cleaning schedule' or 'organize my garage'", 'activate-strategy-mode': "Strategy mode shows real-time AI operations in your home", 'submit-prompt': "I can help with any home organization challenge you're facing" }; if (suggestions[elementId]) { showAISpeech(suggestions[elementId]); } } }; // Display AI response in chat function displayAIResponse(prompt) { const chatContainer = document.getElementById('ai-chat'); const response = gemmaAI.analyzePrompt(prompt); // Add user message const userMessage = document.createElement('div'); userMessage.className = 'flex justify-end fade-in'; userMessage.innerHTML = ` <div class="user-message px-4 py-3 max-w-xs"> <p>${prompt}</p> </div> `; chatContainer.appendChild(userMessage); // Add AI response const aiMessage = document.createElement('div'); aiMessage.className = 'flex justify-start fade-in'; aiMessage.innerHTML = ` <div class="ai-response px-4 py-3 max-w-2xl"> <div class="flex items-center mb-2"> <div class="w-6 h-6 rounded-full bg-purple-100 flex items-center justify-center mr-2"> <i class="fas fa-robot text-purple-600 text-xs"></i> </div> <span class="text-sm font-medium">GEMMA3 AI</span> </div> <h4 class="font-semibold mb-2">${response.title}</h4> <p class="text-sm mb-3">Estimated time: ${response.timeEstimate}</p> <ol class="list-decimal list-inside space-y-2 text-sm mb-4"> ${response.steps.map(step => `<li>${step}</li>`).join('')} </ol> <div class="bg-purple-50 rounded-lg p-3 mb-3"> <p class="text-xs font-medium text-purple-800 mb-2">RECOMMENDED PRODUCTS:</p> <div class="grid grid-cols-2 gap-2"> ${response.products.map(product => ` <div class="flex items-center text-xs"> <i class="fas fa-circle text-purple-300 mr-2 text-xs"></i> <span>${product}</span> </div> `).join('')} </div> </div> <div class="mt-3 pt-3 border-t border-gray-100 flex justify-between"> <button class="text-purple-600 text-sm font-medium flex items-center"> <i class="fas fa-save mr-2"></i> Save Plan </button> <button class="text-purple-600 text-sm font-medium flex items-center"> <i class="fas fa-calendar-plus mr-2"></i> Schedule </button> <button class="text-purple-600 text-sm font-medium flex items-center"> <i class="fas fa-shopping-cart mr-2"></i> Shop Supplies </button> </div> </div> `; chatContainer.appendChild(aiMessage); // Scroll to bottom chatContainer.scrollTop = chatContainer.scrollHeight; } // Handle prompt submission document.getElementById('submit-prompt').addEventListener('click', function() { const promptInput = document.getElementById('ai-prompt'); const prompt = promptInput.value.trim(); if (prompt) { // Simulate AI processing setTimeout(() => { displayAIResponse(prompt); promptInput.value = ''; }, 1000); } }); // Allow pressing Enter to submit (but Shift+Enter for new line) document.getElementById('ai-prompt').addEventListener('keydown', function(e) { if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); document.getElementById('submit-prompt').click(); } }); // Simulate loading animation for progress ring setTimeout(() => { document.querySelector('.progress-ring').style.strokeDashoffset = '25'; }, 500); // AI Strategy Mode Functionality const strategyViewport = document.getElementById('ai-strategy-viewport'); const activateStrategyBtn = document.getElementById('activate-strategy-mode'); const closeViewportBtn = document.getElementById('close-viewport'); const aiAgent = document.getElementById('ai-agent'); const aiSpeech = document.getElementById('ai-speech'); const aiScene = document.getElementById('ai-agent-scene'); const currentSceneText = document.getElementById('current-scene'); const taskLog = document.getElementById('task-log'); const viewportOverlay = document.getElementById('viewport-overlay'); // Room backgrounds const roomScenes = { kitchen: { name: "KITCHEN", bg: "linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80')", tasks: [ "Organizing pantry shelves", "Checking refrigerator contents", "Wiping down countertops", "Arranging cooking utensils", "Inventorying spices" ] }, livingroom: { name: "LIVING ROOM", bg: "linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=croll&w=1632&q=80')", tasks: [ "Fluffing pillows and arranging throws", "Dusting entertainment center", "Organizing media collection", "Rotating decorative items", "Vacuuming under furniture" ] }, bedroom: { name: "BEDROOM", bg: "linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1631679706909-1844bbd07221?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1392&q=80')", tasks: [ "Making the bed with fresh linens", "Organizing nightstand items", "Rotating seasonal clothing", "Dusting surfaces", "Checking under-bed storage" ] }, bathroom: { name: "BATHROOM", bg: "linear-gradient(rgba </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Haven - AI Home Management System</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>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
--primary: #5E35B1;
--secondary: #3949AB;
--accent: #7C4DFF;
--light: #EDE7F6;
--dark: #311B92;
}
body {
font-family: 'Poppins', sans-serif;
background-color: #f9fafb;
}
.gradient-bg {
background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.nav-item {
position: relative;
transition: all 0.3s ease;
}
.nav-item.active::after {
content: '';
position: absolute;
bottom: -8px;
left: 0;
width: 100%;
height: 3px;
background-color: var(--accent);
border-radius: 3px;
}
.ai-message {
border-radius: 18px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
}
.user-message {
background: var(--primary);
color: white;
border-radius: 18px 18px 4px 18px;
}
.ai-response {
background: white;
border-radius: 18px 18px 18px 4px;
border: 1px solid #e5e7eb;
}
.task-card {
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.task-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.progress-ring {
transition: stroke-dashoffset 0.5s ease;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
.fade-in {
animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.slide-up {
animation: slideUp 0.4s ease-out forwards;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.custom-scroll {
scrollbar-width: thin;
scrollbar-color: var(--primary) #e5e7eb;
}