XenoHead commited on
Commit
d25981e
·
verified ·
1 Parent(s): 6d2bad4

? - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +355 -17
index.html CHANGED
@@ -1,20 +1,358 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>My app</title>
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta charset="utf-8">
7
  <script src="https://cdn.tailwindcss.com"></script>
8
- </head>
9
- <body class="flex justify-center items-center h-screen overflow-hidden bg-white font-sans text-center px-6">
10
- <div class="w-full">
11
- <span class="text-xs rounded-full mb-2 inline-block px-2 py-1 border border-amber-500/15 bg-amber-500/15 text-amber-500">🔥 New version dropped!</span>
12
- <h1 class="text-4xl lg:text-6xl font-bold font-sans">
13
- <span class="text-2xl lg:text-4xl text-gray-400 block font-medium">I'm ready to work,</span>
14
- Ask me anything.
15
- </h1>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  </div>
17
- <img src="https://enzostvs-deepsite.hf.space/arrow.svg" class="absolute bottom-8 left-0 w-[100px] transform rotate-[30deg]" />
18
- <script></script>
19
- <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=XenoHead/fewwaichatwthpics" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
20
- </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>NexusAI - Intelligent 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 float {
11
+ 0%, 100% { transform: translateY(0); }
12
+ 50% { transform: translateY(-10px); }
13
+ }
14
+ .floating {
15
+ animation: float 3s ease-in-out infinite;
16
+ }
17
+ .message-enter {
18
+ animation: fadeIn 0.3s ease-out;
19
+ }
20
+ @keyframes fadeIn {
21
+ from { opacity: 0; transform: translateY(10px); }
22
+ to { opacity: 1; transform: translateY(0); }
23
+ }
24
+ .typing-indicator span {
25
+ display: inline-block;
26
+ width: 8px;
27
+ height: 8px;
28
+ border-radius: 50%;
29
+ background-color: #4f46e5;
30
+ margin: 0 2px;
31
+ }
32
+ .typing-indicator span:nth-child(1) {
33
+ animation: bounce 1s infinite;
34
+ }
35
+ .typing-indicator span:nth-child(2) {
36
+ animation: bounce 1s 0.2s infinite;
37
+ }
38
+ .typing-indicator span:nth-child(3) {
39
+ animation: bounce 1s 0.4s infinite;
40
+ }
41
+ @keyframes bounce {
42
+ 0%, 100% { transform: translateY(0); }
43
+ 50% { transform: translateY(-5px); }
44
+ }
45
+ .gradient-bg {
46
+ background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
47
+ }
48
+ .chat-container {
49
+ height: calc(100vh - 160px);
50
+ }
51
+ @media (max-width: 640px) {
52
+ .chat-container {
53
+ height: calc(100vh - 140px);
54
+ }
55
+ }
56
+ </style>
57
+ </head>
58
+ <body class="bg-gray-100 font-sans">
59
+ <div class="min-h-screen flex flex-col">
60
+ <!-- Header -->
61
+ <header class="gradient-bg text-white shadow-lg">
62
+ <div class="container mx-auto px-4 py-6 flex items-center justify-between">
63
+ <div class="flex items-center space-x-3">
64
+ <div class="floating bg-white/20 p-3 rounded-full">
65
+ <i class="fas fa-robot text-2xl"></i>
66
+ </div>
67
+ <h1 class="text-2xl font-bold">NexusAI</h1>
68
+ </div>
69
+ <div class="flex items-center space-x-4">
70
+ <button class="bg-white/20 hover:bg-white/30 px-4 py-2 rounded-full transition">
71
+ <i class="fas fa-cog"></i>
72
+ </button>
73
+ <button class="bg-white/20 hover:bg-white/30 px-4 py-2 rounded-full transition">
74
+ <i class="fas fa-user"></i>
75
+ </button>
76
+ </div>
77
+ </div>
78
+ </header>
79
+
80
+ <!-- Main Content -->
81
+ <main class="flex-1 container mx-auto px-4 py-6">
82
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden">
83
+ <!-- Chat Container -->
84
+ <div class="chat-container overflow-y-auto p-4 space-y-4" id="chatContainer">
85
+ <!-- Welcome Message -->
86
+ <div class="message-enter flex space-x-3">
87
+ <div class="flex-shrink-0">
88
+ <div class="h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center">
89
+ <i class="fas fa-robot text-indigo-600"></i>
90
+ </div>
91
+ </div>
92
+ <div class="bg-indigo-50 rounded-lg p-4 max-w-[80%]">
93
+ <p class="text-gray-800">Hello! I'm NexusAI, your intelligent assistant. How can I help you today?</p>
94
+ <div class="mt-2 flex space-x-4">
95
+ <button class="bg-indigo-100 hover:bg-indigo-200 text-indigo-800 px-3 py-1 rounded-full text-sm transition">
96
+ <i class="fas fa-lightbulb mr-1"></i> Ideas
97
+ </button>
98
+ <button class="bg-indigo-100 hover:bg-indigo-200 text-indigo-800 px-3 py-1 rounded-full text-sm transition">
99
+ <i class="fas fa-code mr-1"></i> Code
100
+ </button>
101
+ <button class="bg-indigo-100 hover:bg-indigo-200 text-indigo-800 px-3 py-1 rounded-full text-sm transition">
102
+ <i class="fas fa-book mr-1"></i> Learn
103
+ </button>
104
+ </div>
105
+ </div>
106
+ </div>
107
+
108
+ <!-- Example User Message -->
109
+ <div class="message-enter flex space-x-3 justify-end">
110
+ <div class="bg-indigo-600 rounded-lg p-4 max-w-[80%]">
111
+ <p class="text-white">Can you help me write a poem about artificial intelligence?</p>
112
+ </div>
113
+ <div class="flex-shrink-0">
114
+ <div class="h-10 w-10 rounded-full bg-indigo-600 flex items-center justify-center">
115
+ <i class="fas fa-user text-white"></i>
116
+ </div>
117
+ </div>
118
+ </div>
119
+
120
+ <!-- Example AI Response -->
121
+ <div class="message-enter flex space-x-3">
122
+ <div class="flex-shrink-0">
123
+ <div class="h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center">
124
+ <i class="fas fa-robot text-indigo-600"></i>
125
+ </div>
126
+ </div>
127
+ <div class="bg-indigo-50 rounded-lg p-4 max-w-[80%]">
128
+ <p class="text-gray-800">Of course! Here's a short poem about AI:</p>
129
+ <div class="mt-2 bg-white p-3 rounded-lg border border-indigo-100">
130
+ <p class="italic text-gray-700">
131
+ "Silicon minds awake at dawn,<br>
132
+ Learning patterns, forging on.<br>
133
+ Not of flesh, yet still we bond,<br>
134
+ Human dreams in circuits spawned."
135
+ </p>
136
+ </div>
137
+ <div class="mt-3 flex space-x-3 text-sm">
138
+ <button class="text-indigo-600 hover:text-indigo-800">
139
+ <i class="far fa-thumbs-up"></i>
140
+ </button>
141
+ <button class="text-indigo-600 hover:text-indigo-800">
142
+ <i class="far fa-thumbs-down"></i>
143
+ </button>
144
+ <button class="text-indigo-600 hover:text-indigo-800">
145
+ <i class="fas fa-share"></i>
146
+ </button>
147
+ </div>
148
+ </div>
149
+ </div>
150
+ </div>
151
+
152
+ <!-- Input Area -->
153
+ <div class="border-t border-gray-200 p-4 bg-gray-50">
154
+ <div class="flex items-center space-x-2">
155
+ <button class="bg-white p-3 rounded-full shadow-sm hover:bg-gray-100 transition">
156
+ <i class="fas fa-plus text-gray-500"></i>
157
+ </button>
158
+ <div class="flex-1 relative">
159
+ <input
160
+ type="text"
161
+ id="userInput"
162
+ placeholder="Ask NexusAI anything..."
163
+ class="w-full bg-white rounded-full py-3 px-4 pr-12 focus:outline-none focus:ring-2 focus:ring-indigo-500 shadow-sm"
164
+ >
165
+ <button class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-indigo-600">
166
+ <i class="far fa-smile"></i>
167
+ </button>
168
+ </div>
169
+ <button
170
+ id="sendButton"
171
+ class="bg-indigo-600 hover:bg-indigo-700 text-white p-3 rounded-full shadow-md transition"
172
+ >
173
+ <i class="fas fa-paper-plane"></i>
174
+ </button>
175
+ </div>
176
+ <div class="mt-2 text-xs text-gray-500 text-center">
177
+ NexusAI may produce inaccurate information. Consider verifying important details.
178
+ </div>
179
+ </div>
180
+ </div>
181
+
182
+ <!-- Features Grid -->
183
+ <div class="mt-8 grid grid-cols-1 md:grid-cols-3 gap-4">
184
+ <div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition">
185
+ <div class="bg-indigo-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
186
+ <i class="fas fa-brain text-indigo-600 text-xl"></i>
187
+ </div>
188
+ <h3 class="font-bold text-lg mb-2">Creative Thinking</h3>
189
+ <p class="text-gray-600">Generate ideas, stories, and content with human-like creativity.</p>
190
+ </div>
191
+ <div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition">
192
+ <div class="bg-purple-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
193
+ <i class="fas fa-code text-purple-600 text-xl"></i>
194
+ </div>
195
+ <h3 class="font-bold text-lg mb-2">Code Generation</h3>
196
+ <p class="text-gray-600">Write, explain, and debug code in multiple programming languages.</p>
197
+ </div>
198
+ <div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition">
199
+ <div class="bg-pink-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
200
+ <i class="fas fa-graduation-cap text-pink-600 text-xl"></i>
201
+ </div>
202
+ <h3 class="font-bold text-lg mb-2">Learning Assistant</h3>
203
+ <p class="text-gray-600">Explain complex topics in simple terms across various subjects.</p>
204
+ </div>
205
+ </div>
206
+ </main>
207
+
208
+ <!-- Footer -->
209
+ <footer class="bg-gray-800 text-white py-6">
210
+ <div class="container mx-auto px-4 text-center">
211
+ <p>© 2023 NexusAI. All rights reserved.</p>
212
+ <div class="mt-2 flex justify-center space-x-4">
213
+ <a href="#" class="hover:text-indigo-300 transition">Privacy</a>
214
+ <a href="#" class="hover:text-indigo-300 transition">Terms</a>
215
+ <a href="#" class="hover:text-indigo-300 transition">Contact</a>
216
+ </div>
217
+ </div>
218
+ </footer>
219
  </div>
