toppshutter commited on
Commit
7ffa99c
·
verified ·
1 Parent(s): a971072

Add 2 files

Browse files
Files changed (2) hide show
  1. index.html +310 -421
  2. prompts.txt +10 -1
index.html CHANGED
@@ -3,466 +3,355 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>BroTalk - Men's Mental Health Support</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
- /* Custom CSS for Android-like feel */
11
- .android-header {
12
- height: 56px;
13
- box-shadow: 0 2px 4px rgba(0,0,0,0.1);
14
  }
15
- .message-bubble {
16
- max-width: 75%;
17
- border-radius: 18px;
18
- padding: 12px 16px;
19
- margin-bottom: 8px;
 
 
 
20
  }
21
- .received {
22
- background-color: #f1f1f1;
23
- border-bottom-left-radius: 4px;
 
24
  }
25
- .sent {
26
- background-color: #0078ff;
27
- color: white;
28
- border-bottom-right-radius: 4px;
29
- margin-left: auto;
30
- }
31
- .tab-active {
32
- color: #0078ff;
33
- border-bottom: 3px solid #0078ff;
34
- }
35
- .fab-button {
36
- position: fixed;
37
- bottom: 80px;
38
- right: 24px;
39
- width: 56px;
40
- height: 56px;
41
- border-radius: 28px;
42
- box-shadow: 0 4px 8px rgba(0,0,0,0.2);
43
- }
44
- .emoji-picker {
45
- position: absolute;
46
- bottom: 60px;
47
- right: 0;
48
- width: 300px;
49
- height: 300px;
50
- overflow-y: scroll;
51
- background: white;
52
- border-radius: 8px;
53
- box-shadow: 0 4px 12px rgba(0,0,0,0.15);
54
- display: none;
55
- }
56
- .resource-card {
57
- transition: all 0.3s ease;
58
- }
59
- .resource-card:hover {
60
- transform: translateY(-4px);
61
- box-shadow: 0 6px 12px rgba(0,0,0,0.15);
62
  }
63
  </style>
64
  </head>
65
- <body class="bg-gray-100 font-sans antialiased">
66
- <!-- Android-like header -->
67
- <header class="android-header bg-white flex items-center px-4 fixed top-0 left-0 right-0 z-10">
68
- <button class="mr-4 text-gray-600">
69
- <i class="fas fa-bars text-xl"></i>
70
- </button>
71
- <h1 class="text-xl font-bold text-gray-800 flex-1">BroTalk</h1>
72
- <button class="ml-4 text-gray-600">
73
- <i class="fas fa-search text-xl"></i>
74
- </button>
 
 
 
 
 
75
  </header>
76
 
77
- <!-- Main content area -->
78
- <main class="pt-16 pb-20">
79
- <!-- Tab navigation -->
80
- <div class="flex border-b bg-white">
81
- <button id="chat-tab" class="flex-1 py-3 font-medium text-center tab-active">
82
- <i class="fas fa-comments mr-2"></i> Chats
83
- </button>
84
- <button id="groups-tab" class="flex-1 py-3 font-medium text-center text-gray-500">
85
- <i class="fas fa-users mr-2"></i> Groups
86
- </button>
87
- <button id="resources-tab" class="flex-1 py-3 font-medium text-center text-gray-500">
88
- <i class="fas fa-book mr-2"></i> Resources
89
- </button>
90
  </div>
91
-
92
- <!-- Chat tab content -->
93
- <div id="chat-content" class="p-4">
94
- <!-- Recent chats list -->
95
- <div class="mb-6">
96
- <h2 class="text-lg font-semibold text-gray-700 mb-3">Recent Conversations</h2>
97
- <div class="bg-white rounded-xl shadow-sm overflow-hidden">
98
- <div class="flex items-center p-3 border-b border-gray-100 hover:bg-gray-50 cursor-pointer">
99
- <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-3">
100
- <i class="fas fa-user text-blue-500 text-xl"></i>
101
- </div>
102
- <div class="flex-1">
103
- <h3 class="font-medium">Alex M.</h3>
104
- <p class="text-sm text-gray-500 truncate">Hey man, thanks for listening yesterday...</p>
105
- </div>
106
- <div class="text-xs text-gray-400">2h ago</div>
107
- </div>
108
- <div class="flex items-center p-3 border-b border-gray-100 hover:bg-gray-50 cursor-pointer">
109
- <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mr-3">
110
- <i class="fas fa-user text-green-500 text-xl"></i>
111
- </div>
112
- <div class="flex-1">
113
- <h3 class="font-medium">Support Group</h3>
114
- <p class="text-sm text-gray-500 truncate">Jamie: Has anyone tried mindfulness for...</p>
115
- </div>
116
- <div class="text-xs text-gray-400">1d ago</div>
117
- </div>
118
- <div class="flex items-center p-3 hover:bg-gray-50 cursor-pointer">
119
- <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-3">
120
- <i class="fas fa-user text-purple-500 text-xl"></i>
121
- </div>
122
- <div class="flex-1">
123
- <h3 class="font-medium">Marcus T.</h3>
124
- <p class="text-sm text-gray-500 truncate">I think I need to talk to someone about...</p>
125
- </div>
126
- <div class="text-xs text-gray-400">3d ago</div>
127
- </div>
128
  </div>
