edwarddddr commited on
Commit
7ed6766
·
verified ·
1 Parent(s): 28e68c8

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +530 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: My Ai Companion
3
- emoji: 📊
4
- colorFrom: red
5
- colorTo: indigo
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: my-ai-companion
3
+ emoji: 🐳
4
+ colorFrom: gray
5
+ colorTo: blue
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,530 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Nexus AI Companion</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @keyframes pulse {
11
+ 0%, 100% { opacity: 1; }
12
+ 50% { opacity: 0.5; }
13
+ }
14
+ .typing-indicator {
15
+ display: flex;
16
+ padding: 8px 12px;
17
+ }
18
+ .typing-dot {
19
+ width: 8px;
20
+ height: 8px;
21
+ background-color: #4f46e5;
22
+ border-radius: 50%;
23
+ margin: 0 2px;
24
+ animation: pulse 1.5s infinite ease-in-out;
25
+ }
26
+ .typing-dot:nth-child(1) { animation-delay: 0s; }
27
+ .typing-dot:nth-child(2) { animation-delay: 0.3s; }
28
+ .typing-dot:nth-child(3) { animation-delay: 0.6s; }
29
+ .chat-container {
30
+ height: calc(100vh - 160px);
31
+ }
32
+ .sidebar {
33
+ transition: all 0.3s ease;
34
+ }
35
+ @media (max-width: 768px) {
36
+ .sidebar {
37
+ position: absolute;
38
+ z-index: 50;
39
+ transform: translateX(-100%);
40
+ }
41
+ .sidebar-open {
42
+ transform: translateX(0);
43
+ }
44
+ }
45
+ </style>
46
+ </head>
47
+ <body class="bg-gray-100 font-sans">
48
+ <div class="flex h-screen overflow-hidden">
49
+ <!-- Sidebar -->
50
+ <div id="sidebar" class="sidebar w-64 bg-indigo-900 text-white flex flex-col">
51
+ <!-- Header -->
52
+ <div class="p-4 flex items-center justify-between border-b border-indigo-800">
53
+ <div class="flex items-center space-x-3">
54
+ <div class="w-10 h-10 rounded-full bg-indigo-700 flex items-center justify-center">
55
+ <i class="fas fa-robot text-xl"></i>
56
+ </div>
57
+ <span class="font-bold">Nexus AI</span>
58
+ </div>
59
+ <button id="sidebar-toggle" class="md:hidden text-white">
60
+ <i class="fas fa-times"></i>
61
+ </button>
62
+ </div>
63
+
64
+ <!-- Navigation -->
65
+ <nav class="flex-1 overflow-y-auto p-4 space-y-2">
66
+ <div class="space-y-1">
67
+ <div class="text-xs uppercase text-indigo-400 font-semibold mb-2">Main</div>
68
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-800">
69
+ <i class="fas fa-comment-dots w-5"></i>
70
+ <span>Chat</span>
71
+ </a>
72
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-800">
73
+ <i class="fas fa-tasks w-5"></i>
74
+ <span>Tasks</span>
75
+ </a>
76
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-800">
77
+ <i class="fas fa-book w-5"></i>
78
+ <span>Journal</span>
79
+ </a>
80
+ </div>
81
+
82
+ <div class="space-y-1 mt-6">
83
+ <div class="text-xs uppercase text-indigo-400 font-semibold mb-2">System</div>
84
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-800">
85
+ <i class="fas fa-desktop w-5"></i>
86
+ <span>System Control</span>
87
+ </a>
88
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-800">
89
+ <i class="fas fa-network-wired w-5"></i>
90
+ <span>Resources</span>
91
+ </a>
92
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-800">
93
+ <i class="fas fa-shield-alt w-5"></i>
94
+ <span>Security</span>
95
+ </a>
96
+ </div>
97
+
98
+ <div class="space-y-1 mt-6">
99
+ <div class="text-xs uppercase text-indigo-400 font-semibold mb-2">Social</div>
100
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-800">
101
+ <i class="fas fa-users w-5"></i>
102
+ <span>Groups</span>
103
+ </a>
104
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-800">
105
+ <i class="fas fa-user-friends w-5"></i>
106
+ <span>Contacts</span>
107
+ </a>
108
+ </div>
109
+ </nav>
110
+
111
+ <!-- User Profile -->
112
+ <div class="p-4 border-t border-indigo-800">
113
+ <div class="flex items-center space-x-3">
114
+ <div class="w-10 h-10 rounded-full bg-indigo-700 flex items-center justify-center">
115
+ <i class="fas fa-user"></i>
116
+ </div>
117
+ <div class="flex-1">
118
+ <div class="font-medium">John Doe</div>
119
+ <div class="text-xs text-indigo-400">Online</div>
120
+ </div>
121
+ <a href="#" class="text-indigo-400 hover:text-white">
122
+ <i class="fas fa-cog"></i>
123
+ </a>
124
+ </div>
125
+ </div>
126
+ </div>
127
+
128
+ <!-- Main Content -->
129
+ <div class="flex-1 flex flex-col overflow-hidden">
130
+ <!-- Top Bar -->
131
+ <header class="bg-white shadow-sm p-4 flex items-center justify-between">
132
+ <div class="flex items-center space-x-4">
133
+ <button id="mobile-sidebar-toggle" class="md:hidden text-gray-600">
134
+ <i class="fas fa-bars"></i>
135
+ </button>
136
+ <h1 class="text-xl font-semibold text-gray-800">AI Companion</h1>
137
+ </div>
138
+ <div class="flex items-center space-x-4">
139
+ <div class="relative">
140
+ <button class="p-2 rounded-full hover:bg-gray-100">
141
+ <i class="fas fa-bell text-gray-600"></i>
142
+ <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
143
+ </button>
144
+ </div>
145
+ <div class="relative">
146
+ <button class="p-2 rounded-full hover:bg-gray-100">
147
+ <i class="fas fa-question-circle text-gray-600"></i>
148
+ </button>
149
+ </div>
150
+ </div>
151
+ </header>
152
+
153
+ <!-- Chat Area -->
154
+ <div class="flex-1 overflow-hidden flex flex-col bg-white">
155
+ <!-- Chat Header -->
156
+ <div class="border-b p-4 flex items-center justify-between">
157
+ <div class="flex items-center space-x-3">
158
+ <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center">
159
+ <i class="fas fa-robot text-indigo-600"></i>
160
+ </div>
161
+ <div>
162
+ <div class="font-medium">Nexus AI</div>
163
+ <div class="text-xs text-gray-500">Active now</div>
164
+ </div>
165
+ </div>
166
+ <div class="flex space-x-2">
167
+ <button class="p-2 rounded-full hover:bg-gray-100">
168
+ <i class="fas fa-phone text-gray-600"></i>
169
+ </button>
170
+ <button class="p-2 rounded-full hover:bg-gray-100">
171
+ <i class="fas fa-video text-gray-600"></i>
172
+ </button>
173
+ <button class="p-2 rounded-full hover:bg-gray-100">
174
+ <i class="fas fa-ellipsis-h text-gray-600"></i>
175
+ </button>
176
+ </div>
177
+ </div>
178
+
179
+ <!-- Messages -->
180
+ <div id="chat-messages" class="flex-1 overflow-y-auto p-4 space-y-4 chat-container">
181
+ <!-- Date divider -->
182
+ <div class="flex items-center justify-center my-4">
183
+ <div class="text-xs text-gray-500 bg-gray-100 px-3 py-1 rounded-full">
184
+ Today, June 15
185
+ </div>
186
+ </div>
187
+
188
+ <!-- AI Message -->
189
+ <div class="flex space-x-3">
190
+ <div class="flex-shrink-0">
191
+ <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
192
+ <i class="fas fa-robot text-indigo-600 text-sm"></i>
193
+ </div>
194
+ </div>
195
+ <div class="max-w-[70%]">
196
+ <div class="bg-indigo-50 rounded-lg p-3">
197
+ <p>Hello! I'm your Nexus AI Companion. I'm here to help you manage tasks, resources, and optimize your digital experience. How can I assist you today?</p>
198
+ </div>
199
+ <div class="text-xs text-gray-500 mt-1">10:24 AM</div>
200
+ </div>
201
+ </div>
202
+
203
+ <!-- User Message -->
204
+ <div class="flex space-x-3 justify-end">
205
+ <div class="max-w-[70%]">
206
+ <div class="bg-indigo-100 rounded-lg p-3">
207
+ <p>Can you show me my current system resources?</p>
208
+ </div>
209
+ <div class="text-xs text-gray-500 mt-1 text-right">10:25 AM</div>
210
+ </div>
211
+ <div class="flex-shrink-0">
212
+ <div class="w-8 h-8 rounded-full bg-indigo-600 flex items-center justify-center">
213
+ <i class="fas fa-user text-white text-sm"></i>
214
+ </div>
215
+ </div>
216
+ </div>
217
+
218
+ <!-- AI Message with System Info -->
219
+ <div class="flex space-x-3">
220
+ <div class="flex-shrink-0">
221
+ <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
222
+ <i class="fas fa-robot text-indigo-600 text-sm"></i>
223
+ </div>
224
+ </div>
225
+ <div class="max-w-[70%]">
226
+ <div class="bg-indigo-50 rounded-lg p-3">
227
+ <p>Here's your current system status:</p>
228
+ <div class="mt-2 space-y-2">
229
+ <div class="flex items-center justify-between text-sm">
230
+ <span>CPU Usage</span>
231
+ <div class="w-32 bg-gray-200 rounded-full h-2">
232
+ <div class="bg-green-500 h-2 rounded-full" style="width: 45%"></div>
233
+ </div>
234
+ <span>45%</span>
235
+ </div>
236
+ <div class="flex items-center justify-between text-sm">
237
+ <span>Memory</span>
238
+ <div class="w-32 bg-gray-200 rounded-full h-2">
239
+ <div class="bg-blue-500 h-2 rounded-full" style="width: 68%"></div>
240
+ </div>
241
+ <span>68%</span>
242
+ </div>
243
+ <div class="flex items-center justify-between text-sm">
244
+ <span>Storage</span>
245
+ <div class="w-32 bg-gray-200 rounded-full h-2">
246
+ <div class="bg-purple-500 h-2 rounded-full" style="width: 32%"></div>
247
+ </div>
248
+ <span>32%</span>
249
+ </div>
250
+ </div>
251
+ <p class="mt-2">Would you like me to optimize anything?</p>
252
+ </div>
253
+ <div class="text-xs text-gray-500 mt-1">10:26 AM</div>
254
+ </div>
255
+ </div>
256
+
257
+ <!-- AI Typing Indicator -->
258
+ <div class="flex space-x-3 hidden" id="typing-indicator">
259
+ <div class="flex-shrink-0">
260
+ <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
261
+ <i class="fas fa-robot text-indigo-600 text-sm"></i>
262
+ </div>
263
+ </div>
264
+ <div class="max-w-[70%]">
265
+ <div class="bg-indigo-50 rounded-lg p-3">
266
+ <div class="typing-indicator">
267
+ <div class="typing-dot"></div>
268
+ <div class="typing-dot"></div>
269
+ <div class="typing-dot"></div>
270
+ </div>
271
+ </div>
272
+ </div>
273
+ </div>
274
+ </div>
275
+
276
+ <!-- Input Area -->
277
+ <div class="border-t p-4 bg-white">
278
+ <div class="flex items-center space-x-2">
279
+ <button class="p-2 rounded-full hover:bg-gray-100">
280
+ <i class="fas fa-plus text-gray-600"></i>
281
+ </button>
282
+ <div class="flex-1 relative">
283
+ <input
284
+ id="message-input"
285
+ type="text"
286
+ placeholder="Type a message..."
287
+ class="w-full border rounded-full py-2 px-4 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent"
288
+ >
289
+ <button class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 hover:text-indigo-600">
290
+ <i class="far fa-smile"></i>
291
+ </button>
292
+ </div>
293
+ <button id="send-button" class="p-2 rounded-full bg-indigo-600 text-white hover:bg-indigo-700">
294
+ <i class="fas fa-paper-plane"></i>
295
+ </button>
296
+ </div>
297
+ <div class="mt-2 flex justify-between text-xs text-gray-500">
298
+ <div>
299
+ <button class="hover:text-indigo-600 flex items-center">
300
+ <i class="fas fa-magic mr-1"></i> AI Tools
301
+ </button>
302
+ </div>
303
+ <div class="flex space-x-4">
304
+ <button class="hover:text-indigo-600">
305
+ <i class="fas fa-microphone"></i>
306
+ </button>
307
+ <button class="hover:text-indigo-600">
308
+ <i class="fas fa-image"></i>
309
+ </button>
310
+ <button class="hover:text-indigo-600">
311
+ <i class="fas fa-paperclip"></i>
312
+ </button>
313
+ </div>
314
+ </div>
315
+ </div>
316
+ </div>
317
+ </div>
318
+
319
+ <!-- Right Panel (Tasks/System) -->
320
+ <div class="w-80 border-l bg-white hidden lg:flex flex-col">
321
+ <div class="border-b p-4">
322
+ <div class="flex items-center justify-between">
323
+ <h2 class="font-semibold">System Dashboard</h2>
324
+ <button class="text-gray-500 hover:text-gray-700">
325
+ <i class="fas fa-ellipsis-h"></i>
326
+ </button>
327
+ </div>
328
+ </div>
329
+
330
+ <div class="flex-1 overflow-y-auto p-4 space-y-6">
331
+ <!-- Quick Actions -->
332
+ <div>
333
+ <h3 class="text-sm font-medium text-gray-500 mb-2">Quick Actions</h3>
334
+ <div class="grid grid-cols-2 gap-2">
335
+ <button class="p-3 bg-gray-100 rounded-lg hover:bg-gray-200 flex flex-col items-center">
336
+ <i class="fas fa-magic text-indigo-600 mb-1"></i>
337
+ <span class="text-xs">Optimize</span>
338
+ </button>
339
+ <button class="p-3 bg-gray-100 rounded-lg hover:bg-gray-200 flex flex-col items-center">
340
+ <i class="fas fa-shield-alt text-green-600 mb-1"></i>
341
+ <span class="text-xs">Security</span>
342
+ </button>
343
+ <button class="p-3 bg-gray-100 rounded-lg hover:bg-gray-200 flex flex-col items-center">
344
+ <i class="fas fa-broom text-blue-600 mb-1"></i>
345
+ <span class="text-xs">Cleanup</span>
346
+ </button>
347
+ <button class="p-3 bg-gray-100 rounded-lg hover:bg-gray-200 flex flex-col items-center">
348
+ <i class="fas fa-power-off text-red-600 mb-1"></i>
349
+ <span class="text-xs">Shutdown</span>
350
+ </button>
351
+ </div>
352
+ </div>
353
+
354
+ <!-- System Stats -->
355
+ <div>
356
+ <h3 class="text-sm font-medium text-gray-500 mb-2">System Health</h3>
357
+ <div class="space-y-3">
358
+ <div>
359
+ <div class="flex justify-between text-sm mb-1">
360
+ <span>CPU</span>
361
+ <span>45%</span>
362
+ </div>
363
+ <div class="w-full bg-gray-200 rounded-full h-2">
364
+ <div class="bg-green-500 h-2 rounded-full" style="width: 45%"></div>
365
+ </div>
366
+ </div>
367
+ <div>
368
+ <div class="flex justify-between text-sm mb-1">
369
+ <span>Memory</span>
370
+ <span>6.8/16GB</span>
371
+ </div>
372
+ <div class="w-full bg-gray-200 rounded-full h-2">
373
+ <div class="bg-blue-500 h-2 rounded-full" style="width: 68%"></div>
374
+ </div>
375
+ </div>
376
+ <div>
377
+ <div class="flex justify-between text-sm mb-1">
378
+ <span>Storage</span>
379
+ <span>256GB/1TB</span>
380
+ </div>
381
+ <div class="w-full bg-gray-200 rounded-full h-2">
382
+ <div class="bg-purple-500 h-2 rounded-full" style="width: 32%"></div>
383
+ </div>
384
+ </div>
385
+ </div>
386
+ </div>
387
+
388
+ <!-- Running Processes -->
389
+ <div>
390
+ <h3 class="text-sm font-medium text-gray-500 mb-2">Top Processes</h3>
391
+ <div class="space-y-2">
392
+ <div class="flex items-center justify-between text-sm">
393
+ <span class="truncate">Chrome</span>
394
+ <span class="text-gray-500">24%</span>
395
+ </div>
396
+ <div class="flex items-center justify-between text-sm">
397
+ <span class="truncate">VS Code</span>
398
+ <span class="text-gray-500">18%</span>
399
+ </div>
400
+ <div class="flex items-center justify-between text-sm">
401
+ <span class="truncate">Spotify</span>
402
+ <span class="text-gray-500">12%</span>
403
+ </div>
404
+ <div class="flex items-center justify-between text-sm">
405
+ <span class="truncate">Node.js</span>
406
+ <span class="text-gray-500">9%</span>
407
+ </div>
408
+ </div>
409
+ </div>
410
+
411
+ <!-- Pending Tasks -->
412
+ <div>
413
+ <h3 class="text-sm font-medium text-gray-500 mb-2">Pending Tasks</h3>
414
+ <div class="space-y-2">
415
+ <div class="flex items-start space-x-2">
416
+ <input type="checkbox" class="mt-1">
417
+ <div>
418
+ <div class="text-sm">Complete project proposal</div>
419
+ <div class="text-xs text-gray-500">Today, 3:00 PM</div>
420
+ </div>
421
+ </div>
422
+ <div class="flex items-start space-x-2">
423
+ <input type="checkbox" class="mt-1">
424
+ <div>
425
+ <div class="text-sm">Backup important files</div>
426
+ <div class="text-xs text-gray-500">Tomorrow</div>
427
+ </div>
428
+ </div>
429
+ </div>
430
+ </div>
431
+ </div>
432
+ </div>
433
+ </div>
434
+
435
+ <script>
436
+ // Toggle sidebar on mobile
437
+ const sidebar = document.getElementById('sidebar');
438
+ const sidebarToggle = document.getElementById('sidebar-toggle');
439
+ const mobileSidebarToggle = document.getElementById('mobile-sidebar-toggle');
440
+
441
+ mobileSidebarToggle.addEventListener('click', () => {
442
+ sidebar.classList.toggle('sidebar-open');
443
+ });
444
+
445
+ sidebarToggle.addEventListener('click', () => {
446
+ sidebar.classList.toggle('sidebar-open');
447
+ });
448
+
449
+ // Chat functionality
450
+ const messageInput = document.getElementById('message-input');
451
+ const sendButton = document.getElementById('send-button');
452
+ const chatMessages = document.getElementById('chat-messages');
453
+ const typingIndicator = document.getElementById('typing-indicator');
454
+
455
+ function sendMessage() {
456
+ const message = messageInput.value.trim();
457
+ if (message) {
458
+ // Add user message
459
+ const userMessage = document.createElement('div');
460
+ userMessage.className = 'flex space-x-3 justify-end';
461
+ userMessage.innerHTML = `
462
+ <div class="max-w-[70%]">
463
+ <div class="bg-indigo-100 rounded-lg p-3">
464
+ <p>${message}</p>
465
+ </div>
466
+ <div class="text-xs text-gray-500 mt-1 text-right">${new Date().toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'})}</div>
467
+ </div>
468
+ <div class="flex-shrink-0">
469
+ <div class="w-8 h-8 rounded-full bg-indigo-600 flex items-center justify-center">
470
+ <i class="fas fa-user text-white text-sm"></i>
471
+ </div>
472
+ </div>
473
+ `;
474
+ chatMessages.appendChild(userMessage);
475
+
476
+ // Clear input
477
+ messageInput.value = '';
478
+
479
+ // Show typing indicator
480
+ typingIndicator.classList.remove('hidden');
481
+ chatMessages.scrollTop = chatMessages.scrollHeight;
482
+
483
+ // Simulate AI response after delay
484
+ setTimeout(() => {
485
+ typingIndicator.classList.add('hidden');
486
+
487
+ // Add AI response
488
+ const aiResponses = [
489
+ "I've processed your request. Is there anything else you'd like me to help with?",
490
+ "Understood. I can assist with that. Would you like me to take any specific action?",
491
+ "I've noted that information. How would you like to proceed?",
492
+ "That's an interesting point. Here's what I can suggest based on that...",
493
+ "I can help optimize that for you. Would you like me to proceed?"
494
+ ];
495
+
496
+ const randomResponse = aiResponses[Math.floor(Math.random() * aiResponses.length)];
497
+
498
+ const aiMessage = document.createElement('div');
499
+ aiMessage.className = 'flex space-x-3';
500
+ aiMessage.innerHTML = `
501
+ <div class="flex-shrink-0">
502
+ <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
503
+ <i class="fas fa-robot text-indigo-600 text-sm"></i>
504
+ </div>
505
+ </div>
506
+ <div class="max-w-[70%]">
507
+ <div class="bg-indigo-50 rounded-lg p-3">
508
+ <p>${randomResponse}</p>
509
+ </div>
510
+ <div class="text-xs text-gray-500 mt-1">${new Date().toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'})}</div>
511
+ </div>
512
+ `;
513
+ chatMessages.appendChild(aiMessage);
514
+ chatMessages.scrollTop = chatMessages.scrollHeight;
515
+ }, 1500);
516
+ }
517
+ }
518
+
519
+ // Send message on button click
520
+ sendButton.addEventListener('click', sendMessage);
521
+
522
+ // Send message on Enter key
523
+ messageInput.addEventListener('keypress', (e) => {
524
+ if (e.key === 'Enter') {
525
+ sendMessage();
526
+ }
527
+ });
528
+ </script>
529
+ <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=edwarddddr/my-ai-companion" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
530
+ </html>