mutaician commited on
Commit
e4996da
·
verified ·
1 Parent(s): b9bcb03

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +359 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Deepsite First Test
3
- emoji: 🐨
4
- colorFrom: indigo
5
- colorTo: green
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: deepsite-first-test
3
+ emoji: 🐳
4
+ colorFrom: pink
5
+ colorTo: yellow
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,359 @@
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>HackMate - AI Hackathon Assistant</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 {
15
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
16
+ }
17
+ .gradient-bg {
18
+ background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
19
+ }
20
+ .chat-bubble {
21
+ border-radius: 1.25rem;
22
+ position: relative;
23
+ }
24
+ .user-bubble {
25
+ background-color: #4f46e5;
26
+ color: white;
27
+ border-bottom-right-radius: 0.25rem;
28
+ }
29
+ .ai-bubble {
30
+ background-color: #f3f4f6;
31
+ color: #111827;
32
+ border-bottom-left-radius: 0.25rem;
33
+ }
34
+ .tab-active {
35
+ border-bottom: 3px solid #4f46e5;
36
+ color: #4f46e5;
37
+ font-weight: 600;
38
+ }
39
+ </style>
40
+ </head>
41
+ <body class="bg-gray-50 min-h-screen">
42
+ <div class="flex flex-col h-screen">
43
+ <!-- Header -->
44
+ <header class="gradient-bg text-white shadow-lg">
45
+ <div class="container mx-auto px-4 py-6">
46
+ <div class="flex justify-between items-center">
47
+ <div class="flex items-center space-x-3">
48
+ <i class="fas fa-robot text-3xl"></i>
49
+ <h1 class="text-2xl font-bold">HackMate</h1>
50
+ </div>
51
+ <div class="flex space-x-4">
52
+ <button class="bg-white text-indigo-600 px-4 py-2 rounded-full font-medium hover:bg-indigo-50 transition">
53
+ <i class="fas fa-user-plus mr-2"></i>Find Teammates
54
+ </button>
55
+ <button class="bg-indigo-700 text-white px-4 py-2 rounded-full font-medium hover:bg-indigo-800 transition">
56
+ <i class="fas fa-sign-in-alt mr-2"></i>Login
57
+ </button>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </header>
62
+
63
+ <!-- Main Content -->
64
+ <main class="flex-1 container mx-auto px-4 py-6 flex flex-col md:flex-row gap-6">
65
+ <!-- Left Sidebar -->
66
+ <aside class="w-full md:w-1/4 bg-white rounded-xl shadow-md p-4">
67
+ <div class="mb-6">
68
+ <h2 class="text-lg font-semibold mb-3">Hackathon Info</h2>
69
+ <div class="space-y-2">
70
+ <div class="flex items-center p-3 bg-gray-100 rounded-lg">
71
+ <i class="fas fa-calendar-day text-indigo-600 mr-3"></i>
72
+ <span>Time Left: 23:45:12</span>
73
+ </div>
74
+ <div class="flex items-center p-3 bg-gray-100 rounded-lg">
75
+ <i class="fas fa-trophy text-indigo-600 mr-3"></i>
76
+ <span>Prize: $10,000</span>
77
+ </div>
78
+ <div class="flex items-center p-3 bg-gray-100 rounded-lg">
79
+ <i class="fas fa-users text-indigo-600 mr-3"></i>
80
+ <span>Team: 2/4 members</span>
81
+ </div>
82
+ </div>
83
+ </div>
84
+
85
+ <div class="mb-6">
86
+ <h2 class="text-lg font-semibold mb-3">Quick Actions</h2>
87
+ <div class="grid grid-cols-2 gap-2">
88
+ <button class="bg-indigo-100 text-indigo-700 p-3 rounded-lg hover:bg-indigo-200 transition flex flex-col items-center">
89
+ <i class="fas fa-lightbulb text-xl mb-1"></i>
90
+ <span class="text-sm">Brainstorm</span>
91
+ </button>
92
+ <button class="bg-indigo-100 text-indigo-700 p-3 rounded-lg hover:bg-indigo-200 transition flex flex-col items-center">
93
+ <i class="fas fa-bug text-xl mb-1"></i>
94
+ <span class="text-sm">Debug Code</span>
95
+ </button>
96
+ <button class="bg-indigo-100 text-indigo-700 p-3 rounded-lg hover:bg-indigo-200 transition flex flex-col items-center">
97
+ <i class="fas fa-search text-xl mb-1"></i>
98
+ <span class="text-sm">Find APIs</span>
99
+ </button>
100
+ <button class="bg-indigo-100 text-indigo-700 p-3 rounded-lg hover:bg-indigo-200 transition flex flex-col items-center">
101
+ <i class="fas fa-user-friends text-xl mb-1"></i>
102
+ <span class="text-sm">Teammates</span>
103
+ </button>
104
+ </div>
105
+ </div>
106
+
107
+ <div>
108
+ <h2 class="text-lg font-semibold mb-3">Suggested Teammates</h2>
109
+ <div class="space-y-3">
110
+ <div class="flex items-center p-2 bg-gray-50 rounded-lg hover:bg-gray-100 cursor-pointer">
111
+ <div class="w-8 h-8 rounded-full bg-purple-500 flex items-center justify-center text-white font-bold mr-3">JD</div>
112
+ <div>
113
+ <p class="font-medium">Jane Doe</p>
114
+ <p class="text-xs text-gray-500">Full-stack Dev</p>
115
+ </div>
116
+ </div>
117
+ <div class="flex items-center p-2 bg-gray-50 rounded-lg hover:bg-gray-100 cursor-pointer">
118
+ <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold mr-3">JS</div>
119
+ <div>
120
+ <p class="font-medium">John Smith</p>
121
+ <p class="text-xs text-gray-500">UI/UX Designer</p>
122
+ </div>
123
+ </div>
124
+ <div class="flex items-center p-2 bg-gray-50 rounded-lg hover:bg-gray-100 cursor-pointer">
125
+ <div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center text-white font-bold mr-3">AM</div>
126
+ <div>
127
+ <p class="font-medium">Alex Morgan</p>
128
+ <p class="text-xs text-gray-500">Data Scientist</p>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </aside>
134
+
135
+ <!-- Main Chat Area -->
136
+ <div class="flex-1 flex flex-col bg-white rounded-xl shadow-md overflow-hidden">
137
+ <!-- Tabs -->
138
+ <div class="flex border-b">
139
+ <button class="flex-1 py-4 px-6 text-center tab-active">
140
+ <i class="fas fa-comments mr-2"></i>Chat
141
+ </button>
142
+ <button class="flex-1 py-4 px-6 text-center text-gray-500 hover:text-indigo-600">
143
+ <i class="fas fa-code mr-2"></i>Code Editor
144
+ </button>
145
+ <button class="flex-1 py-4 px-6 text-center text-gray-500 hover:text-indigo-600">
146
+ <i class="fas fa-users mr-2"></i>Team
147
+ </button>
148
+ <button class="flex-1 py-4 px-6 text-center text-gray-500 hover:text-indigo-600">
149
+ <i class="fas fa-tasks mr-2"></i>Tasks
150
+ </button>
151
+ </div>
152
+
153
+ <!-- Chat Messages -->
154
+ <div class="flex-1 p-4 overflow-y-auto" id="chat-messages">
155
+ <div class="space-y-4">
156
+ <!-- AI Message -->
157
+ <div class="flex">
158
+ <div class="flex-shrink-0 mr-3">
159
+ <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center">
160
+ <i class="fas fa-robot text-indigo-600"></i>
161
+ </div>
162
+ </div>
163
+ <div class="ai-bubble chat-bubble max-w-3/4 p-4">
164
+ <p>Hi there! I'm HackMate, your AI hackathon assistant. I can help you brainstorm ideas, debug code, and even find teammates. What are you working on today?</p>
165
+ </div>
166
+ </div>
167
+
168
+ <!-- User Message -->
169
+ <div class="flex justify-end">
170
+ <div class="user-bubble chat-bubble max-w-3/4 p-4">
171
+ <p>I need help brainstorming ideas for a health tech hackathon. Any suggestions?</p>
172
+ </div>
173
+ </div>
174
+
175
+ <!-- AI Message -->
176
+ <div class="flex">
177
+ <div class="flex-shrink-0 mr-3">
178
+ <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center">
179
+ <i class="fas fa-robot text-indigo-600"></i>
180
+ </div>
181
+ </div>
182
+ <div class="ai-bubble chat-bubble max-w-3/4 p-4">
183
+ <p>Great! Here are some health tech ideas:</p>
184
+ <ul class="list-disc pl-5 mt-2 space-y-1">
185
+ <li>AI-powered symptom checker with personalized recommendations</li>
186
+ <li>Mental health chatbot with mood tracking</li>
187
+ <li>AR app for physical therapy exercises</li>
188
+ <li>Blockchain-based health records system</li>
189
+ <li>Wearable for early detection of Parkinson's tremors</li>
190
+ </ul>
191
+ <p class="mt-2">Would you like me to elaborate on any of these?</p>
192
+ </div>
193
+ </div>
194
+
195
+ <!-- Typing Indicator -->
196
+ <div class="flex" id="typing-indicator" style="display: none;">
197
+ <div class="flex-shrink-0 mr-3">
198
+ <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center">
199
+ <i class="fas fa-robot text-indigo-600"></i>
200
+ </div>
201
+ </div>
202
+ <div class="ai-bubble chat-bubble max-w-3/4 p-4">
203
+ <div class="flex space-x-2">
204
+ <div class="w-2 h-2 rounded-full bg-gray-400 animate-pulse"></div>
205
+ <div class="w-2 h-2 rounded-full bg-gray-400 animate-pulse delay-100"></div>
206
+ <div class="w-2 h-2 rounded-full bg-gray-400 animate-pulse delay-200"></div>
207
+ </div>
208
+ </div>
209
+ </div>
210
+ </div>
211
+ </div>
212
+
213
+ <!-- Input Area -->
214
+ <div class="border-t p-4 bg-gray-50">
215
+ <div class="flex items-center">
216
+ <div class="flex-1 mr-3">
217
+ <div class="relative">
218
+ <textarea
219
+ id="message-input"
220
+ class="w-full border rounded-lg p-3 pr-10 focus:outline-none focus:ring-2 focus:ring-indigo-500 resize-none"
221
+ rows="1"
222
+ placeholder="Ask HackMate anything..."></textarea>
223
+ <button class="absolute right-3 bottom-3 text-gray-400 hover:text-indigo-600">
224
+ <i class="fas fa-paperclip"></i>
225
+ </button>
226
+ </div>
227
+ </div>
228
+ <button
229
+ id="send-button"
230
+ class="bg-indigo-600 text-white p-3 rounded-lg hover:bg-indigo-700 transition">
231
+ <i class="fas fa-paper-plane"></i>
232
+ </button>
233
+ </div>
234
+ <div class="flex justify-between mt-2 text-xs text-gray-500">
235
+ <div>
236
+ <button class="hover:text-indigo-600 mr-3">
237
+ <i class="fas fa-lightbulb mr-1"></i> Brainstorm
238
+ </button>
239
+ <button class="hover:text-indigo-600 mr-3">
240
+ <i class="fas fa-bug mr-1"></i> Debug
241
+ </button>
242
+ <button class="hover:text-indigo-600">
243
+ <i class="fas fa-user-plus mr-1"></i> Find Teammates
244
+ </button>
245
+ </div>
246
+ <div>
247
+ <span>Press Shift+Enter for new line</span>
248
+ </div>
249
+ </div>
250
+ </div>
251
+ </div>
252
+ </main>
253
+ </div>
254
+
255
+ <script>
256
+ document.addEventListener('DOMContentLoaded', function() {
257
+ const messageInput = document.getElementById('message-input');
258
+ const sendButton = document.getElementById('send-button');
259
+ const chatMessages = document.getElementById('chat-messages');
260
+ const typingIndicator = document.getElementById('typing-indicator');
261
+
262
+ // Auto-resize textarea
263
+ messageInput.addEventListener('input', function() {
264
+ this.style.height = 'auto';
265
+ this.style.height = (this.scrollHeight) + 'px';
266
+ });
267
+
268
+ // Send message on Enter (but allow Shift+Enter for new line)
269
+ messageInput.addEventListener('keydown', function(e) {
270
+ if (e.key === 'Enter' && !e.shiftKey) {
271
+ e.preventDefault();
272
+ sendMessage();
273
+ }
274
+ });
275
+
276
+ sendButton.addEventListener('click', sendMessage);
277
+
278
+ function sendMessage() {
279
+ const message = messageInput.value.trim();
280
+ if (message === '') return;
281
+
282
+ // Add user message to chat
283
+ const userMessageDiv = document.createElement('div');
284
+ userMessageDiv.className = 'flex justify-end';
285
+ userMessageDiv.innerHTML = `
286
+ <div class="user-bubble chat-bubble max-w-3/4 p-4">
287
+ <p>${message}</p>
288
+ </div>
289
+ `;
290
+ chatMessages.appendChild(userMessageDiv);
291
+
292
+ // Clear input
293
+ messageInput.value = '';
294
+ messageInput.style.height = 'auto';
295
+
296
+ // Show typing indicator
297
+ typingIndicator.style.display = 'flex';
298
+
299
+ // Scroll to bottom
300
+ chatMessages.scrollTop = chatMessages.scrollHeight;
301
+
302
+ // Simulate AI response after delay
303
+ setTimeout(() => {
304
+ typingIndicator.style.display = 'none';
305
+
306
+ // Generate different responses based on keywords
307
+ let aiResponse = '';
308
+ if (message.toLowerCase().includes('debug') || message.toLowerCase().includes('error')) {
309
+ aiResponse = `I can help with debugging! Could you share the error message or describe the issue you're facing in more detail?`;
310
+ } else if (message.toLowerCase().includes('team') || message.toLowerCase().includes('teammate')) {
311
+ aiResponse = `I can help you find teammates! Based on your project needs, I recommend looking for:<br><br>
312
+ - A frontend developer (React/Vue experience)<br>
313
+ - A backend developer (Node.js/Python)<br>
314
+ - A UI/UX designer<br><br>
315
+ Would you like me to match you with potential teammates?`;
316
+ } else {
317
+ aiResponse = `Thanks for your message! Here are some potential next steps:<br><br>
318
+ <ol class="list-decimal pl-5 space-y-1">
319
+ <li>Refine your project scope</li>
320
+ <li>Create a basic wireframe</li>
321
+ <li>Set up your development environment</li>
322
+ <li>Break down tasks for your team</li>
323
+ </ol><br>
324
+ How can I assist you further?`;
325
+ }
326
+
327
+ const aiMessageDiv = document.createElement('div');
328
+ aiMessageDiv.className = 'flex';
329
+ aiMessageDiv.innerHTML = `
330
+ <div class="flex-shrink-0 mr-3">
331
+ <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center">
332
+ <i class="fas fa-robot text-indigo-600"></i>
333
+ </div>
334
+ </div>
335
+ <div class="ai-bubble chat-bubble max-w-3/4 p-4">
336
+ <p>${aiResponse}</p>
337
+ </div>
338
+ `;
339
+ chatMessages.appendChild(aiMessageDiv);
340
+
341
+ // Scroll to bottom again
342
+ chatMessages.scrollTop = chatMessages.scrollHeight;
343
+ }, 1500);
344
+ }
345
+
346
+ // Sample tab switching functionality
347
+ const tabs = document.querySelectorAll('.flex.border-b button');
348
+ tabs.forEach(tab => {
349
+ tab.addEventListener('click', function() {
350
+ tabs.forEach(t => t.classList.remove('tab-active', 'text-indigo-600'));
351
+ tabs.forEach(t => t.classList.add('text-gray-500'));
352
+ this.classList.add('tab-active', 'text-indigo-600');
353
+ this.classList.remove('text-gray-500');
354
+ });
355
+ });
356
+ });
357
+ </script>
358
+ <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=mutaician/deepsite-first-test" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
359
+ </html>