129
  </div>
 
 
130
 
131
- <!-- Active chat (simulated) -->
132
- <div class="bg-white rounded-xl shadow-sm p-4">
133
- <div class="flex items-center mb-4 pb-2 border-b border-gray-100">
134
- <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3">
135
- <i class="fas fa-user text-blue-500"></i>
136
- </div>
137
- <h3 class="font-medium">Alex M.</h3>
138
- <div class="ml-auto flex space-x-2">
139
- <button class="text-gray-400 hover:text-gray-600">
140
- <i class="fas fa-phone"></i>
141
- </button>
142
- <button class="text-gray-400 hover:text-gray-600">
143
- <i class="fas fa-video"></i>
144
- </button>
145
- </div>
146
  </div>
147
-
148
- <!-- Chat messages -->
149
- <div class="space-y-2 mb-4 h-64 overflow-y-auto">
150
- <div class="message-bubble received">
151
- <p>Hey man, I've been feeling really down lately. Work stress is getting to me.</p>
152
- <p class="text-xs text-gray-500 mt-1">10:24 AM</p>
153
- </div>
154
- <div class="message-bubble sent">
155
- <p>I hear you. Work can be overwhelming sometimes. Want to talk about what's specifically bothering you?</p>
156
- <p class="text-xs text-gray-300 mt-1">10:26 AM</p>
157
- </div>
158
- <div class="message-bubble received">
159
- <p>It's just this constant pressure to perform. I feel like I'm failing as a provider.</p>
160
- <p class="text-xs text-gray-500 mt-1">10:27 AM</p>
161
- </div>
162
- <div class="message-bubble sent">
163
- <p>That's a heavy burden to carry alone. Remember, your worth isn't just about providing. Have you considered talking to a therapist?</p>
164
- <p class="text-xs text-gray-300 mt-1">10:29 AM</p>
165
- </div>
166
- </div>
167
-
168
- <!-- Message input -->
169
- <div class="flex items-center border-t border-gray-200 pt-3 relative">
170
- <button id="emoji-btn" class="text-gray-400 hover:text-gray-600 mr-2">
171
- <i class="far fa-smile text-xl"></i>
172
- </button>
173
- <input type="text" placeholder="Type a message..." class="flex-1 border border-gray-300 rounded-full py-2 px-4 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
174
- <button class="ml-2 bg-blue-500 text-white rounded-full p-2 w-10 h-10 flex items-center justify-center">
175
- <i class="fas fa-paper-plane"></i>
176
- </button>
177
-
178
- <!-- Emoji picker (hidden by default) -->
179
- <div id="emoji-picker" class="emoji-picker">
180
- <div class="p-3 grid grid-cols-6 gap-2">
181
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">😊</span>
182
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">😢</span>
183
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">😡</span>
184
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">😎</span>
185
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">👍</span>
186
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">❤️</span>
187
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">🤔</span>
188
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">😴</span>
189
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">🙏</span>
190
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">💪</span>
191
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">😅</span>
192
- <span class="text-2xl cursor-pointer hover:bg-gray-100 rounded p-1">🤗</span>
193
- </div>
194
- </div>
195
  </div>
196
  </div>
197
  </div>
 
198
 