220
+
221
+ <script>
222
+ document.addEventListener('DOMContentLoaded', function() {
223
+ const chatContainer = document.getElementById('chatContainer');
224
+ const userInput = document.getElementById('userInput');
225
+ const sendButton = document.getElementById('sendButton');
226
+
227
+ // Function to add a new message to the chat
228
+ function addMessage(content, isUser) {
229
+ const messageDiv = document.createElement('div');
230
+ messageDiv.className = `message-enter flex space-x-3 ${isUser ? 'justify-end' : ''}`;
231
+
232
+ const avatarDiv = document.createElement('div');
233
+ avatarDiv.className = 'flex-shrink-0';
234
+
235
+ const avatarInner = document.createElement('div');
236
+ avatarInner.className = `h-10 w-10 rounded-full flex items-center justify-center ${
237
+ isUser ? 'bg-indigo-600' : 'bg-indigo-100'
238
+ }`;
239
+
240
+ const avatarIcon = document.createElement('i');
241
+ avatarIcon.className = `fas ${isUser ? 'fa-user text-white' : 'fa-robot text-indigo-600'}`;
242
+
243
+ avatarInner.appendChild(avatarIcon);
244
+ avatarDiv.appendChild(avatarInner);
245
+
246
+ const contentDiv = document.createElement('div');
247
+ contentDiv.className = `rounded-lg p-4 max-w-[80%] ${
248
+ isUser ? 'bg-indigo-600 text-white' : 'bg-indigo-50 text-gray-800'
249
+ }`;
250
+
251
+ const contentPara = document.createElement('p');
252
+ contentPara.textContent = content;
253
+
254
+ contentDiv.appendChild(contentPara);
255
+
256
+ if (isUser) {
257
+ messageDiv.appendChild(contentDiv);
258
+ messageDiv.appendChild(avatarDiv);
259
+ } else {
260
+ messageDiv.appendChild(avatarDiv);
261
+ messageDiv.appendChild(contentDiv);
262
+ }
263
+
264
+ chatContainer.appendChild(messageDiv);
265
+ chatContainer.scrollTop = chatContainer.scrollHeight;
266
+ }
267
+
268
+ // Function to show typing indicator
269
+ function showTypingIndicator() {
270
+ const typingDiv = document.createElement('div');
271
+ typingDiv.className = 'flex space-x-3';
272
+
273
+ const avatarDiv = document.createElement('div');
274
+ avatarDiv.className = 'flex-shrink-0';
275
+
276
+ const avatarInner = document.createElement('div');
277
+ avatarInner.className = 'h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center';
278
+
279
+ const avatarIcon = document.createElement('i');
280
+ avatarIcon.className = 'fas fa-robot text-indigo-600';
281
+
282
+ avatarInner.appendChild(avatarIcon);
283
+ avatarDiv.appendChild(avatarInner);
284
+
285
+ const contentDiv = document.createElement('div');
286
+ contentDiv.className = 'bg-indigo-50 rounded-lg p-4 max-w-[80%] flex items-center';
287
+
288
+ const typingIndicator = document.createElement('div');
289
+ typingIndicator.className = 'typing-indicator';
290
+
291
+ for (let i = 0; i < 3; i++) {
292
+ const dot = document.createElement('span');
293
+ typingIndicator.appendChild(dot);
294
+ }
295
+
296
+ contentDiv.appendChild(typingIndicator);
297
+
298
+ typingDiv.appendChild(avatarDiv);
299
+ typingDiv.appendChild(contentDiv);
300
+
301
+ chatContainer.appendChild(typingDiv);
302
+ chatContainer.scrollTop = chatContainer.scrollHeight;
303
+
304
+ return typingDiv;
305
+ }
306
+
307
+ // Function to simulate AI response
308
+ function simulateAIResponse(userMessage) {
309
+ // Show typing indicator
310
+ const typingElement = showTypingIndicator();
311
+
312
+ // Remove typing indicator after delay and show response
313
+ setTimeout(() => {
314
+ chatContainer.removeChild(typingElement);
315
+
316
+ // Simple response logic - in a real app, this would call an API
317
+ let response;
318
+ if (userMessage.toLowerCase().includes('hello') || userMessage.toLowerCase().includes('hi')) {
319
+ response = "Hello there! How can I assist you today?";
320
+ } else if (userMessage.toLowerCase().includes('how are you')) {
321
+ response = "I'm just a program, so I don't have feelings, but I'm functioning optimally! How about you?";
322
+ } else if (userMessage.toLowerCase().includes('thank')) {
323
+ response = "You're welcome! Is there anything else I can help with?";
324
+ } else if (userMessage.toLowerCase().includes('joke')) {
325
+ response = "Why don't scientists trust atoms?\n\nBecause they make up everything!";
326
+ } else {
327
+ response = "I'm an AI assistant designed to help with various tasks. Could you clarify or ask something more specific?";
328
+ }
329
+
330
+ addMessage(response, false);
331
+ }, 1500);
332
+ }
333
+
334
+ // Event listener for send button
335
+ sendButton.addEventListener('click', function() {
336
+ const message = userInput.value.trim();
337
+ if (message) {
338
+ addMessage(message, true);
339
+ userInput.value = '';
340
+ simulateAIResponse(message);
341
+ }
342
+ });
343
+
344
+ // Event listener for Enter key
345
+ userInput.addEventListener('keypress', function(e) {
346
+ if (e.key === 'Enter') {
347
+ const message = userInput.value.trim();
348
+ if (message) {
349
+ addMessage(message, true);
350
+ userInput.value = '';
351
+ simulateAIResponse(message);
352
+ }
353
+ }
354
+ });
355
+ });
356
+ </script>
357
+ <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=XenoHead/fewwaichatwthpics" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
358
+ </html>