strangefuture commited on
Commit
f6499ce
·
verified ·
1 Parent(s): 6ae5dfc

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +300 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Negz
3
- emoji: 🦀
4
- colorFrom: red
5
  colorTo: red
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: negz
3
+ emoji: 🐳
4
+ colorFrom: yellow
5
  colorTo: red
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,300 @@
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>You're Amazing! ❤️</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(-20px); }
13
+ }
14
+ @keyframes pulse {
15
+ 0%, 100% { transform: scale(1); }
16
+ 50% { transform: scale(1.05); }
17
+ }
18
+ @keyframes heartBeat {
19
+ 0% { transform: scale(1); }
20
+ 14% { transform: scale(1.3); }
21
+ 28% { transform: scale(1); }
22
+ 42% { transform: scale(1.3); }
23
+ 70% { transform: scale(1); }
24
+ }
25
+ @keyframes mouthTalk {
26
+ 0%, 100% { height: 4px; }
27
+ 50% { height: 8px; }
28
+ }
29
+ .bear-float {
30
+ animation: float 4s ease-in-out infinite;
31
+ }
32
+ .heart-pulse {
33
+ animation: pulse 2s infinite, heartBeat 1.3s ease-in-out infinite;
34
+ }
35
+ .message-pop {
36
+ animation: pulse 0.5s ease-out;
37
+ }
38
+ .confetti {
39
+ position: absolute;
40
+ width: 10px;
41
+ height: 10px;
42
+ background-color: #f00;
43
+ opacity: 0;
44
+ }
45
+ .mouth {
46
+ animation: mouthTalk 0.3s infinite paused;
47
+ }
48
+ .speech-bubble {
49
+ position: relative;
50
+ background: #fff;
51
+ border-radius: 20px;
52
+ padding: 15px;
53
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1);
54
+ margin-bottom: 20px;
55
+ }
56
+ .speech-bubble:after {
57
+ content: '';
58
+ position: absolute;
59
+ bottom: -10px;
60
+ left: 50%;
61
+ width: 0;
62
+ height: 0;
63
+ border: 20px solid transparent;
64
+ border-top-color: #fff;
65
+ border-bottom: 0;
66
+ border-left: 0;
67
+ margin-left: -10px;
68
+ margin-bottom: -20px;
69
+ }
70
+ </style>
71
+ </head>
72
+ <body class="bg-gradient-to-br from-pink-100 to-purple-200 min-h-screen flex flex-col items-center justify-center p-4 overflow-hidden">
73
+ <div class="max-w-md w-full bg-white rounded-3xl shadow-xl overflow-hidden">
74
+ <div class="bg-gradient-to-r from-pink-400 to-purple-500 p-6 text-center">
75
+ <h1 class="text-3xl font-bold text-white">For Someone Special ❤️</h1>
76
+ </div>
77
+
78
+ <div class="p-8 relative">
79
+ <!-- Bear Container -->
80
+ <div class="relative flex flex-col items-center mb-8">
81
+ <!-- Speech Bubble -->
82
+ <div id="speechBubble" class="speech-bubble hidden w-full mb-4">
83
+ <p id="bubbleText" class="text-gray-800"></p>
84
+ </div>
85
+
86
+ <!-- Bear -->
87
+ <div class="bear-float relative">
88
+ <!-- Bear Head -->
89
+ <div class="w-48 h-40 bg-amber-400 rounded-full relative">
90
+ <!-- Ears -->
91
+ <div class="absolute -top-4 -left-4 w-16 h-16 bg-amber-400 rounded-full"></div>
92
+ <div class="absolute -top-4 -right-4 w-16 h-16 bg-amber-400 rounded-full"></div>
93
+ <!-- Inner Ears -->
94
+ <div class="absolute -top-2 -left-2 w-12 h-12 bg-amber-300 rounded-full"></div>
95
+ <div class="absolute -top-2 -right-2 w-12 h-12 bg-amber-300 rounded-full"></div>
96
+ <!-- Eyes -->
97
+ <div class="absolute top-12 left-10 w-8 h-8 bg-white rounded-full flex justify-center items-center">
98
+ <div class="w-4 h-4 bg-black rounded-full"></div>
99
+ </div>
100
+ <div class="absolute top-12 right-10 w-8 h-8 bg-white rounded-full flex justify-center items-center">
101
+ <div class="w-4 h-4 bg-black rounded-full"></div>
102
+ </div>
103
+ <!-- Nose -->
104
+ <div class="absolute top-20 left-1/2 transform -translate-x-1/2 w-10 h-8 bg-black rounded-full"></div>
105
+ <!-- Mouth -->
106
+ <div id="bearMouth" class="mouth absolute top-28 left-1/2 transform -translate-x-1/2 w-16 border-b-4 border-black rounded-b-full"></div>
107
+ <!-- Blush -->
108
+ <div class="absolute top-20 left-4 w-6 h-4 bg-pink-200 rounded-full opacity-70"></div>
109
+ <div class="absolute top-20 right-4 w-6 h-4 bg-pink-200 rounded-full opacity-70"></div>
110
+ </div>
111
+ <!-- Bear Body -->
112
+ <div class="w-40 h-32 bg-amber-400 rounded-full mx-auto -mt-8 relative">
113
+ <!-- Arms -->
114
+ <div class="absolute -left-8 top-8 w-16 h-10 bg-amber-400 rounded-full transform -rotate-30"></div>
115
+ <div class="absolute -right-8 top-8 w-16 h-10 bg-amber-400 rounded-full transform rotate-30"></div>
116
+ <!-- Heart -->
117
+ <div class="absolute -bottom-4 left-1/2 transform -translate-x-1/2 text-red-500 text-4xl heart-pulse">
118
+ <i class="fas fa-heart"></i>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ </div>
123
+
124
+ <!-- Message Box -->
125
+ <div id="messageBox" class="bg-pink-50 rounded-xl p-6 mb-8 text-center min-h-24 flex items-center justify-center message-pop">
126
+ <p id="messageText" class="text-xl font-medium text-gray-800">Click the button to hear how amazing you are!</p>
127
+ </div>
128
+
129
+ <!-- Button -->
130
+ <button id="complimentButton" class="w-full bg-gradient-to-r from-pink-400 to-purple-500 hover:from-pink-500 hover:to-purple-600 text-white font-bold py-4 px-6 rounded-full shadow-lg transform transition hover:scale-105 focus:outline-none">
131
+ <span class="flex items-center justify-center">
132
+ <i class="fas fa-heart mr-2"></i>
133
+ Get Your Compliment
134
+ <i class="fas fa-heart ml-2"></i>
135
+ </span>
136
+ </button>
137
+ </div>
138
+ </div>
139
+
140
+ <div class="mt-8 text-center text-gray-600">
141
+ <p>Made with <i class="fas fa-heart text-red-500"></i> just for you</p>
142
+ </div>
143
+
144
+ <script>
145
+ const compliments = [
146
+ "You're the most beautiful person I know, inside and out!",
147
+ "Your smile brightens my darkest days!",
148
+ "You have the kindest heart of anyone I've ever met!",
149
+ "Your intelligence and creativity amaze me every day!",
150
+ "Being around you makes everything better!",
151
+ "You're stronger than you think and more wonderful than you know!",
152
+ "Your laugh is my favorite sound in the whole world!",
153
+ "You make ordinary moments feel magical!",
154
+ "Your thoughtfulness touches everyone around you!",
155
+ "You're not just my favorite person—you're everyone's favorite person!",
156
+ "Your confidence is inspiring!",
157
+ "You have the most wonderful way of seeing the world!",
158
+ "Everything about you is perfect just the way it is!",
159
+ "You're the reason I believe in good things!",
160
+ "Your presence is a gift to everyone around you!"
161
+ ];
162
+
163
+ const button = document.getElementById('complimentButton');
164
+ const messageText = document.getElementById('messageText');
165
+ const messageBox = document.getElementById('messageBox');
166
+ const bearMouth = document.getElementById('bearMouth');
167
+ const speechBubble = document.getElementById('speechBubble');
168
+ const bubbleText = document.getElementById('bubbleText');
169
+
170
+ // Initialize speech synthesis
171
+ const synth = window.speechSynthesis;
172
+ let voices = [];
173
+
174
+ // Load voices
175
+ function loadVoices() {
176
+ voices = synth.getVoices();
177
+ }
178
+
179
+ // Run once voices have loaded
180
+ if (synth.onvoiceschanged !== undefined) {
181
+ synth.onvoiceschanged = loadVoices;
182
+ }
183
+
184
+ loadVoices();
185
+
186
+ // Speak function with cute voice
187
+ function speak(text) {
188
+ if (synth.speaking) {
189
+ synth.cancel();
190
+ }
191
+
192
+ const utterance = new SpeechSynthesisUtterance(text);
193
+
194
+ // Try to find a cute voice (higher pitch, female voice)
195
+ const cuteVoice = voices.find(voice =>
196
+ voice.name.includes('Female') ||
197
+ voice.name.includes('female') ||
198
+ voice.name.includes('Google UK English Female') ||
199
+ voice.name.includes('Microsoft Zira Desktop')
200
+ );
201
+
202
+ if (cuteVoice) {
203
+ utterance.voice = cuteVoice;
204
+ utterance.pitch = 1.3; // Higher pitch
205
+ utterance.rate = 0.9; // Slightly slower
206
+ }
207
+
208
+ // Animate mouth while speaking
209
+ bearMouth.style.animationPlayState = 'running';
210
+ speechBubble.classList.remove('hidden');
211
+ bubbleText.textContent = text;
212
+
213
+ utterance.onend = function() {
214
+ bearMouth.style.animationPlayState = 'paused';
215
+ setTimeout(() => {
216
+ speechBubble.classList.add('hidden');
217
+ }, 2000);
218
+ };
219
+
220
+ synth.speak(utterance);
221
+ }
222
+
223
+ button.addEventListener('click', () => {
224
+ // Get random compliment
225
+ const randomCompliment = compliments[Math.floor(Math.random() * compliments.length)];
226
+
227
+ // Update message with animation
228
+ messageBox.classList.remove('message-pop');
229
+ void messageBox.offsetWidth; // Trigger reflow
230
+ messageBox.classList.add('message-pop');
231
+
232
+ messageText.textContent = randomCompliment;
233
+
234
+ // Speak the compliment
235
+ speak(randomCompliment);
236
+
237
+ // Create confetti effect
238
+ createConfetti();
239
+ });
240
+
241
+ function createConfetti() {
242
+ const colors = ['#f87171', '#60a5fa', '#34d399', '#fbbf24', '#a78bfa', '#f472b6'];
243
+
244
+ for (let i = 0; i < 50; i++) {
245
+ const confetti = document.createElement('div');
246
+ confetti.className = 'confetti';
247
+ confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
248
+ confetti.style.left = Math.random() * 100 + 'vw';
249
+ confetti.style.top = '-10px';
250
+ confetti.style.transform = `rotate(${Math.random() * 360}deg)`;
251
+
252
+ // Random shape
253
+ const shapes = ['circle', 'square'];
254
+ const shape = shapes[Math.floor(Math.random() * shapes.length)];
255
+ if (shape === 'circle') {
256
+ confetti.style.borderRadius = '50%';
257
+ }
258
+
259
+ // Random size
260
+ const size = Math.random() * 10 + 5;
261
+ confetti.style.width = size + 'px';
262
+ confetti.style.height = size + 'px';
263
+
264
+ document.body.appendChild(confetti);
265
+
266
+ // Animate confetti
267
+ const animationDuration = Math.random() * 3 + 2;
268
+
269
+ confetti.animate([
270
+ { top: '-10px', opacity: 0 },
271
+ { top: '10%', opacity: 1 },
272
+ { top: '100vh', opacity: 0 }
273
+ ], {
274
+ duration: animationDuration * 1000,
275
+ easing: 'cubic-bezier(0.1, 0.8, 0.3, 1)',
276
+ fill: 'forwards'
277
+ });
278
+
279
+ // Remove confetti after animation
280
+ setTimeout(() => {
281
+ confetti.remove();
282
+ }, animationDuration * 1000);
283
+ }
284
+ }
285
+
286
+ // Auto-compliment every 15 seconds if button isn't clicked
287
+ let autoCompliment = setInterval(() => {
288
+ if (!document.hidden && !synth.speaking) {
289
+ const randomCompliment = compliments[Math.floor(Math.random() * compliments.length)];
290
+ messageBox.classList.remove('message-pop');
291
+ void messageBox.offsetWidth;
292
+ messageBox.classList.add('message-pop');
293
+ messageText.textContent = randomCompliment;
294
+ speak(randomCompliment);
295
+ createConfetti();
296
+ }
297
+ }, 15000);
298
+ </script>
299
+ <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=strangefuture/negz" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
300
+ </html>
prompts.txt ADDED
File without changes