Add 2 files
Browse filesFiles changed (2)
- index.html+1161-494
- prompts.txt+3-1
2 unmodified lines34567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903911 unmodified line3933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516524 unmodified lines6576586596606616626636646656664 unmodified lines6716726736746756762 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>AI Commodity & Project Assistant</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');body {font-family: 'Poppins', sans-serif;background-color: #f8fafc;}.nav-icon {width: 44px;height: 44px;display: flex;align-items: center;justify-content: center;border-radius: 12px;transition: all 0.2s ease;}.nav-icon.active {background-color: #3b82f6;color: white;box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);}.nav-icon:hover:not(.active) {background-color: #e0e7ff;}.prompt-bubble {border-radius: 18px 18px 4px 18px;background-color: #3b82f6;color: white;}.response-bubble {border-radius: 18px 18px 18px 4px;background-color: #f1f5f9;}.task-card {transition: all 0.2s ease;}.task-card:hover {transform: translateY(-2px);box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);}.commodity-chip {transition: all 0.2s ease;}.commodity-chip:hover {transform: scale(1.05);}.slide-in {animation: slideIn 0.3s ease-out forwards;}@keyframes slideIn {from { transform: translateY(10px); opacity: 0; }to { transform: translateY(0); opacity: 1; }}.fade-in {animation: fadeIn 0.4s ease-out forwards;}@keyframes fadeIn {from { opacity: 0; }to { opacity: 1; }}.vertical-stack {scrollbar-width: thin;scrollbar-color: #3b82f6 #e5e7eb;}.vertical-stack::-webkit-scrollbar {width: 6px;}.vertical-stack::-webkit-scrollbar-track {background: #e5e7eb;border-radius: 10px;}.vertical-stack::-webkit-scrollbar-thumb {background-color: #3b82f6;border-radius: 10px;}</style></head><body class="min-h-screen"><div class="flex h-screen overflow-hidden"><!-- Vertical Navigation --><div class="w-20 bg-white border-r border-gray-200 flex flex-col items-center py-6 space-y-6"><div class="flex flex-col items-center space-y-8"><div class="nav-icon active" title="Commodities"><i class="fas fa-boxes text-xl"></i></div><div class="nav-icon" title="Projects"><i class="fas fa-project-diagram text-xl"></i></div><div class="nav-icon" title="Tasks"><i class="fas fa-tasks text-xl"></i></div><div class="nav-icon" title="Analytics"><i class="fas fa-chart-pie text-xl"></i></div><div class="nav-icon" title="Settings"><i class="fas fa-cog text-xl"></i></div></div></div><!-- Main Content Area --><div class="flex-1 flex flex-col overflow-hidden"><!-- Header --><div class="bg-white border-b border-gray-200 p-4 flex items-center justify-between"><h1 class="text-2xl font-bold text-gray-800 flex items-center"><i class="fas fa-robot text-blue-500 mr-3"></i><span>AI Commodity & Project Assistant</span></h1><div class="flex items-center space-x-4"><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..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"></div><div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center"><i class="fas fa-user text-blue-600"></i></div></div></div><!-- Content Container - Now single column vertical layout --><div class="flex-1 overflow-y-auto vertical-stack p-6 space-y-6"><!-- Prompt Input --><div class="bg-white rounded-xl shadow-sm p-4"><div class="flex items-center space-x-3"><div class="flex-1 relative"><textarea id="ai-prompt" rows="2" placeholder="Describe your commodities list or project requirements..." class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 resize-none"></textarea><div class="absolute right-3 bottom-3 flex space-x-2"><button class="text-gray-400 hover:text-blue-500"><i class="fas fa-paperclip"></i></button><button class="text-gray-400 hover:text-blue-500"><i class="fas fa-microphone"></i></button></div></div><button id="submit-prompt" class="bg-blue-600 hover:bg-blue-700 text-white w-12 h-12 rounded-lg flex items-center justify-center"><i class="fas fa-paper-plane text-xl"></i></button></div></div><!-- AI Response Viewport --><div id="ai-response-viewport" class="space-y-4"><!-- Example prompt/response --><div class="flex justify-end"><div class="prompt-bubble px-4 py-2 max-w-xs"><p>Create a commodities list for a beach picnic</p></div></div><div class="flex justify-start"><div class="response-bubble px-4 py-3 max-w-2xl"><div class="flex items-center mb-2"><div class="w-6 h-6 rounded-full bg-blue-100 flex items-center justify-center mr-2"><i class="fas fa-robot text-blue-600 text-xs"></i></div><span class="text-sm font-medium">AI Assistant</span></div><p class="mb-3">Here's a suggested beach picnic commodities list:</p><div class="grid grid-cols-1 sm:grid-cols-2 gap-2"><div class="commodity-chip bg-white border border-gray-200 px-3 py-2 rounded-lg flex items-center"><i class="fas fa-umbrella-beach text-yellow-500 mr-2"></i><span>Beach umbrella</span></div><div class="commodity-chip bg-white border border-gray-200 px-3 py-2 rounded-lg flex items-center"><i class="fas fa-ice-cream text-pink-500 mr-2"></i><span>Cooler with ice</span></div><div class="commodity-chip bg-white border border-gray-200 px-3 py-2 rounded-lg flex items-center"><i class="fas fa-wine-glass-alt text-purple-500 mr-2"></i><span>Plastic wine glasses</span></div><div class="commodity-chip bg-white border border-gray-200 px-3 py-2 rounded-lg flex items-center"><i class="fas fa-hamburger text-orange-500 mr-2"></i><span>Sandwich ingredients</span></div></div><div class="mt-3 pt-3 border-t border-gray-200"><button class="text-blue-600 text-sm font-medium flex items-center"><i class="fas fa-plus-circle mr-1"></i>Add to project</button></div></div></div></div><!-- Active Commodities Section --><div class="bg-white rounded-xl shadow-sm p-6"><div class="flex items-center justify-between mb-6"><h2 class="text-xl font-semibold flex items-center"><i class="fas fa-boxes text-blue-500 mr-3"></i><span>Active Commodities</span></h2><div class="flex space-x-3"><button class="px-3 py-1 bg-blue-50 text-blue-600 rounded-lg text-sm font-medium"><i class="fas fa-plus mr-1"></i> Add New</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="space-y-4"><!-- Commodity Card --><div class="task-card bg-white border border-gray-200 rounded-xl p-5 shadow-sm"><div class="flex items-start justify-between mb-3"><div class="flex items-center"><div class="w-12 h-12 rounded-lg bg-blue-100 flex items-center justify-center mr-4"><i class="fas fa-utensils text-blue-600 text-lg"></i></div><div><h3 class="font-semibold text-lg">Picnic Supplies</h3><p class="text-sm text-gray-500">Beach outing project</p></div></div><div class="flex space-x-2"><button class="text-gray-400 hover:text-blue-500"><i class="fas fa-edit"></i></button><button class="text-gray-400 hover:text-red-500"><i class="fas fa-trash"></i></button></div></div><div class="flex flex-wrap gap-2 mt-3"><span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded-full">Food</span><span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">Outdoor</span><span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full">Essentials</span></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-check-circle text-green-500 mr-2"></i><span>5/8 items prepped</span></div><button class="text-blue-600 text-sm font-medium flex items-center"><i class="fas fa-eye mr-2"></i>View Details</button></div></div><!-- Commodity Card --><div class="task-card bg-white border border-gray-200 rounded-xl p-5 shadow-sm"><div class="flex items-start justify-between mb-3"><div class="flex items-center"><div class="w-12 h-12 rounded-lg bg-purple-100 flex items-center justify-center mr-4"><i class="fas fa-tools text-purple-600 text-lg"></i></div><div><h3 class="font-semibold text-lg">DIY Workshop</h3><p class="text-sm text-gray-500">Home improvement</p></div></div><div class="flex space-x-2"><button class="text-gray-400 hover:text-blue-500"><i class="fas fa-edit"></i></button><button class="text-gray-400 hover:text-red-500"><i class="fas fa-trash"></i></button></div></div><div class="flex flex-wrap gap-2 mt-3"><span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded-full">Tools</span><span class="text-xs bg-indigo-100 text-indigo-800 px-2 py-1 rounded-full">Materials</span><span class="text-xs bg-gray-100 text-gray-800 px-2 py-1 rounded-full">Safety</span></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-yellow-500 mr-2"></i><span>Pending setup</span></div><button class="text-blue-600 text-sm font-medium flex items-center"><i class="fas fa-eye mr-2"></i>View Details</button></div></div><!-- Commodity Card --><div class="task-card bg-white border border-gray-200 rounded-xl p-5 shadow-sm"><div class="flex items-start justify-between mb-3"><div class="flex items-center"><div class="w-12 h-12 rounded-lg bg-green-100 flex items-center justify-center mr-4"><i class="fas fa-laptop-code text-green-600 text-lg"></i></div><div><h3 class="font-semibold text-lg">Tech Setup</h3><p class="text-sm text-gray-500">Home office upgrade</p></div></div><div class="flex space-x-2"><button class="text-gray-400 hover:text-blue-500"><i class="fas fa-edit"></i></button><button class="text-gray-400 hover:text-red-500"><i class="fas fa-trash"></i></button></div></div><div class="flex flex-wrap gap-2 mt-3"><span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded-full">Electronics</span><span class="text-xs bg-teal-100 text-teal-800 px-2 py-1 rounded-full">Accessories</span><span class="text-xs bg-cyan-100 text-cyan-800 px-2 py-1 rounded-full">Cables</span></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-check-circle text-green-500 mr-2"></i><span>Complete</span></div><button class="text-blue-600 text-sm font-medium flex items-center"><i class="fas fa-eye mr-2"></i>View Details</button></div></div></div></div><!-- AI Suggestions Section --><div class="bg-blue-50 rounded-xl p-6"><div class="flex items-center justify-between mb-6"><h2 class="text-xl font-semibold flex items-center"><i class="fas fa-lightbulb text-blue-500 mr-3"></i><span>AI Suggestions</span></h2><button class="text-blue-600 text-sm font-medium flex items-center"><i class="fas fa-sync-alt mr-2"></i>Refresh Suggestions</button></div><div class="space-y-4"><div class="bg-white rounded-lg p-4 flex items-start shadow-sm"><div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-4 mt-1"><i class="fas fa-robot text-blue-600"></i></div><div class="flex-1"><p class="text-sm mb-2">Based on your upcoming weekend plans, consider adding sunscreen and reusable water bottles to your beach picnic list.</p><div class="flex space-x-3"><button class="text-blue-600 text-sm font-medium flex items-center"><i class="fas fa-plus mr-1"></i>Add to list</button><button class="text-gray-600 text-sm font-medium flex items-center"><i class="fas fa-times mr-1"></i>Dismiss</button></div></div></div><div class="bg-white rounded-lg p-4 flex items-start shadow-sm"><div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-4 mt-1"><i class="fas fa-robot text-purple-600"></i></div><div class="flex-1"><p class="text-sm mb-2">Your DIY workshop might need safety goggles and work gloves based on similar projects.</p><div class="flex space-x-3"><button class="text-blue-600 text-sm font-medium flex items-center"><i class="fas fa-plus mr-1"></i>Add to list</button><button class="text-gray-600 text-sm font-medium flex items-center"><i class="fas fa-times mr-1"></i>Dismiss</button></div></div></div></div></div></div>1 unmodified line</div><script>// AI Agents Simulationconst aiAgents = {commoditiesAgent: {analyzePrompt: (prompt) => {// Simulate AI analysis with different response typesconst responseTypes = [{type: 'list',title: 'Commodities List',items: generateCommoditiesList(prompt)},{type: 'project',title: 'Project Outline',items: generateProjectOutline(prompt)},{type: 'tasks',title: 'Preparation Tasks',items: generatePreparationTasks(prompt)}];// Randomly select a response typereturn responseTypes[Math.floor(Math.random() * responseTypes.length)];}},projectAgent: {createOutline: (theme) => {return {title: `${theme} Project`,phases: [{ name: 'Planning', tasks: ['Define scope', 'Set budget', 'Create timeline'] },{ name: 'Acquisition', tasks: ['Source materials', 'Purchase items', 'Organize inventory'] },{ name: 'Execution', tasks: ['Prepare items', 'Coordinate logistics', 'Implement plan'] },{ name: 'Review', tasks: ['Evaluate results', 'Document lessons', 'Archive materials'] }]};}},taskAgent: {generateSteps: (commodity) => {return [`Research best options for ${commodity}`,`Compare prices and quality`,`Purchase ${commodity}`,`Prepare/assemble ${commodity}`,`Quality check ${commodity}`];}}};// Generate realistic commodities list based on promptfunction generateCommoditiesList(prompt) {const lists = {beach: ['Beach umbrella', 'Cooler with ice', 'Sandwich ingredients', 'Reusable water bottles','Sunscreen SPF 50+', 'Beach towels', 'Portable speaker', 'Plastic wine glasses'],picnic: ['Picnic blanket', 'Basket with utensils', 'Cheese board', 'Fresh fruits','Charcuterie selection', 'Sparkling water', 'Dessert items', 'Napkins'],diy: ['Safety goggles', 'Work gloves', 'Measuring tape', 'Power drill','Sandpaper assortment', 'Wood glue', 'Paint brushes', 'Drop cloth'],tech: ['Laptop stand', 'Wireless mouse', 'External monitor', 'USB-C hub','Noise-cancelling headphones', 'Webcam', 'Keyboard', 'Cable organizer']};// Find the most relevant list based on prompt keywordsif (prompt.toLowerCase().includes('beach')) return lists.beach;if (prompt.toLowerCase().includes('picnic')) return lists.picnic;if (prompt.toLowerCase().includes('diy')) return lists.diy;if (prompt.toLowerCase().includes('tech')) return lists.tech;// Default return if no matchreturn lists.picnic;}// Generate project outlinefunction generateProjectOutline(prompt) {const outlines = {beach: ['Phase 1: Menu Planning - Decide on food and drinks','Phase 2: Equipment Check - Verify all beach gear is ready','Phase 3: Packing - Organize items for easy transport','Phase 4: Execution - Enjoy the beach day!'],diy: ['Phase 1: Design - Sketch plans and measurements','Phase 2: Materials - Purchase wood and hardware','Phase 3: Construction - Cut, assemble, and finish','Phase 4: Installation - Place in desired location']};if (prompt.toLowerCase().includes('beach')) return outlines.beach;if (prompt.toLowerCase().includes('diy')) return outlines.diy;return outlines.beach;}// Generate preparation tasksfunction generatePreparationTasks(prompt) {const tasks = {beach: ['Wash and prep all fruits and vegetables','Prepare sandwiches and wrap them','Chill drinks overnight','Charge portable speaker and phone','Pack towels and sunscreen in easy-access bag'],diy: ['Measure and mark all cut lines','Gather all tools in workspace','Prepare safety equipment','Clear workspace of obstacles','Review instructions one more time']};if (prompt.toLowerCase().includes('beach')) return tasks.beach;if (prompt.toLowerCase().includes('diy')) return tasks.diy;return tasks.beach;}// Display AI response in viewportfunction displayAIResponse(prompt, response) {const viewport = document.getElementById('ai-response-viewport');// Add user promptconst promptElement = document.createElement('div');promptElement.className = 'flex justify-end slide-in';promptElement.innerHTML = `<div class="prompt-bubble px-4 py-2 max-w-xs"><p>${prompt}</p></div>`;viewport.appendChild(promptElement);// Add AI responseconst responseElement = document.createElement('div');responseElement.className = 'flex justify-start slide-in';let responseHTML = '';if (response.type === 'list') {responseHTML = `<div class="response-bubble px-4 py-3 max-w-2xl"><div class="flex items-center mb-2"><div class="w-6 h-6 rounded-full bg-blue-100 flex items-center justify-center mr-2"><i class="fas fa-robot text-blue-600 text-xs"></i></div><span class="text-sm font-medium">AI Commodity Agent</span></div><p class="mb-3">Here's a suggested ${response.title.toLowerCase()}:</p><div class="grid grid-cols-1 sm:grid-cols-2 gap-2">${response.items.map(item => `<div class="commodity-chip bg-white border border-gray-200 px-3 py-2 rounded-lg flex items-center"><i class="fas ${getItemIcon(item)} text-${getItemColor(item)}-500 mr-2"></i><span>${item}</span></div>`).join('')}</div><div class="mt-3 pt-3 border-t border-gray-200"><button class="text-blue-600 text-sm font-medium flex items-center"><i class="fas fa-plus-circle mr-1"></i>Add to project</button></div></div>`;} else if (response.type === 'project') {responseHTML = `<div class="response-bubble 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">AI Project Agent</span></div><p class="mb-3">Here's a suggested ${response.title.toLowerCase()}:</p><div class="space-y-3">${response.items.map(item => `<div class="bg-white border border-gray-200 rounded-lg p-3"><p class="text-sm">${item}</p></div>`).join('')}</div><div class="mt-3 pt-3 border-t border-gray-200"><button class="text-blue-600 text-sm font-medium flex items-center"><i class="fas fa-project-diagram mr-1"></i>Create project</button></div></div>`;} else if (response.type === 'tasks') {responseHTML = `<div class="response-bubble px-4 py-3 max-w-2xl"><div class="flex items-center mb-2"><div class="w-6 h-6 rounded-full bg-green-100 flex items-center justify-center mr-2"><i class="fas fa-robot text-green-600 text-xs"></i></div><span class="text-sm font-medium">AI Task Agent</span></div><p class="mb-3">Here are preparation tasks for your items:</p><div class="space-y-2">${response.items.map((item, index) => `<div class="flex items-start"><div class="w-5 h-5 rounded-full bg-gray-100 flex items-center justify-center mr-2 mt-0.5"><span class="text-xs text-gray-600">${index + 1}</span></div><p class="text-sm flex-1">${item}</p></div>`).join('')}</div><div class="mt-3 pt-3 border-t border-gray-200"><button class="text-blue-600 text-sm font-medium flex items-center"><i class="fas fa-tasks mr-1"></i>Add to task list</button></div></div>`;}responseElement.innerHTML = responseHTML;viewport.appendChild(responseElement);// Scroll to bottomviewport.scrollTop = viewport.scrollHeight;}// Get appropriate icon for itemfunction getItemIcon(item) {if (item.includes('umbrella')) return 'fa-umbrella-beach';if (item.includes('Cooler') || item.includes('ice')) return 'fa-ice-cream';if (item.includes('wine') || item.includes('glass')) return 'fa-wine-glass-alt';if (item.includes('food') || item.includes('sandwich')) return 'fa-utensils';if (item.includes('safety') || item.includes('goggles')) return 'fa-hard-hat';if (item.includes('tech') || item.includes('laptop')) return 'fa-laptop';return 'fa-box-open';}// Get color for itemfunction getItemColor(item) {if (item.includes('umbrella')) return 'yellow';if (item.includes('Cooler') || item.includes('ice')) return 'pink';if (item.includes('wine') || item.includes('glass')) return 'purple';if (item.includes('food') || item.includes('sandwich')) return 'orange';if (item.includes('safety') || item.includes('goggles')) return 'red';if (item.includes('tech') || item.includes('laptop')) return 'blue';return 'gray';}// Handle prompt submission4 unmodified linesif (prompt) {// Simulate AI processingsetTimeout(() => {const response = aiAgents.commoditiesAgent.analyzePrompt(prompt);displayAIResponse(prompt, response);promptInput.value = '';}, 800);}});4 unmodified linesdocument.getElementById('submit-prompt').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=MarcRyan/ai-commodity-project-assistant" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>2 unmodified lines34567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009011 unmodified line903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910704 unmodified lines1075107610771078107910801081108210834 unmodified lines10881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213432 unmodified lines<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;}</style></head><body class="min-h-screen"><!-- AI Strategy Viewport --><div id="ai-strategy-viewport" class="ai-strategy-viewport"><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">HAVEN 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>AI 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">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><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>AI 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. Here's what needs attention today.</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">Quick Access 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">Haven 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">Haven 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 Haven 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>Urgent Tasks</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>Recommended Projects</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>Home 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>1 unmodified line</div><script>// Premium AI Assistant Functionalityconst havenAI = {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"};}};// Display AI response in chatfunction displayAIResponse(prompt) {const chatContainer = document.getElementById('ai-chat');const response = havenAI.analyzePrompt(prompt);// Add user messageconst 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 responseconst 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">Haven 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 bottomchatContainer.scrollTop = chatContainer.scrollHeight;}// Handle prompt submission4 unmodified linesif (prompt) {// Simulate AI processingsetTimeout(() => {displayAIResponse(prompt);promptInput.value = '';}, 1000);}});4 unmodified linesdocument.getElementById('submit-prompt').click();}});// Simulate loading animation for progress ringsetTimeout(() => {document.querySelector('.progress-ring').style.strokeDashoffset = '25';}, 500);// AI Strategy Mode Functionalityconst 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 backgroundsconst 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(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1632329305424-dad1c6bf9c3a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80')",tasks: ["Organizing medicine cabinet","Checking toiletries inventory","Wiping down mirrors","Arranging towels","Cleaning shower area"]},garage: {name: "GARAGE",bg: "linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1473&q=80')",tasks: ["Organizing tools on pegboard","Checking seasonal equipment","Arranging storage bins","Sweeping floor","Inventorying paint supplies"]}};// Current scene statelet currentScene = 'kitchen';let isStrategyModeActive = false;// Activate strategy modeactivateStrategyBtn.addEventListener('click', function() {isStrategyModeActive = !isStrategyModeActive;if (isStrategyModeActive) {strategyViewport.classList.add('active');activateStrategyBtn.innerHTML = '<i class="fas fa-tv"></i><span>Exit Strategy Mode</span>';startAISimulation();} else {strategyViewport.classList.remove('active');activateStrategyBtn.innerHTML = '<i class="fas fa-tv"></i><span>AI Strategy Mode</span>';stopAISimulation();}});// Close viewportcloseViewportBtn.addEventListener('click', function() {strategyViewport.classList.remove('active');isStrategyModeActive = false;activateStrategyBtn.innerHTML = '<i class="fas fa-tv"></i><span>AI Strategy Mode</span>';stopAISimulation();});// Change scenedocument.querySelectorAll('.scene-btn').forEach(btn => {btn.addEventListener('click', function() {const scene = this.dataset.scene;changeScene(scene);});});// Change scene functionfunction changeScene(scene) {currentScene = scene;const sceneData = roomScenes[scene];// Update scene backgroundaiScene.style.background = sceneData.bg;aiScene.style.backgroundSize = 'cover';aiScene.style.backgroundPosition = 'center';// Update scene indicatorcurrentSceneText.textContent = sceneData.name;// Position AI agent randomly in the scenepositionAgent();// Add log entryaddLogEntry(`Entered ${sceneData.name.toLowerCase()} for maintenance`);// Start performing tasks for this roomperformRoomTasks(sceneData.tasks);}// Position agent randomly in scenefunction positionAgent() {const sceneWidth = aiScene.offsetWidth;const sceneHeight = aiScene.offsetHeight;const maxX = sceneWidth - 100;const maxY = sceneHeight - 100;const randomX = Math.floor(Math.random() * maxX);const randomY = Math.floor(Math.random() * maxY);aiAgent.style.left = `${randomX}px`;aiAgent.style.top = `${randomY}px`;}// Add log entryfunction addLogEntry(message) {const now = new Date();const timeString = now.toTimeString().substring(0, 8);const logEntry = document.createElement('div');logEntry.className = 'log-entry';logEntry.innerHTML = `<span class="log-time">${timeString}</span><span class="log-message">${message}</span>`;taskLog.prepend(logEntry);// Auto-scroll to toptaskLog.scrollTop = 0;}// Perform tasks in current roomfunction performRoomTasks(tasks) {// Clear any existing tasksclearTimeout(window.currentTaskTimeout);// Show overlayviewportOverlay.classList.add('active');// Process each task with delaytasks.forEach((task, index) => {window.currentTaskTimeout = setTimeout(() => {// Update agent positionpositionAgent();// Show speech bubbleaiSpeech.textContent = task;aiSpeech.style.left = `${parseInt(aiAgent.style.left) + 90}px`;aiSpeech.style.top = `${parseInt(aiAgent.style.top) - 30}px`;aiSpeech.classList.add('active');// Add to logaddLogEntry(`Performing task: ${task.toLowerCase()}`);// Hide speech after delaysetTimeout(() => {aiSpeech.classList.remove('active');}, 3000);// Hide overlay after first taskif (index === 0) {viewportOverlay.classList.remove('active');}}, index * 5000);});// After all tasks, move to next roomwindow.currentTaskTimeout = setTimeout(() => {const sceneKeys = Object.keys(roomScenes);const currentIndex = sceneKeys.indexOf(currentScene);const nextIndex = (currentIndex + 1) % sceneKeys.length;changeScene(sceneKeys[nextIndex]);}, tasks.length * 5000 + 2000);}// Start AI simulationfunction startAISimulation() {// Initialize with kitchen scenechangeScene('kitchen');// Add welcome log entryaddLogEntry('AI Strategy Mode activated. Beginning home maintenance simulation.');// Update energy level periodicallywindow.energyInterval = setInterval(() => {const energyFill = document.querySelector('.energy-fill');const currentWidth = parseInt(energyFill.style.width) || 80;const newWidth = Math.max(10, currentWidth - 5);energyFill.style.width = `${newWidth}%`;if (newWidth <= 20) {energyFill.style.background = 'linear-gradient(90deg, #FF5722, #F44336)';} else if (newWidth <= 50) {energyFill.style.background = 'linear-gradient(90deg, #FFC107, #FF9800)';}if (newWidth <= 10) {// RechargesetTimeout(() => {energyFill.style.width = '80%';energyFill.style.background = 'linear-gradient(90deg, #4CAF50, #8BC34A)';addLogEntry('Energy levels replenished after brief recharge cycle');}, 3000);}}, 10000);}// Stop AI simulationfunction stopAISimulation() {clearTimeout(window.currentTaskTimeout);clearInterval(window.energyInterval);aiSpeech.classList.remove('active');viewportOverlay.classList.remove('active');}</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=MarcRyan/ai-commodity-project-assistant" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>
1restck all the acrs and data on this site verticaly123restck all the acrs and data on this site verticalyrecode this into a multi millin dolar app that helps people organze their homelivescreate an "ai stradegy mode" that opens a viewport card at the top of the stack the all the animations showing an AI AGENT livng and opertaing it normal daya to day homcare and maitnece and upgrade tasks" all to be viewed within the viewprot like a tv show
index.html+1161-494
prompts.txt+3-1