199
- <!-- Groups tab content (hidden by default) -->
200
- <div id="groups-content" class="p-4 hidden">
201
- <div class="mb-6">
202
- <h2 class="text-lg font-semibold text-gray-700 mb-3">Your Support Groups</h2>
203
- <div class="grid grid-cols-1 gap-3">
204
- <div class="bg-white rounded-xl shadow-sm p-4 flex items-center">
205
- <div class="w-14 h-14 rounded-full bg-blue-50 flex items-center justify-center mr-3">
206
- <i class="fas fa-users text-blue-500 text-xl"></i>
207
- </div>
208
- <div class="flex-1">
209
- <h3 class="font-medium">Anxiety Support</h3>
210
- <p class="text-sm text-gray-500">12 members • Last active: 2h ago</p>
211
- </div>
212
- <button class="text-blue-500">
213
- <i class="fas fa-chevron-right"></i>
214
- </button>
215
- </div>
216
- <div class="bg-white rounded-xl shadow-sm p-4 flex items-center">
217
- <div class="w-14 h-14 rounded-full bg-green-50 flex items-center justify-center mr-3">
218
- <i class="fas fa-users text-green-500 text-xl"></i>
219
- </div>
220
- <div class="flex-1">
221
- <h3 class="font-medium">Fatherhood & Stress</h3>
222
- <p class="text-sm text-gray-500">8 members • Last active: 1d ago</p>
223
- </div>
224
- <button class="text-blue-500">
225
- <i class="fas fa-chevron-right"></i>
226
- </button>
227
- </div>
228
- <div class="bg-white rounded-xl shadow-sm p-4 flex items-center">
229
- <div class="w-14 h-14 rounded-full bg-purple-50 flex items-center justify-center mr-3">
230
- <i class="fas fa-users text-purple-500 text-xl"></i>
231
- </div>
232
- <div class="flex-1">
233
- <h3 class="font-medium">Work-Life Balance</h3>
234
- <p class="text-sm text-gray-500">15 members • Last active: 3h ago</p>
235
- </div>
236
- <button class="text-blue-500">
237
- <i class="fas fa-chevron-right"></i>
238
- </button>
239
- </div>
240
- </div>
241
- </div>
242
 
243
- <div>
244
- <h2 class="text-lg font-semibold text-gray-700 mb-3">Suggested Groups</h2>
245
- <div class="grid grid-cols-1 gap-3">
246
- <div class="bg-white rounded-xl shadow-sm p-4 flex items-center">
247
- <div class="w-14 h-14 rounded-full bg-yellow-50 flex items-center justify-center mr-3">
248
- <i class="fas fa-users text-yellow-500 text-xl"></i>
249
- </div>
250
- <div class="flex-1">
251
- <h3 class="font-medium">Men's Depression</h3>
252
- <p class="text-sm text-gray-500">24 members • Join to share experiences</p>
253
- </div>
254
- <button class="bg-blue-500 text-white px-3 py-1 rounded-full text-sm">
255
- Join
256
- </button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  </div>
258
- <div class="bg-white rounded-xl shadow-sm p-4 flex items-center">
259
- <div class="w-14 h-14 rounded-full bg-red-50 flex items-center justify-center mr-3">
260
- <i class="fas fa-users text-red-500 text-xl"></i>
261
- </div>
262
- <div class="flex-1">
263
- <h3 class="font-medium">Anger Management</h3>
264
- <p class="text-sm text-gray-500">18 members • Learn healthy coping</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
  </div>
266
- <button class="bg-blue-500 text-white px-3 py-1 rounded-full text-sm">
267
- Join
268
- </button>
269
  </div>
270
- </div>
271
- </div>
272
- </div>
273
 
274
- <!-- Resources tab content (hidden by default) -->
275
- <div id="resources-content" class="p-4 hidden">
276
- <div class="mb-6">
277
- <h2 class="text-lg font-semibold text-gray-700 mb-3">Mental Health Resources</h2>
278
- <div class="grid grid-cols-1 gap-4">
279
- <div class="resource-card bg-white rounded-xl shadow-sm p-4 cursor-pointer">
280
- <div class="flex items-start">
281
- <div class="w-12 h-12 rounded-full bg-blue-50 flex items-center justify-center mr-3">
282
- <i class="fas fa-head-side-virus text-blue-500 text-xl"></i>
283
- </div>
284
- <div>
285
- <h3 class="font-medium">Understanding Depression in Men</h3>
286
- <p class="text-sm text-gray-500 mt-1">Learn about the signs and symptoms that often manifest differently in men.</p>
287
- </div>
288
- </div>
 
 
 
 
289
  </div>
