micheal012 commited on
Commit
bd268fc
·
verified ·
1 Parent(s): 4dae7b1

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +242 -19
  3. prompts.txt +2 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: My Space
3
- emoji: ⚡
4
- colorFrom: red
5
  colorTo: purple
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-space
3
+ emoji: 🐳
4
+ colorFrom: blue
5
  colorTo: purple
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,242 @@
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>Intergram Clone</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 bounce {
11
+ 0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
12
+ 40% {transform: translateY(-20px);}
13
+ 60% {transform: translateY(-10px);}
14
+ }
15
+
16
+ .chat-window {
17
+ box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
18
+ transition: all 0.3s ease;
19
+ }
20
+
21
+ .message-bubble {
22
+ max-width: 70%;
23
+ word-wrap: break-word;
24
+ }
25
+
26
+ .typing-indicator span {
27
+ display: inline-block;
28
+ width: 8px;
29
+ height: 8px;
30
+ border-radius: 50%;
31
+ background: #999;
32
+ margin: 0 2px;
33
+ animation: bounce 1.4s infinite ease-in-out;
34
+ }
35
+
36
+ .typing-indicator span:nth-child(2) {
37
+ animation-delay: 0.2s;
38
+ }
39
+
40
+ .typing-indicator span:nth-child(3) {
41
+ animation-delay: 0.4s;
42
+ }
43
+
44
+ .chat-toggle {
45
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
46
+ transition: all 0.3s ease;
47
+ }
48
+
49
+ .chat-toggle:hover {
50
+ transform: scale(1.1);
51
+ }
52
+ </style>
53
+ </head>
54
+ <body class="bg-gray-100 min-h-screen">
55
+ <div class="fixed bottom-6 right-6 z-50">
56
+ <!-- Chat Toggle Button -->
57
+ <div id="chatToggle" class="chat-toggle bg-blue-600 w-14 h-14 rounded-full flex items-center justify-center cursor-pointer text-white">
58
+ <i class="fas fa-comment-dots text-2xl"></i>
59
+ </div>
60
+
61
+ <!-- Chat Window -->
62
+ <div id="chatWindow" class="chat-window hidden absolute bottom-20 right-0 w-80 h-[500px] bg-white rounded-lg overflow-hidden flex flex-col">
63
+ <!-- Chat Header -->
64
+ <div class="bg-blue-600 text-white p-4 flex items-center justify-between">
65
+ <div class="flex items-center">
66
+ <div class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-blue-600 mr-2">
67
+ <i class="fas fa-headset"></i>
68
+ </div>
69
+ <div>
70
+ <h3 class="font-semibold">Customer Support</h3>
71
+ <p class="text-xs opacity-80">We're online</p>
72
+ </div>
73
+ </div>
74
+ <div class="flex space-x-2">
75
+ <button class="text-white opacity-70 hover:opacity-100">
76
+ <i class="fas fa-minus"></i>
77
+ </button>
78
+ <button id="closeChat" class="text-white opacity-70 hover:opacity-100">
79
+ <i class="fas fa-times"></i>
80
+ </button>
81
+ </div>
82
+ </div>
83
+
84
+ <!-- Chat Messages -->
85
+ <div id="chatMessages" class="flex-1 p-4 overflow-y-auto bg-gray-50">
86
+ <!-- Initial greeting message -->
87
+ <div class="mb-4 flex">
88
+ <div class="w-8 h-8 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center mr-2">
89
+ <i class="fas fa-headset"></i>
90
+ </div>
91
+ <div>
92
+ <div class="message-bubble bg-white p-3 rounded-lg shadow-sm mb-1">
93
+ <p>Hello! 👋 How can we help you today?</p>
94
+ </div>
95
+ <p class="text-xs text-gray-500">Just now</p>
96
+ </div>
97
+ </div>
98
+
99
+ <!-- Typing indicator (hidden by default) -->
100
+ <div id="typingIndicator" class="mb-4 flex hidden">
101
+ <div class="w-8 h-8 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center mr-2">
102
+ <i class="fas fa-headset"></i>
103
+ </div>
104
+ <div>
105
+ <div class="message-bubble bg-white p-3 rounded-lg shadow-sm">
106
+ <div class="typing-indicator">
107
+ <span></span>
108
+ <span></span>
109
+ <span></span>
110
+ </div>
111
+ </div>
112
+ </div>
113
+ </div>
114
+ </div>
115
+
116
+ <!-- Chat Input -->
117
+ <div class="border-t border-gray-200 p-3 bg-white">
118
+ <div class="flex items-center">
119
+ <input id="messageInput" type="text" placeholder="Type your message..."
120
+ class="flex-1 border border-gray-300 rounded-full px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
121
+ <button id="sendMessage" class="ml-2 w-10 h-10 rounded-full bg-blue-600 text-white flex items-center justify-center">
122
+ <i class="fas fa-paper-plane"></i>
123
+ </button>
124
+ </div>
125
+ <p class="text-xs text-gray-500 mt-2">Press Enter to send</p>
126
+ </div>
127
+ </div>
128
+ </div>
129
+
130
+ <script>
131
+ document.addEventListener('DOMContentLoaded', function() {
132
+ const chatToggle = document.getElementById('chatToggle');
133
+ const chatWindow = document.getElementById('chatWindow');
134
+ const closeChat = document.getElementById('closeChat');
135
+ const messageInput = document.getElementById('messageInput');
136
+ const sendMessage = document.getElementById('sendMessage');
137
+ const chatMessages = document.getElementById('chatMessages');
138
+ const typingIndicator = document.getElementById('typingIndicator');
139
+
140
+ let isChatOpen = false;
141
+
142
+ // Toggle chat window
143
+ chatToggle.addEventListener('click', function() {
144
+ isChatOpen = !isChatOpen;
145
+ chatWindow.classList.toggle('hidden');
146
+ chatToggle.innerHTML = isChatOpen
147
+ ? '<i class="fas fa-times text-2xl"></i>'
148
+ : '<i class="fas fa-comment-dots text-2xl"></i>';
149
+ });
150
+
151
+ // Close chat window
152
+ closeChat.addEventListener('click', function() {
153
+ isChatOpen = false;
154
+ chatWindow.classList.add('hidden');
155
+ chatToggle.innerHTML = '<i class="fas fa-comment-dots text-2xl"></i>';
156
+ });
157
+
158
+ // Send message
159
+ function sendMessageHandler() {
160
+ const message = messageInput.value.trim();
161
+ if (message) {
162
+ // Add user message
163
+ const userMessageDiv = document.createElement('div');
164
+ userMessageDiv.className = 'mb-4 flex justify-end';
165
+ userMessageDiv.innerHTML = `
166
+ <div>
167
+ <div class="message-bubble bg-blue-600 text-white p-3 rounded-lg shadow-sm mb-1">
168
+ <p>${message}</p>
169
+ </div>
170
+ <p class="text-xs text-gray-500 text-right">Just now</p>
171
+ </div>
172
+ <div class="w-8 h-8 rounded-full bg-blue-600 text-white flex items-center justify-center ml-2">
173
+ <i class="fas fa-user"></i>
174
+ </div>
175
+ `;
176
+ chatMessages.appendChild(userMessageDiv);
177
+
178
+ // Clear input
179
+ messageInput.value = '';
180
+
181
+ // Show typing indicator
182
+ typingIndicator.classList.remove('hidden');
183
+
184
+ // Scroll to bottom
185
+ chatMessages.scrollTop = chatMessages.scrollHeight;
186
+
187
+ // Simulate reply after 1-3 seconds
188
+ setTimeout(() => {
189
+ typingIndicator.classList.add('hidden');
190
+
191
+ const replies = [
192
+ "I understand your concern. Let me check that for you.",
193
+ "Thanks for reaching out! We'll help you with that.",
194
+ "That's a great question! Here's what I found...",
195
+ "I appreciate your patience. Here's the information you requested.",
196
+ "Let me connect you with the right team to help with this."
197
+ ];
198
+
199
+ const randomReply = replies[Math.floor(Math.random() * replies.length)];
200
+
201
+ const botMessageDiv = document.createElement('div');
202
+ botMessageDiv.className = 'mb-4 flex';
203
+ botMessageDiv.innerHTML = `
204
+ <div class="w-8 h-8 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center mr-2">
205
+ <i class="fas fa-headset"></i>
206
+ </div>
207
+ <div>
208
+ <div class="message-bubble bg-white p-3 rounded-lg shadow-sm mb-1">
209
+ <p>${randomReply}</p>
210
+ </div>
211
+ <p class="text-xs text-gray-500">Just now</p>
212
+ </div>
213
+ `;
214
+ chatMessages.appendChild(botMessageDiv);
215
+
216
+ // Scroll to bottom
217
+ chatMessages.scrollTop = chatMessages.scrollHeight;
218
+ }, 1000 + Math.random() * 2000);
219
+ }
220
+ }
221
+
222
+ // Send message on button click
223
+ sendMessage.addEventListener('click', sendMessageHandler);
224
+
225
+ // Send message on Enter key
226
+ messageInput.addEventListener('keypress', function(e) {
227
+ if (e.key === 'Enter') {
228
+ sendMessageHandler();
229
+ }
230
+ });
231
+
232
+ // Initial animation for chat toggle
233
+ setTimeout(() => {
234
+ chatToggle.classList.add('animate-bounce');
235
+ setTimeout(() => {
236
+ chatToggle.classList.remove('animate-bounce');
237
+ }, 2000);
238
+ }, 3000);
239
+ });
240
+ </script>
241
+ <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=micheal012/my-space" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
242
+ </html>
prompts.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ clone intergram
2
+ run the app