bobiqritikol commited on
Commit
79d370a
·
verified ·
1 Parent(s): 13e891f

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +501 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Myspace
3
- emoji:
4
- colorFrom: blue
5
- colorTo: gray
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: myspace
3
+ emoji: 🐳
4
+ colorFrom: green
5
+ colorTo: green
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,501 @@
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>Chege SMS - AI Powered Messaging</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
+ .animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
15
+ .chat-container {
16
+ height: calc(100vh - 180px);
17
+ }
18
+ .message-transition {
19
+ transition: all 0.3s ease;
20
+ }
21
+ .typing-indicator span {
22
+ display: inline-block;
23
+ width: 8px;
24
+ height: 8px;
25
+ border-radius: 50%;
26
+ background-color: #4b5563;
27
+ margin: 0 2px;
28
+ }
29
+ .typing-indicator span:nth-child(1) {
30
+ animation: bounce 1s infinite;
31
+ }
32
+ .typing-indicator span:nth-child(2) {
33
+ animation: bounce 1s infinite 0.2s;
34
+ }
35
+ .typing-indicator span:nth-child(3) {
36
+ animation: bounce 1s infinite 0.4s;
37
+ }
38
+ @keyframes bounce {
39
+ 0%, 100% { transform: translateY(0); }
40
+ 50% { transform: translateY(-5px); }
41
+ }
42
+ .slide-in {
43
+ animation: slideIn 0.3s forwards;
44
+ }
45
+ @keyframes slideIn {
46
+ from { transform: translateY(20px); opacity: 0; }
47
+ to { transform: translateY(0); opacity: 1; }
48
+ }
49
+ .android-status-bar {
50
+ height: 24px;
51
+ background: #075e54;
52
+ }
53
+ .android-nav-bar {
54
+ height: 48px;
55
+ background: #f5f5f5;
56
+ }
57
+ .logo-gradient {
58
+ background: linear-gradient(135deg, #25D366, #128C7E);
59
+ }
60
+ .message-bubble {
61
+ max-width: 80%;
62
+ }
63
+ .mpesa-bg {
64
+ background-color: #00A859;
65
+ }
66
+ </style>
67
+ </head>
68
+ <body class="bg-gray-100 font-sans">
69
+ <!-- Android Device Frame -->
70
+ <div class="max-w-md mx-auto bg-white shadow-lg rounded-t-3xl overflow-hidden" style="height: 100vh;">
71
+ <!-- Android Status Bar -->
72
+ <div class="android-status-bar flex items-center justify-between px-4 text-white text-xs">
73
+ <span>12:30</span>
74
+ <div class="flex space-x-2">
75
+ <i class="fas fa-signal"></i>
76
+ <i class="fas fa-wifi"></i>
77
+ <i class="fas fa-battery-full"></i>
78
+ </div>
79
+ </div>
80
+
81
+ <!-- App Header -->
82
+ <div class="bg-green-600 text-white p-3 flex items-center">
83
+ <div class="w-10 h-10 rounded-full logo-gradient flex items-center justify-center text-white font-bold">
84
+ CS
85
+ </div>
86
+ <div class="ml-3">
87
+ <h1 class="font-bold">Chege SMS</h1>
88
+ <p class="text-xs">AI Powered Messaging</p>
89
+ </div>
90
+ <div class="ml-auto flex space-x-4">
91
+ <button class="text-white">
92
+ <i class="fas fa-search"></i>
93
+ </button>
94
+ <button class="text-white">
95
+ <i class="fas fa-ellipsis-vertical"></i>
96
+ </button>
97
+ </div>
98
+ </div>
99
+
100
+ <!-- Tab Navigation -->
101
+ <div class="flex border-b">
102
+ <button class="flex-1 py-3 text-center font-medium text-green-600 border-b-2 border-green-600">
103
+ <i class="fas fa-comment-dots mr-1"></i> Chats
104
+ </button>
105
+ <button class="flex-1 py-3 text-center font-medium text-gray-500">
106
+ <i class="fas fa-money-bill-transfer mr-1"></i> M-Pesa
107
+ </button>
108
+ <button class="flex-1 py-3 text-center font-medium text-gray-500">
109
+ <i class="fas fa-robot mr-1"></i> AI Tools
110
+ </button>
111
+ </div>
112
+
113
+ <!-- Chat List -->
114
+ <div class="overflow-y-auto" style="height: calc(100vh - 180px);">
115
+ <!-- AI Assistant Chat -->
116
+ <div class="p-3 border-b flex items-center bg-gray-50">
117
+ <div class="w-12 h-12 rounded-full logo-gradient flex items-center justify-center text-white">
118
+ <i class="fas fa-robot"></i>
119
+ </div>
120
+ <div class="ml-3 flex-1">
121
+ <div class="flex justify-between">
122
+ <h2 class="font-medium">AI Assistant</h2>
123
+ <span class="text-xs text-gray-500">2 min</span>
124
+ </div>
125
+ <p class="text-sm text-gray-500 truncate">Ready to analyze your messages and M-Pesa transactions</p>
126
+ </div>
127
+ </div>
128
+
129
+ <!-- M-Pesa Chat -->
130
+ <div class="p-3 border-b flex items-center">
131
+ <div class="w-12 h-12 rounded-full mpesa-bg flex items-center justify-center text-white">
132
+ <i class="fas fa-money-bill-wave"></i>
133
+ </div>
134
+ <div class="ml-3 flex-1">
135
+ <div class="flex justify-between">
136
+ <h2 class="font-medium">M-Pesa</h2>
137
+ <span class="text-xs text-gray-500">10 min</span>
138
+ </div>
139
+ <p class="text-sm text-gray-500 truncate">KSh 1,200 sent to John Chege</p>
140
+ </div>
141
+ </div>
142
+
143
+ <!-- Regular Chat -->
144
+ <div class="p-3 border-b flex items-center">
145
+ <div class="w-12 h-12 rounded-full bg-blue-500 flex items-center justify-center text-white">
146
+ JC
147
+ </div>
148
+ <div class="ml-3 flex-1">
149
+ <div class="flex justify-between">
150
+ <h2 class="font-medium">John Chege</h2>
151
+ <span class="text-xs text-gray-500">1 hr</span>
152
+ </div>
153
+ <p class="text-sm text-gray-500 truncate">Thanks for the money, I'll pay back on Friday</p>
154
+ </div>
155
+ </div>
156
+
157
+ <!-- Group Chat -->
158
+ <div class="p-3 border-b flex items-center">
159
+ <div class="w-12 h-12 rounded-full bg-purple-500 flex items-center justify-center text-white">
160
+ <i class="fas fa-users"></i>
161
+ </div>
162
+ <div class="ml-3 flex-1">
163
+ <div class="flex justify-between">
164
+ <h2 class="font-medium">Family Group</h2>
165
+ <span class="text-xs text-gray-500">3 hr</span>
166
+ </div>
167
+ <p class="text-sm text-gray-500 truncate">Mom: Send money for groceries</p>
168
+ </div>
169
+ </div>
170
+ </div>
171
+
172
+ <!-- Bottom Navigation -->
173
+ <div class="android-nav-bar flex items-center justify-around border-t">
174
+ <button class="text-green-600">
175
+ <i class="fas fa-comment-dots text-xl"></i>
176
+ </button>
177
+ <button class="text-gray-500">
178
+ <i class="fas fa-money-bill-transfer text-xl"></i>
179
+ </button>
180
+ <button class="text-gray-500">
181
+ <i class="fas fa-robot text-xl"></i>
182
+ </button>
183
+ <button class="text-gray-500">
184
+ <i class="fas fa-chart-line text-xl"></i>
185
+ </button>
186
+ <button class="text-gray-500">
187
+ <i class="fas fa-cog text-xl"></i>
188
+ </button>
189
+ </div>
190
+ </div>
191
+
192
+ <!-- Chat Screen (Hidden by default) -->
193
+ <div id="chatScreen" class="fixed inset-0 bg-white hidden">
194
+ <!-- Chat Header -->
195
+ <div class="android-status-bar flex items-center justify-between px-4 text-white text-xs">
196
+ <span>12:30</span>
197
+ <div class="flex space-x-2">
198
+ <i class="fas fa-signal"></i>
199
+ <i class="fas fa-wifi"></i>
200
+ <i class="fas fa-battery-full"></i>
201
+ </div>
202
+ </div>
203
+
204
+ <div class="bg-green-600 text-white p-3 flex items-center">
205
+ <button onclick="hideChatScreen()" class="mr-2">
206
+ <i class="fas fa-arrow-left"></i>
207
+ </button>
208
+ <div class="w-10 h-10 rounded-full logo-gradient flex items-center justify-center text-white">
209
+ <i class="fas fa-robot"></i>
210
+ </div>
211
+ <div class="ml-3">
212
+ <h1 class="font-bold">AI Assistant</h1>
213
+ <p class="text-xs">Analyzing your messages...</p>
214
+ </div>
215
+ <div class="ml-auto flex space-x-4">
216
+ <button class="text-white">
217
+ <i class="fas fa-phone-alt"></i>
218
+ </button>
219
+ <button class="text-white">
220
+ <i class="fas fa-ellipsis-vertical"></i>
221
+ </button>
222
+ </div>
223
+ </div>
224
+
225
+ <!-- Chat Messages -->
226
+ <div class="overflow-y-auto p-4 bg-gray-100" style="height: calc(100vh - 180px);">
227
+ <!-- AI Introduction -->
228
+ <div class="flex mb-4 slide-in">
229
+ <div class="w-10 h-10 rounded-full logo-gradient flex items-center justify-center text-white">
230
+ <i class="fas fa-robot"></i>
231
+ </div>
232
+ <div class="ml-3 message-bubble">
233
+ <div class="bg-white p-3 rounded-lg shadow-sm">
234
+ <p class="text-gray-800">Hello! I'm your Chege SMS AI assistant. I can:</p>
235
+ <ul class="list-disc pl-5 mt-2 space-y-1">
236
+ <li>Analyze & summarize your messages</li>
237
+ <li>Track M-Pesa transactions</li>
238
+ <li>Learn your texting style</li>
239
+ <li>Help manage your finances</li>
240
+ </ul>
241
+ </div>
242
+ <p class="text-xs text-gray-500 mt-1">2:45 PM</p>
243
+ </div>
244
+ </div>
245
+
246
+ <!-- User Message -->
247
+ <div class="flex justify-end mb-4 slide-in">
248
+ <div class="message-bubble">
249
+ <div class="bg-green-500 text-white p-3 rounded-lg shadow-sm">
250
+ <p>Can you check my M-Pesa balance and last transactions?</p>
251
+ </div>
252
+ <p class="text-xs text-gray-500 mt-1 text-right">2:46 PM</p>
253
+ </div>
254
+ </div>
255
+
256
+ <!-- AI Response -->
257
+ <div class="flex mb-4 slide-in">
258
+ <div class="w-10 h-10 rounded-full logo-gradient flex items-center justify-center text-white">
259
+ <i class="fas fa-robot"></i>
260
+ </div>
261
+ <div class="ml-3 message-bubble">
262
+ <div class="bg-white p-3 rounded-lg shadow-sm">
263
+ <p class="text-gray-800">Here's your M-Pesa summary:</p>
264
+ <div class="mt-2 bg-gray-50 p-2 rounded">
265
+ <div class="flex justify-between py-1">
266
+ <span class="font-medium">Current Balance:</span>
267
+ <span class="font-bold">KSh 5,430</span>
268
+ </div>
269
+ <div class="border-t my-1"></div>
270
+ <div class="text-sm">
271
+ <div class="flex justify-between py-1">
272
+ <span>- Sent to John Chege</span>
273
+ <span class="text-red-500">KSh 1,200</span>
274
+ </div>
275
+ <div class="flex justify-between py-1">
276
+ <span>- Received from Safaricom</span>
277
+ <span class="text-green-500">KSh 500</span>
278
+ </div>
279
+ <div class="flex justify-between py-1">
280
+ <span>- Lipa na M-Pesa</span>
281
+ <span class="text-red-500">KSh 350</span>
282
+ </div>
283
+ </div>
284
+ </div>
285
+ <button class="mt-3 text-sm text-green-600 font-medium hover:underline">
286
+ <i class="fas fa-chart-pie mr-1"></i> View spending analytics
287
+ </button>
288
+ </div>
289
+ <p class="text-xs text-gray-500 mt-1">2:47 PM</p>
290
+ </div>
291
+ </div>
292
+
293
+ <!-- AI Analyzing Indicator -->
294
+ <div class="flex mb-4" id="typingIndicator">
295
+ <div class="w-10 h-10 rounded-full logo-gradient flex items-center justify-center text-white">
296
+ <i class="fas fa-robot"></i>
297
+ </div>
298
+ <div class="ml-3 message-bubble">
299
+ <div class="bg-white p-3 rounded-lg shadow-sm">
300
+ <div class="typing-indicator flex">
301
+ <span></span>
302
+ <span></span>
303
+ <span></span>
304
+ </div>
305
+ </div>
306
+ </div>
307
+ </div>
308
+ </div>
309
+
310
+ <!-- Message Input -->
311
+ <div class="bg-white border-t p-3">
312
+ <div class="flex items-center">
313
+ <button class="text-gray-500 mx-2">
314
+ <i class="fas fa-plus-circle text-xl"></i>
315
+ </button>
316
+ <div class="flex-1 bg-gray-100 rounded-full px-4 py-2 flex items-center">
317
+ <input type="text" placeholder="Type a message..." class="bg-transparent w-full focus:outline-none">
318
+ <button class="text-gray-500 ml-2">
319
+ <i class="far fa-smile"></i>
320
+ </button>
321
+ </div>
322
+ <button class="ml-2 w-10 h-10 rounded-full logo-gradient text-white flex items-center justify-center">
323
+ <i class="fas fa-microphone"></i>
324
+ </button>
325
+ </div>
326
+ </div>
327
+ </div>
328
+
329
+ <!-- M-Pesa Screen (Hidden by default) -->
330
+ <div id="mpesaScreen" class="fixed inset-0 bg-white hidden">
331
+ <!-- M-Pesa Header -->
332
+ <div class="android-status-bar flex items-center justify-between px-4 text-white text-xs">
333
+ <span>12:30</span>
334
+ <div class="flex space-x-2">
335
+ <i class="fas fa-signal"></i>
336
+ <i class="fas fa-wifi"></i>
337
+ <i class="fas fa-battery-full"></i>
338
+ </div>
339
+ </div>
340
+
341
+ <div class="mpesa-bg text-white p-3 flex items-center">
342
+ <button onclick="hideMpesaScreen()" class="mr-2">
343
+ <i class="fas fa-arrow-left"></i>
344
+ </button>
345
+ <div class="ml-3">
346
+ <h1 class="font-bold">M-Pesa Manager</h1>
347
+ <p class="text-xs">AI-powered financial tracking</p>
348
+ </div>
349
+ </div>
350
+
351
+ <!-- M-Pesa Content -->
352
+ <div class="p-4 overflow-y-auto" style="height: calc(100vh - 180px);">
353
+ <!-- Balance Card -->
354
+ <div class="bg-white rounded-lg shadow-sm p-4 mb-4">
355
+ <div class="flex justify-between items-center">
356
+ <div>
357
+ <p class="text-gray-500 text-sm">Available Balance</p>
358
+ <p class="text-2xl font-bold">KSh 5,430</p>
359
+ </div>
360
+ <div class="w-12 h-12 rounded-full mpesa-bg flex items-center justify-center text-white">
361
+ <i class="fas fa-wallet"></i>
362
+ </div>
363
+ </div>
364
+ <div class="flex justify-between mt-4">
365
+ <button class="flex-1 bg-green-100 text-green-800 py-2 rounded-l-lg">
366
+ <i class="fas fa-money-bill-wave mr-1"></i> Send
367
+ </button>
368
+ <button class="flex-1 bg-green-100 text-green-800 py-2 border-l border-r border-green-200">
369
+ <i class="fas fa-money-bill-transfer mr-1"></i> Withdraw
370
+ </button>
371
+ <button class="flex-1 bg-green-100 text-green-800 py-2 rounded-r-lg">
372
+ <i class="fas fa-bolt mr-1"></i> Pay
373
+ </button>
374
+ </div>
375
+ </div>
376
+
377
+ <!-- Recent Transactions -->
378
+ <div class="mb-4">
379
+ <h2 class="font-medium mb-2 flex justify-between items-center">
380
+ <span>Recent Transactions</span>
381
+ <button class="text-green-600 text-sm">See All</button>
382
+ </h2>
383
+ <div class="bg-white rounded-lg shadow-sm overflow-hidden">
384
+ <!-- Transaction 1 -->
385
+ <div class="p-3 border-b flex items-center">
386
+ <div class="w-10 h-10 rounded-full bg-red-100 text-red-600 flex items-center justify-center">
387
+ <i class="fas fa-arrow-up"></i>
388
+ </div>
389
+ <div class="ml-3 flex-1">
390
+ <div class="flex justify-between">
391
+ <p class="font-medium">Sent to John Chege</p>
392
+ <p class="text-red-500">-KSh 1,200</p>
393
+ </div>
394
+ <p class="text-xs text-gray-500">Today, 10:45 AM</p>
395
+ </div>
396
+ </div>
397
+
398
+ <!-- Transaction 2 -->
399
+ <div class="p-3 border-b flex items-center">
400
+ <div class="w-10 h-10 rounded-full bg-green-100 text-green-600 flex items-center justify-center">
401
+ <i class="fas fa-arrow-down"></i>
402
+ </div>
403
+ <div class="ml-3 flex-1">
404
+ <div class="flex justify-between">
405
+ <p class="font-medium">Received from Safaricom</p>
406
+ <p class="text-green-500">+KSh 500</p>
407
+ </div>
408
+ <p class="text-xs text-gray-500">Today, 9:30 AM</p>
409
+ </div>
410
+ </div>
411
+
412
+ <!-- Transaction 3 -->
413
+ <div class="p-3 flex items-center">
414
+ <div class="w-10 h-10 rounded-full bg-red-100 text-red-600 flex items-center justify-center">
415
+ <i class="fas fa-shopping-bag"></i>
416
+ </div>
417
+ <div class="ml-3 flex-1">
418
+ <div class="flex justify-between">
419
+ <p class="font-medium">Lipa na M-Pesa</p>
420
+ <p class="text-red-500">-KSh 350</p>
421
+ </div>
422
+ <p class="text-xs text-gray-500">Yesterday, 5:15 PM</p>
423
+ </div>
424
+ </div>
425
+ </div>
426
+ </div>
427
+
428
+ <!-- AI Spending Analysis -->
429
+ <div class="bg-white rounded-lg shadow-sm p-4">
430
+ <h2 class="font-medium mb-3 flex items-center">
431
+ <i class="fas fa-robot text-green-600 mr-2"></i> AI Spending Analysis
432
+ </h2>
433
+ <div class="mb-3">
434
+ <div class="flex justify-between text-sm mb-1">
435
+ <span>This Month's Spending</span>
436
+ <span class="font-medium">KSh 12,450</span>
437
+ </div>
438
+ <div class="h-2 bg-gray-200 rounded-full overflow-hidden">
439
+ <div class="h-full bg-red-500 rounded-full" style="width: 70%"></div>
440
+ </div>
441
+ <p class="text-xs text-gray-500 mt-1">15% higher than last month</p>
442
+ </div>
443
+
444
+ <div class="mb-3">
445
+ <p class="text-sm font-medium mb-1">Top Categories</p>
446
+ <div class="flex space-x-2 overflow-x-auto pb-2">
447
+ <div class="bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-xs whitespace-nowrap">
448
+ <i class="fas fa-utensils mr-1"></i> Food KSh 4,200
449
+ </div>
450
+ <div class="bg-purple-100 text-purple-800 px-3 py-1 rounded-full text-xs whitespace-nowrap">
451
+ <i class="fas fa-bus mr-1"></i> Transport KSh 3,100
452
+ </div>
453
+ <div class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-xs whitespace-nowrap">
454
+ <i class="fas fa-gift mr-1"></i> Gifts KSh 2,500
455
+ </div>
456
+ </div>
457
+ </div>
458
+
459
+ <button class="w-full mt-2 py-2 bg-green-600 text-white rounded-lg font-medium">
460
+ <i class="fas fa-lightbulb mr-1"></i> Get Savings Tips
461
+ </button>
462
+ </div>
463
+ </div>
464
+ </div>
465
+
466
+ <script>
467
+ // Show chat screen when clicking on AI Assistant chat
468
+ document.querySelectorAll('.p-3.border-b').forEach(chat => {
469
+ chat.addEventListener('click', function() {
470
+ if (this.querySelector('h2').textContent.includes('AI Assistant')) {
471
+ document.getElementById('chatScreen').classList.remove('hidden');
472
+ } else if (this.querySelector('h2').textContent.includes('M-Pesa')) {
473
+ document.getElementById('mpesaScreen').classList.remove('hidden');
474
+ }
475
+ });
476
+ });
477
+
478
+ // Hide chat screen
479
+ function hideChatScreen() {
480
+ document.getElementById('chatScreen').classList.add('hidden');
481
+ }
482
+
483
+ // Hide M-Pesa screen
484
+ function hideMpesaScreen() {
485
+ document.getElementById('mpesaScreen').classList.add('hidden');
486
+ }
487
+
488
+ // Simulate sending a message
489
+ function sendMessage() {
490
+ // In a real app, this would send to OpenAI API
491
+ console.log("Message sent to OpenAI API");
492
+ }
493
+
494
+ // Initialize the app
495
+ document.addEventListener('DOMContentLoaded', function() {
496
+ // Hide typing indicator initially
497
+ document.getElementById('typingIndicator').style.display = 'none';
498
+ });
499
+ </script>
500
+ <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=bobiqritikol/myspace" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
501
+ </html>