290
- <div class="resource-card bg-white rounded-xl shadow-sm p-4 cursor-pointer">
291
- <div class="flex items-start">
292
- <div class="w-12 h-12 rounded-full bg-green-50 flex items-center justify-center mr-3">
293
- <i class="fas fa-hands-helping text-green-500 text-xl"></i>
294
- </div>
295
- <div>
296
- <h3 class="font-medium">Finding a Therapist</h3>
297
- <p class="text-sm text-gray-500 mt-1">A guide to finding mental health professionals who specialize in men's issues.</p>
298
- </div>
299
- </div>
300
  </div>
301
- <div class="resource-card bg-white rounded-xl shadow-sm p-4 cursor-pointer">
302
- <div class="flex items-start">
303
- <div class="w-12 h-12 rounded-full bg-purple-50 flex items-center justify-center mr-3">
304
- <i class="fas fa-brain text-purple-500 text-xl"></i>
305
- </div>
306
- <div>
307
- <h3 class="font-medium">Mindfulness Techniques</h3>
308
- <p class="text-sm text-gray-500 mt-1">Simple exercises to help manage stress and anxiety in daily life.</p>
309
- </div>
310
- </div>
311
  </div>
312
- <div class="resource-card bg-white rounded-xl shadow-sm p-4 cursor-pointer">
313
- <div class="flex items-start">
314
- <div class="w-12 h-12 rounded-full bg-yellow-50 flex items-center justify-center mr-3">
315
- <i class="fas fa-dumbbell text-yellow-500 text-xl"></i>
316
- </div>
317
- <div>
318
- <h3 class="font-medium">Exercise & Mental Health</h3>
319
- <p class="text-sm text-gray-500 mt-1">How physical activity can significantly improve your mental wellbeing.</p>
320
- </div>
321
- </div>
322
  </div>
323
  </div>
324
- </div>
325
-
326
- <div>
327
- <h2 class="text-lg font-semibold text-gray-700 mb-3">Emergency Contacts</h2>
328
- <div class="bg-white rounded-xl shadow-sm overflow-hidden">
329
- <div class="p-4 border-b border-gray-100 flex items-center">
330
- <div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-3">
331
- <i class="fas fa-phone-alt text-red-500"></i>
332
- </div>
333
- <div class="flex-1">
334
- <h3 class="font-medium">Suicide Prevention Lifeline</h3>
335
- <p class="text-sm text-gray-500">Call 988 for immediate help</p>
336
- </div>
337
- <button class="text-blue-500">
338
- <i class="fas fa-chevron-right"></i>
339
- </button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
340
  </div>
341
- <div class="p-4 flex items-center">
342
- <div class="w-10 h-10 rounded-full bg-orange-100 flex items-center justify-center mr-3">
343
- <i class="fas fa-comment-medical text-orange-500"></i>
344
- </div>
345
- <div class="flex-1">
346
- <h3 class="font-medium">Crisis Text Line</h3>
347
- <p class="text-sm text-gray-500">Text HOME to 741741</p>
348
- </div>
349
- <button class="text-blue-500">
350
- <i class="fas fa-chevron-right"></i>
351
- </button>
352
  </div>
353
- </div>
354
- </div>
355
- </div>
356
- </main>
357
-
358
- <!-- Floating action button -->
359
- <button class="fab-button bg-blue-500 text-white flex items-center justify-center">
360
- <i class="fas fa-plus text-xl"></i>
361
- </button>
362
-
363
- <!-- Bottom navigation -->
364
- <nav class="fixed bottom-0 left-0 right-0 bg-white shadow-lg flex justify-around py-2">
365
- <button class="flex flex-col items-center text-blue-500">
366
- <i class="fas fa-home text-xl"></i>
367
- <span class="text-xs mt-1">Home</span>
368
- </button>
369
- <button class="flex flex-col items-center text-gray-500">
370
- <i class="fas fa-comment-medical text-xl"></i>
371
- <span class="text-xs mt-1">Therapists</span>
372
- </button>
373
- <button class="flex flex-col items-center text-gray-500">
374
- <i class="fas fa-calendar-alt text-xl"></i>
375
- <span class="text-xs mt-1">Schedule</span>
376
- </button>
377
- <button class="flex flex-col items-center text-gray-500">
378
- <i class="fas fa-user text-xl"></i>
379
- <span class="text-xs mt-1">Profile</span>
380
- </button>
381
- </nav>
382
-
383
- <script>
384
- // Tab switching functionality
385
- document.getElementById('chat-tab').addEventListener('click', function() {
386
- this.classList.add('tab-active');
387
- this.classList.remove('text-gray-500');
388
- document.getElementById('groups-tab').classList.remove('tab-active');
389
- document.getElementById('groups-tab').classList.add('text-gray-500');
390
- document.getElementById('resources-tab').classList.remove('tab-active');
391
- document.getElementById('resources-tab').classList.add('text-gray-500');
392
 
393
- document.getElementById('chat-content').classList.remove('hidden');
394
- document.getElementById('groups-content').classList.add('hidden');
395
- document.getElementById('resources-content').classList.add('hidden');
396
- });
397
-
398
- document.getElementById('groups-tab').addEventListener('click', function() {
399
- this.classList.add('tab-active');
400
- this.classList.remove('text-gray-500');
401
- document.getElementById('chat-tab').classList.remove('tab-active');
402
- document.getElementById('chat-tab').classList.add('text-gray-500');
403
- document.getElementById('resources-tab').classList.remove('tab-active');
404
- document.getElementById('resources-tab').classList.add('text-gray-500');
405
 
406
- document.getElementById('chat-content').classList.add('hidden');
407
- document.getElementById('groups-content').classList.remove('hidden');
408
- document.getElementById('resources-content').classList.add('hidden');
409
- });
 
