Spaces:
Running
Running
Continue to professionally implement these features - Follow Up Deployment
Browse files- index.html +71 -2
index.html
CHANGED
|
@@ -162,10 +162,55 @@
|
|
| 162 |
|
| 163 |
<!-- Taskbar -->
|
| 164 |
<div class="h-12 bg-taskbar-gray bg-opacity-90 backdrop-blur-sm flex items-center px-3 border-t border-gray-700">
|
| 165 |
-
<div class="mr-4">
|
| 166 |
-
<button class="bg-app-blue w-8 h-8 rounded flex items-center justify-center text-white">
|
| 167 |
<i class="fab fa-windows"></i>
|
| 168 |
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
</div>
|
| 170 |
|
| 171 |
<div class="flex-1 flex items-center h-full">
|
|
@@ -605,6 +650,30 @@
|
|
| 605 |
});
|
| 606 |
});
|
| 607 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 608 |
// Open AI Assistant on load
|
| 609 |
window.onload = function() {
|
| 610 |
openApp('ai-assistant');
|
|
|
|
| 162 |
|
| 163 |
<!-- Taskbar -->
|
| 164 |
<div class="h-12 bg-taskbar-gray bg-opacity-90 backdrop-blur-sm flex items-center px-3 border-t border-gray-700">
|
| 165 |
+
<div class="mr-4 relative">
|
| 166 |
+
<button class="bg-app-blue w-8 h-8 rounded flex items-center justify-center text-white" onclick="toggleStartMenu()">
|
| 167 |
<i class="fab fa-windows"></i>
|
| 168 |
</button>
|
| 169 |
+
<!-- Start Menu -->
|
| 170 |
+
<div id="start-menu" class="absolute bottom-12 left-0 w-64 bg-gray-800 border border-gray-700 rounded-lg shadow-xl hidden z-50">
|
| 171 |
+
<div class="p-3 border-b border-gray-700">
|
| 172 |
+
<input type="text" class="w-full bg-gray-700 text-white rounded px-3 py-1 text-sm focus:outline-none" placeholder="Search apps and files">
|
| 173 |
+
</div>
|
| 174 |
+
<div class="p-2 max-h-96 overflow-y-auto">
|
| 175 |
+
<div class="text-gray-400 text-xs uppercase px-2 py-1">Apps</div>
|
| 176 |
+
<div class="flex items-center px-2 py-2 hover:bg-gray-700 rounded cursor-pointer" onclick="openApp('ai-assistant')">
|
| 177 |
+
<div class="w-8 h-8 bg-ai-purple rounded flex items-center justify-center mr-2">
|
| 178 |
+
<i class="fas fa-robot text-white text-sm"></i>
|
| 179 |
+
</div>
|
| 180 |
+
<span class="text-white text-sm">AI Assistant</span>
|
| 181 |
+
</div>
|
| 182 |
+
<div class="flex items-center px-2 py-2 hover:bg-gray-700 rounded cursor-pointer" onclick="openApp('documents')">
|
| 183 |
+
<div class="w-8 h-8 bg-yellow-500 rounded flex items-center justify-center mr-2">
|
| 184 |
+
<i class="fas fa-file-alt text-white text-sm"></i>
|
| 185 |
+
</div>
|
| 186 |
+
<span class="text-white text-sm">Documents</span>
|
| 187 |
+
</div>
|
| 188 |
+
<div class="text-gray-400 text-xs uppercase px-2 py-1 mt-2">System</div>
|
| 189 |
+
<div class="flex items-center px-2 py-2 hover:bg-gray-700 rounded cursor-pointer">
|
| 190 |
+
<div class="w-8 h-8 bg-red-500 rounded flex items-center justify-center mr-2">
|
| 191 |
+
<i class="fas fa-cog text-white text-sm"></i>
|
| 192 |
+
</div>
|
| 193 |
+
<span class="text-white text-sm">Settings</span>
|
| 194 |
+
</div>
|
| 195 |
+
<div class="flex items-center px-2 py-2 hover:bg-gray-700 rounded cursor-pointer" onclick="minimizeAllWindows()">
|
| 196 |
+
<div class="w-8 h-8 bg-gray-600 rounded flex items-center justify-center mr-2">
|
| 197 |
+
<i class="fas fa-window-minimize text-white text-sm"></i>
|
| 198 |
+
</div>
|
| 199 |
+
<span class="text-white text-sm">Minimize All</span>
|
| 200 |
+
</div>
|
| 201 |
+
</div>
|
| 202 |
+
<div class="p-3 border-t border-gray-700 flex justify-between items-center">
|
| 203 |
+
<div class="flex items-center">
|
| 204 |
+
<div class="w-8 h-8 rounded-full bg-gray-700 flex items-center justify-center mr-2">
|
| 205 |
+
<i class="fas fa-user text-white text-sm"></i>
|
| 206 |
+
</div>
|
| 207 |
+
<span class="text-white text-sm">User</span>
|
| 208 |
+
</div>
|
| 209 |
+
<button class="w-8 h-8 rounded flex items-center justify-center hover:bg-gray-700" onclick="toggleStartMenu()">
|
| 210 |
+
<i class="fas fa-power-off text-white text-sm"></i>
|
| 211 |
+
</button>
|
| 212 |
+
</div>
|
| 213 |
+
</div>
|
| 214 |
</div>
|
| 215 |
|
| 216 |
<div class="flex-1 flex items-center h-full">
|
|
|
|
| 650 |
});
|
| 651 |
});
|
| 652 |
|
| 653 |
+
// Toggle start menu
|
| 654 |
+
function toggleStartMenu() {
|
| 655 |
+
const menu = document.getElementById('start-menu');
|
| 656 |
+
menu.classList.toggle('hidden');
|
| 657 |
+
}
|
| 658 |
+
|
| 659 |
+
// Close start menu when clicking elsewhere
|
| 660 |
+
document.addEventListener('click', function(e) {
|
| 661 |
+
const menu = document.getElementById('start-menu');
|
| 662 |
+
const btn = document.querySelector('.mr-4 button');
|
| 663 |
+
|
| 664 |
+
if (!menu.contains(e.target) && e.target !== btn && !btn.contains(e.target)) {
|
| 665 |
+
menu.classList.add('hidden');
|
| 666 |
+
}
|
| 667 |
+
});
|
| 668 |
+
|
| 669 |
+
// Minimize all windows
|
| 670 |
+
function minimizeAllWindows() {
|
| 671 |
+
document.querySelectorAll('.window').forEach(window => {
|
| 672 |
+
window.classList.add('hidden');
|
| 673 |
+
});
|
| 674 |
+
document.getElementById('start-menu').classList.add('hidden');
|
| 675 |
+
}
|
| 676 |
+
|
| 677 |
// Open AI Assistant on load
|
| 678 |
window.onload = function() {
|
| 679 |
openApp('ai-assistant');
|