410
 
411
- document.getElementById('resources-tab').addEventListener('click', function() {
412
- this.classList.add('tab-active');
413
- this.classList.remove('text-gray-500');
414
- document.getElementById('chat-tab').classList.remove('tab-active');
415
- document.getElementById('chat-tab').classList.add('text-gray-500');
416
- document.getElementById('groups-tab').classList.remove('tab-active');
417
- document.getElementById('groups-tab').classList.add('text-gray-500');
418
 
419
- document.getElementById('chat-content').classList.add('hidden');
420
- document.getElementById('groups-content').classList.add('hidden');
421
- document.getElementById('resources-content').classList.remove('hidden');
422
- });
423
-
424
- // Emoji picker functionality
425
- const emojiBtn = document.getElementById('emoji-btn');
426
- const emojiPicker = document.getElementById('emoji-picker');
427
-
428
- emojiBtn.addEventListener('click', function() {
429
- if (emojiPicker.style.display === 'block') {
430
- emojiPicker.style.display = 'none';
431
- } else {
432
- emojiPicker.style.display = 'block';
433
- }
434
- });
435
-
436
- // Close emoji picker when clicking outside
437
- document.addEventListener('click', function(event) {
438
- if (!emojiBtn.contains(event.target) && !emojiPicker.contains(event.target)) {
439
- emojiPicker.style.display = 'none';
440
  }
441
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
442
 
443
- // Add emoji to input when clicked
444
- const emojis = document.querySelectorAll('#emoji-picker span');
445
- const messageInput = document.querySelector('input[type="text"]');
446
-
447
- emojis.forEach(emoji => {
448
- emoji.addEventListener('click', function() {
449
- messageInput.value += this.textContent;
450
- messageInput.focus();
451
- });
452
- });
 
 
453
 
454
- // Resource card hover effect
455
- const resourceCards = document.querySelectorAll('.resource-card');
456
- resourceCards.forEach(card => {
457
- card.addEventListener('mouseenter', function() {
458
- this.style.transform = 'translateY(-4px)';
459
- this.style.boxShadow = '0 6px 12px rgba(0,0,0,0.15)';
460
- });
461
- card.addEventListener('mouseleave', function() {
462
- this.style.transform = '';
463
- this.style.boxShadow = '';
464
- });
465
- });
466
  </script>
467
  <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=toppshutter/the-yard" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
468
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Saint Lucia Map with GPS</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
+ <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg&callback=initMap&v=weekly" defer></script>
10
  <style>
11
+ #map {
12
+ height: 500px;
 
 
13
  }
14
+ .user-location-icon {
15
+ width: 20px;
16
+ height: 20px;
17
+ background-color: #3b82f6;
18
+ border-radius: 50%;
19
+ border: 3px solid white;
20
+ box-shadow: 0 0 10px rgba(0,0,0,0.3);
21
+ animation: pulse 2s infinite;
22
  }
23
+ @keyframes pulse {
24
+ 0% { transform: scale(1); opacity: 1; }
25
+ 50% { transform: scale(1.3); opacity: 0.7; }
26
+ 100% { transform: scale(1); opacity: 1; }
27
  }
28
+ .accuracy-circle {
29
+ fill: none;
30
+ stroke: #3b82f6;
31
+ stroke-width: 2;
32
+ stroke-opacity: 0.3;
33
+ fill-opacity: 0.1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
  </style>
36
  </head>
37
+ <body class="bg-gray-100">
38
+ <header class="bg-blue-600 text-white shadow-lg">
39
+ <div class="container mx-auto px-4 py-6">
40
+ <div class="flex flex-col md:flex-row justify-between items-center">
41
+ <div class="flex items-center mb-4 md:mb-0">
42
+ <i class="fas fa-map-marked-alt text-3xl mr-3"></i>
43
+ <h1 class="text-2xl font-bold">Saint Lucia Map</h1>
44
+ </div>
45
+ <div class="flex items-center space-x-4">
46
+ <button id="locate-btn" class="bg-blue-700 hover:bg-blue-800 text-white px-4 py-2 rounded-lg flex items-center">
47
+ <i class="fas fa-location-arrow mr-2"></i> Locate Me
48
+ </button>
49
+ </div>
50
+ </div>
51
+ </div>
52
  </header>
53
 
54
+ <main class="container mx-auto px-4 py-8">
55
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden mb-6">
56
+ <div id="map"></div>
 
 
 
 
 
 
 
 
 
 
57
  </div>
58
+
59
+ <div class="bg-white rounded-xl shadow-lg p-6">
60
+ <h2 class="text-xl font-bold text-blue-600 mb-4 flex items-center">
61
+ <i class="fas fa-info-circle mr-2"></i> Location Information
62
+ </h2>
63
+ <div id="location-info" class="space-y-4">
64
+ <div class="text-center py-8 text-gray-500">
65
+ <i class="fas fa-map-marker-alt text-4xl mb-2"></i>
66
+ <p>Click "Locate Me" to find your position on the map</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  </div>
68
  </div>
69
+ </div>
70
+ </main>
71
 
72
+ <footer class="bg-gray-800 text-white py-6">
73
+ <div class="container mx-auto px-4">
74
+ <div class="flex flex-col md:flex-row justify-between items-center">
75
+ <div class="mb-4 md:mb-0">
76
+ <p>&copy; 2023 Saint Lucia Map Service. All rights reserved.</p>
 
 
 
 
 
 
 
 
 
 
77
  </div>
78
+ <div class="flex space-x-4">
79
+ <a href="#" class="hover:text-blue-400"><i class="fab fa-twitter"></i></a>
80
+ <a href="#" class="hover:text-blue-400"><i class="fab fa-facebook"></i></a>
81
+ <a href="#" class="hover:text-blue-400"><i class="fab fa-instagram"></i></a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  </div>
83
  </div>
84
  </div>
85
+ </footer>
86
 
87
+ <script>
88
+ let map;
89
+ let userMarker;
90
+ let accuracyCircle;
91
+ const saintLuciaCenter = { lat: 13.9094, lng: -60.9789 }; // Center of Saint Lucia
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
 
93
+ function initMap() {
94
+ // Initialize the map centered on Saint Lucia
95
+ map = new google.maps.Map(document.getElementById("map"), {
96
+ center: saintLuciaCenter,
97
+ zoom: 11,
98
+ styles: [
99
+ {
100
+ featureType: "poi",
101
+ elementType: "labels",
102
+ stylers: [{ visibility: "off" }]
103
+ },
104
+ {
105
+ featureType: "transit",
106
+ elementType: "labels.icon",
107
+ stylers: [{ visibility: "off" }]
108
+ }
109
+ ]
110
+ });
111
+
112
+ // Add some points of interest in Saint Lucia
113
+ addPointsOfInterest();
114
+
115
+ // Event listener for locate button
116
+ document.getElementById('locate-btn').addEventListener('click', locateUser);
117
+ }
118
+
119
+ function addPointsOfInterest() {
120
+ // Add markers for important locations in Saint Lucia
121
+ const locations = [
122
+ {
123
+ position: { lat: 14.0167, lng: -60.9833 },
124
+ title: "Castries",
125
+ icon: "https://maps.google.com/mapfiles/ms/icons/red-dot.png"
126
+ },
127
+ {
128
+ position: { lat: 14.0806, lng: -60.9522 },
129
+ title: "Gros Islet",
130
+ icon: "https://maps.google.com/mapfiles/ms/icons/blue-dot.png"
131
+ },
132
+ {
133
+ position: { lat: 13.8536, lng: -61.0667 },
134
+ title: "Soufrière",
135
+ icon: "https://maps.google.com/mapfiles/ms/icons/green-dot.png"
136
+ },
137
+ {
138
+ position: { lat: 13.7300, lng: -60.9500 },
139
+ title: "Vieux Fort",
140
+ icon: "https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"
141
+ },
142
+ {
143
+ position: { lat: 13.9094, lng: -60.9789 },
144
+ title: "Pitons",
145
+ icon: "https://maps.google.com/mapfiles/ms/icons/purple-dot.png"
146
+ }
147
+ ];
148
+
149
+ locations.forEach(location => {
150
+ new google.maps.Marker({
151
+ position: location.position,
152
+ map: map,
153
+ title: location.title,
154
+ icon: {
155
+ url: location.icon,
156
+ scaledSize: new google.maps.Size(32, 32)
157
+ }
158
+ });
159
+ });
160
+ }
161
+
162
+ function locateUser() {
163
+ const locationInfo = document.getElementById('location-info');
164
+
165
+ // Check if geolocation is available
166
+ if (navigator.geolocation) {
167
+ locationInfo.innerHTML = `
168
+ <div class="flex items-center justify-center py-4">
169
+ <i class="fas fa-spinner fa-spin text-2xl text-blue-600 mr-3"></i>
170
+ <span class="font-medium">Locating your position...</span>
171
  </div>
172
+ `;
173
+
174
+ // Request current position
175
+ navigator.geolocation.getCurrentPosition(
176
+ position => {
177
+ // Success callback
178
+ showPosition(position);
179
+ },
180
+ error => {
181
+ // Error callback
182
+ showError(error);
183
+ },
184
+ {
185
+ enableHighAccuracy: true,
186
+ timeout: 10000,
187
+ maximumAge: 0
188
+ }
189
+ );
190
+ } else {
191
+ // Geolocation not supported
192
+ locationInfo.innerHTML = `
193
+ <div class="bg-red-100 border-l-4 border-red-500 text-red-700 p-4">
194
+ <div class="flex items-center">
195
+ <i class="fas fa-exclamation-circle mr-2"></i>
196
+ <p>Geolocation is not supported by your browser.</p>
197
  </div>
 
 
 
198
  </div>
199
+ `;
200
+ }
201
+ }
202
 
203
+ function showPosition(position) {
204
+ const locationInfo = document.getElementById('location-info');
205
+ const userLatLng = {
206
+ lat: position.coords.latitude,
207
+ lng: position.coords.longitude
208
+ };
209
+
210
+ // Calculate distance from Saint Lucia center (for demo purposes)
211
+ const distance = calculateDistance(
212
+ userLatLng.lat, userLatLng.lng,
213
+ saintLuciaCenter.lat, saintLuciaCenter.lng
214
+ );
215
+
216
+ // Update location info panel
217
+ locationInfo.innerHTML = `
218
+ <div class="grid grid-cols-2 gap-4">
219
+ <div>
220
+ <p class="text-gray-600 font-medium">Latitude:</p>
221
+ <p class="font-mono">${userLatLng.lat.toFixed(6)}</p>
222
  </div>
223
+ <div>
224
+ <p class="text-gray-600 font-medium">Longitude:</p>
225
+ <p class="font-mono">${userLatLng.lng.toFixed(6)}</p>
 
 
 
 
 
 
 
226
  </div>
227
+ <div>
228
+ <p class="text-gray-600 font-medium">Accuracy:</p>
229
+ <p class="font-mono">${Math.round(position.coords.accuracy)} meters</p>
 
 
 
 
 
 
 
230
  </div>
231
+ <div>
232
+ <p class="text-gray-600 font-medium">Distance from Center:</p>
233
+ <p class="font-mono">${distance.toFixed(2)} km</p>
 
 
 
 
 
 
 
234
  </div>
235
  </div>
236
+ <div class="mt-4">
237
+ <p class="text-sm text-gray-500">
238
+ <i class="fas fa-info-circle mr-1"></i>
239
+ Last updated: ${new Date().toLocaleTimeString()}
240
+ </p>
241
+ </div>
242
+ `;
243
+
244
+ // Remove previous marker and circle if they exist
245
+ if (userMarker) {
246
+ userMarker.setMap(null);
247
+ }
248
+ if (accuracyCircle) {
249
+ accuracyCircle.setMap(null);
250
+ }
251
+
252
+ // Add user location marker
253
+ userMarker = new google.maps.Marker({
254
+ position: userLatLng,
255
+ map: map,
256
+ title: "Your Location",
257
+ icon: {
258
+ path: google.maps.SymbolPath.CIRCLE,
259
+ fillColor: "#3b82f6",
260
+ fillOpacity: 1,
261
+ strokeColor: "white",
262
+ strokeWeight: 2,
263
+ scale: 10
264
+ },
265
+ animation: google.maps.Animation.DROP
266
+ });
267
+
268
+ // Add accuracy circle
269
+ accuracyCircle = new google.maps.Circle({
270
+ center: userLatLng,
271
+ radius: position.coords.accuracy,
272
+ map: map,
273
+ fillColor: "#3b82f6",
274
+ fillOpacity: 0.2,
275
+ strokeColor: "#3b82f6",
276
+ strokeOpacity: 0.5,
277
+ strokeWeight: 1
278
+ });
279
+
280
+ // Center map on user location
281
+ map.setCenter(userLatLng);
282
+ map.setZoom(15);
283
+
284
+ // Add info window
285
+ const infoWindow = new google.maps.InfoWindow({
286
+ content: `
287
+ <div class="font-medium">
288
+ <i class="fas fa-user-circle text-blue-600 mr-1"></i>
289
+ Your Location
290
  </div>
291
+ <div class="text-sm mt-1">
292
+ Accuracy: ${Math.round(position.coords.accuracy)} meters
 
 
 
 
 
 
 
 
 
293
  </div>
294
+ `
295
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
296
 
297
+ infoWindow.open(map, userMarker);
 
 
 
 
 
 
 
 
 
 
 
298
 
299
+ // Close info window after 5 seconds
300
+ setTimeout(() => {
301
+ infoWindow.close();
302
+ }, 5000);
303
+ }
304
 
305
+ function showError(error) {
306
+ const locationInfo = document.getElementById('location-info');
307
+ let errorMessage;
 
 
 
 
308
 
309
+ switch(error.code) {
310
+ case error.PERMISSION_DENIED:
311
+ errorMessage = "You denied the request for geolocation.";
312
+ break;
313
+ case error.POSITION_UNAVAILABLE:
314
+ errorMessage = "Location information is unavailable.";
315
+ break;
316
+ case error.TIMEOUT:
317
+ errorMessage = "The request to get your location timed out.";
318
+ break;
319
+ case error.UNKNOWN_ERROR:
320
+ errorMessage = "An unknown error occurred.";
321
+ break;
 
 
 
 
 
 
 
 
322
  }
323
+
324
+ locationInfo.innerHTML = `
325
+ <div class="bg-red-100 border-l-4 border-red-500 text-red-700 p-4">
326
+ <div class="flex items-center">
327
+ <i class="fas fa-exclamation-circle mr-2"></i>
328
+ <p>${errorMessage}</p>
329
+ </div>
330
+ <div class="mt-2 text-sm">
331
+ <button onclick="locateUser()" class="text-blue-600 hover:text-blue-800 font-medium">
332
+ <i class="fas fa-redo mr-1"></i> Try Again
333
+ </button>
334
+ </div>
335
+ </div>
336
+ `;
337
+ }
338
 
339
+ // Helper function to calculate distance between two coordinates in km
340
+ function calculateDistance(lat1, lon1, lat2, lon2) {
341
+ const R = 6371; // Radius of the earth in km
342
+ const dLat = deg2rad(lat2 - lat1);
343
+ const dLon = deg2rad(lon2 - lon1);
344
+ const a =
345
+ Math.sin(dLat/2) * Math.sin(dLat/2) +
346
+ Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) *
347
+ Math.sin(dLon/2) * Math.sin(dLon/2);
348
+ const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
349
+ return R * c;
350
+ }
351
 
352
+ function deg2rad(deg) {
353
+ return deg * (Math.PI/180);
354
+ }
 
 
 
 
 
 
 
 
 
355
  </script>
356
  <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=toppshutter/the-yard" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
357
  </html>
prompts.txt CHANGED
@@ -1 +1,10 @@
1
- Create an android app where men can communicate with each regarding mental health issues.
 
 
 
 
 
 
 
 
 
 
1
+ Create an app that shows the location of a passenger bus on a map to public.
2
+ Utilize google maps and default location will Saint Lucia
3
+ Load a map of saint lucia and utilize the gps on my on my phone
4
+ reload
5
+ can reload the app
6
+ can reload the app with a random map of Saint Lucia
7
+ can reload the app with a random map of Saint Lucia
8
+ can reload the app with a map of Saint Lucia and utilize this devices gps location?
9
+ can we use the following link for the map view
10
+ can we use the following link for the map view https://satellites.pro/Google_plan/Saint_Lucia_map#google_vignette