mukolaz44 commited on
Commit
c676c32
·
verified ·
1 Parent(s): 018b972

undefined - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +403 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Pooko
3
- emoji:
4
  colorFrom: red
5
- colorTo: blue
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: pooko
3
+ emoji: 🐳
4
  colorFrom: red
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,403 @@
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>Multilingual Rhymes Maker</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
9
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');
11
+
12
+ :root {
13
+ --polish-gradient: linear-gradient(135deg, #dc143c, #ff6347);
14
+ --russian-gradient: linear-gradient(135deg, #0039a6, #d52b1e);
15
+ --english-gradient: linear-gradient(135deg, #0047AB, #B0E0E6);
16
+ --dark-bg: #0f172a;
17
+ }
18
+
19
+ body {
20
+ font-family: 'Poppins', sans-serif;
21
+ background: linear-gradient(135deg, #1a202c, #2d3748);
22
+ min-height: 100vh;
23
+ color: #f0f9ff;
24
+ }
25
+
26
+ .card {
27
+ box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
28
+ border-radius: 20px;
29
+ overflow: hidden;
30
+ transform: translateY(0);
31
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
32
+ }
33
+
34
+ .card:hover {
35
+ transform: translateY(-10px);
36
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
37
+ }
38
+
39
+ .rhyme-card {
40
+ animation: fadeIn 0.5s ease-out;
41
+ transition: transform 0.3s ease;
42
+ }
43
+
44
+ .rhyme-card:hover {
45
+ transform: scale(1.03);
46
+ }
47
+
48
+ @keyframes fadeIn {
49
+ from { opacity: 0; transform: translateY(10px); }
50
+ to { opacity: 1; transform: translateY(0); }
51
+ }
52
+
53
+ .tabs li.active {
54
+ position: relative;
55
+ }
56
+
57
+ .tabs li.active::after {
58
+ content: '';
59
+ position: absolute;
60
+ bottom: -2px;
61
+ left: 20%;
62
+ width: 60%;
63
+ height: 3px;
64
+ background: currentColor;
65
+ border-radius: 10px;
66
+ }
67
+
68
+ .language-card {
69
+ position: relative;
70
+ overflow: hidden;
71
+ transition: all 0.3s ease;
72
+ cursor: pointer;
73
+ }
74
+
75
+ .language-card:hover::before {
76
+ content: '';
77
+ position: absolute;
78
+ top: 0;
79
+ left: 0;
80
+ right: 0;
81
+ bottom: 0;
82
+ background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
83
+ z-index: 1;
84
+ }
85
+
86
+ .language-card.active {
87
+ transform: scale(1.05);
88
+ box-shadow: 0 10px 25px rgba(0,0,0,0.3);
89
+ }
90
+
91
+ .language-card.active::after {
92
+ content: '✓';
93
+ position: absolute;
94
+ top: 10px;
95
+ right: 10px;
96
+ width: 30px;
97
+ height: 30px;
98
+ background-color: #3b82f6;
99
+ color: white;
100
+ border-radius: 50%;
101
+ display: flex;
102
+ align-items: center;
103
+ justify-content: center;
104
+ z-index: 2;
105
+ font-weight: bold;
106
+ }
107
+
108
+ .floating-button {
109
+ animation: float 3s ease-in-out infinite;
110
+ }
111
+
112
+ @keyframes float {
113
+ 0% { transform: translateY(0px); }
114
+ 50% { transform: translateY(-10px); }
115
+ 100% { transform: translateY(0px); }
116
+ }
117
+
118
+ .rhyme-chip {
119
+ display: inline-block;
120
+ background: rgba(255,255,255,0.1);
121
+ padding: 5px 15px;
122
+ border-radius: 20px;
123
+ margin: 5px;
124
+ transition: all 0.2s ease;
125
+ cursor: pointer;
126
+ }
127
+
128
+ .rhyme-chip:hover {
129
+ background: rgba(59, 130, 246, 0.8);
130
+ transform: scale(1.05);
131
+ }
132
+
133
+ #inputWord:focus {
134
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
135
+ }
136
+
137
+ .flag-icon {
138
+ width: 24px;
139
+ height: 24px;
140
+ display: inline-block;
141
+ margin-right: 8px;
142
+ border-radius: 50%;
143
+ }
144
+ </style>
145
+ </head>
146
+ <body class="min-h-screen flex flex-col items-center py-8 px-4">
147
+ <!-- Header Section -->
148
+ <header class="w-full max-w-6xl text-center mb-8">
149
+ <h1 class="text-4xl md:text-5xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-blue-400 to-teal-400 mb-4">
150
+ Rhymes Maker
151
+ </h1>
152
+ <p class="text-xl text-gray-300 max-w-2xl mx-auto">
153
+ Find perfect rhymes in Polish, Russian and English. Create poetic expressions effortlessly.
154
+ </p>
155
+ <div class="mt-6 flex flex-wrap justify-center gap-4">
156
+ <div class="flex items-center">
157
+ <span class="flag-icon bg-gradient-to-r from-red-500 to-white"></span>
158
+ <span>Polish</span>
159
+ </div>
160
+ <div class="flex items-center">
161
+ <span class="flag-icon bg-gradient-to-r from-blue-500 to-red-500"></span>
162
+ <span>Russian</span>
163
+ </div>
164
+ <div class="flex items-center">
165
+ <span class="flag-icon bg-gradient-to-r from-blue-700 to-red-600"></span>
166
+ <span>English</span>
167
+ </div>
168
+ </div>
169
+ </header>
170
+
171
+ <!-- Language Selector -->
172
+ <section class="w-full max-w-4xl mb-12">
173
+ <h2 class="text-2xl font-semibold text-center mb-6">Select Language</h2>
174
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
175
+ <!-- Polish Card -->
176
+ <div class="language-card active card bg-gradient-to-br from-[#dc143c] to-[#ff6347] text-white p-6 flex flex-col items-center">
177
+ <div class="text-4xl mb-4">🇵🇱</div>
178
+ <h3 class="text-xl font-bold">Polish</h3>
179
+ <p class="text-center mt-2 opacity-90">Over 50,000 polish words</p>
180
+ <div class="mt-4 flex items-center">
181
+ <i class="fas fa-book mr-2"></i>
182
+ <span>Rich vocabulary</span>
183
+ </div>
184
+ </div>
185
+
186
+ <!-- Russian Card -->
187
+ <div class="language-card card bg-gradient-to-br from-[#0039a6] to-[#d52b1e] text-white p-6 flex flex-col items-center">
188
+ <div class="text-4xl mb-4">🇷🇺</div>
189
+ <h3 class="text-xl font-bold">Russian</h3>
190
+ <p class="text-center mt-2 opacity-90">Extensive rhyme database</p>
191
+ <div class="mt-4 flex items-center">
192
+ <i class="fas fa-feather mr-2"></i>
193
+ <span>Poetic expressions</span>
194
+ </div>
195
+ </div>
196
+
197
+ <!-- English Card -->
198
+ <div class="language-card card bg-gradient-to-br from-[#0047AB] to-[#B0E0E6] text-white p-6 flex flex-col items-center">
199
+ <div class="text-4xl mb-4">🇬🇧</div>
200
+ <h3 class="text-xl font-bold">English</h3>
201
+ <p class="text-center mt-2 opacity-90">Over 100,000 english words</p>
202
+ <div class="mt-4 flex items-center">
203
+ <i class="fas fa-language mr-2"></i>
204
+ <span>Perfect rhymes</span>
205
+ </div>
206
+ </div>
207
+ </div>
208
+ </section>
209
+
210
+ <!-- Input Section -->
211
+ <section class="w-full max-w-2xl mb-12">
212
+ <div class="card bg-gray-800 p-6 md:p-8">
213
+ <div class="flex items-center mb-6">
214
+ <div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center mr-4">
215
+ <i class="fas fa-keyboard text-white"></i>
216
+ </div>
217
+ <h2 class="text-2xl font-bold">Find Rhymes</h2>
218
+ </div>
219
+
220
+ <div class="flex flex-col sm:flex-row gap-4 mb-6">
221
+ <div class="relative flex-grow">
222
+ <input
223
+ type="text"
224
+ id="inputWord"
225
+ placeholder="Enter a word..."
226
+ class="w-full px-6 py-4 rounded-2xl bg-gray-700 border border-gray-600 text-white focus:outline-none focus:border-blue-500 text-lg"
227
+ >
228
+ <i class="fas fa-pen absolute right-4 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
229
+ </div>
230
+ <button id="findRhymesBtn" class="px-8 py-4 bg-gradient-to-r from-blue-500 to-teal-500 text-white font-semibold rounded-2xl hover:from-blue-600 hover:to-teal-600 transition-all duration-300 transform hover:scale-105">
231
+ <i class="fas fa-search mr-2"></i> Find Rhymes
232
+ </button>
233
+ </div>
234
+
235
+ <div class="flex justify-between text-gray-400">
236
+ <div class="flex items-center">
237
+ <i class="fas fa-lightbulb mr-2 text-yellow-400"></i>
238
+ <span>Tip: Use nouns for best results</span>
239
+ </div>
240
+ <div>
241
+ <span>Rhyme level: <span class="text-blue-400">Advanced</span></span>
242
+ </div>
243
+ </div>
244
+ </div>
245
+ </section>
246
+
247
+ <!-- Results Section -->
248
+ <section class="w-full max-w-4xl mb-12">
249
+ <div class="flex justify-between items-center mb-6">
250
+ <h2 class="text-2xl font-bold">Rhyme Results</h2>
251
+ <div class="text-gray-300">
252
+ <span id="resultCount" class="bg-blue-500 text-white py-1 px-3 rounded-full">0</span>
253
+ <span> words found</span>
254
+ </div>
255
+ </div>
256
+
257
+ <!-- Results Tabs -->
258
+ <ul class="tabs flex border-b border-gray-700 mb-6">
259
+ <li class="text-lg py-2 px-4 font-medium cursor-pointer active text-blue-400">Perfect Rhymes</li>
260
+ <li class="text-lg py-2 px-4 font-medium cursor-pointer text-gray-400">Near Rhymes</li>
261
+ <li class="text-lg py-2 px-4 font-medium cursor-pointer text-gray-400">Syllable Rhymes</li>
262
+ </ul>
263
+
264
+ <!-- Rhymes Display -->
265
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
266
+ <div class="rhyme-card card bg-gradient-to-br from-blue-900/50 to-indigo-900/50 p-6">
267
+ <div class="flex items-center mb-3">
268
+ <div class="w-8 h-8 rounded-full bg-purple-500 flex items-center justify-center mr-3">
269
+ <i class="fas fa-star"></i>
270
+ </div>
271
+ <h3 class="font-semibold text-lg">Wind</h3>
272
+ </div>
273
+ <p class="text-sm text-gray-300 mb-2">English · 1 syllable</p>
274
+ <div>
275
+ <span class="rhyme-chip">remind</span>
276
+ <span class="rhyme-chip">kind</span>
277
+ <span class="rhyme-chip">behind</span>
278
+ <span class="rhyme-chip">mind</span>
279
+ </div>
280
+ </div>
281
+
282
+ <div class="rhyme-card card bg-gradient-to-br from-rose-900/50 to-pink-900/50 p-6">
283
+ <div class="flex items-center mb-3">
284
+ <div class="w-8 h-8 rounded-full bg-red-500 flex items-center justify-center mr-3">
285
+ <i class="fas fa-heart"></i>
286
+ </div>
287
+ <h3 class="font-semibold text-lg">Miłość</h3>
288
+ </div>
289
+ <p class="text-sm text-gray-300 mb-2">Polish · 2 syllables</p>
290
+ <div>
291
+ <span class="rhyme-chip">radość</span>
292
+ <span class="rhyme-chip">słodycz</span>
293
+ <span class="rhyme-chip">czułość</span>
294
+ <span class="rhyme-chip">trwałość</span>
295
+ </div>
296
+ </div>
297
+
298
+ <div class="rhyme-card card bg-gradient-to-br from-red-900/50 to-orange-900/50 p-6">
299
+ <div class="flex items-center mb-3">
300
+ <div class="w-8 h-8 rounded-full bg-orange-500 flex items-center justify-center mr-3">
301
+ <i class="fas fa-sun"></i>
302
+ </div>
303
+ <h3 class="font-semibold text-lg">Любовь</h3>
304
+ </div>
305
+ <p class="text-sm text-gray-300 mb-2">Russian · 2 syllables</p>
306
+ <div>
307
+ <span class="rhyme-chip">кровь</span>
308
+ <span class="rhyme-chip">вновь</span>
309
+ <span class="rhyme-chip">морковь</span>
310
+ <span class="rhyme-chip">плотин</span>
311
+ </div>
312
+ </div>
313
+ </div>
314
+ </section>
315
+
316
+ <!-- CTA Section -->
317
+ <section class="w-full max-w-2xl mb-12">
318
+ <div class="card bg-gradient-to-r from-indigo-900 to-purple-900 p-8 text-center">
319
+ <h2 class="text-2xl font-bold mb-4">Create Beautiful Poems</h2>
320
+ <p class="text-gray-200 mb-6">Save, share, and even create AI-generated poems with your rhymes</p>
321
+ <div class="flex flex-col sm:flex-row gap-4 justify-center">
322
+ <button class="px-6 py-3 bg-white text-gray-800 font-semibold rounded-xl hover:bg-gray-100 transition-all">
323
+ <i class="fas fa-save mr-2"></i> Save Results
324
+ </button>
325
+ <button class="px-6 py-3 bg-gradient-to-r from-pink-500 to-rose-500 text-white font-semibold rounded-xl hover:from-pink-600 hover:to-rose-600 transition-all">
326
+ <i class="fas fa-magic mr-2"></i> Generate Poem
327
+ </button>
328
+ </div>
329
+ </div>
330
+ </section>
331
+
332
+ <!-- Floating Action Button -->
333
+ <button class="floating-button fixed bottom-8 right-8 w-16 h-16 rounded-full bg-gradient-to-r from-blue-500 to-teal-500 text-white flex items-center justify-center shadow-xl z-10">
334
+ <i class="fas fa-plus text-xl"></i>
335
+ </button>
336
+
337
+ <!-- Footer -->
338
+ <footer class="w-full max-w-6xl text-center mt-auto py-8 text-gray-500">
339
+ <div class="flex justify-center space-x-6 mb-4">
340
+ <a href="#" class="hover:text-white transition"><i class="fab fa-github"></i></a>
341
+ <a href="#" class="hover:text-white transition"><i class="fab fa-twitter"></i></a>
342
+ <a href="#" class="hover:text-white transition"><i class="fab fa-facebook"></i></a>
343
+ <a href="#" class="hover:text-white transition"><i class="fab fa-instagram"></i></a>
344
+ </div>
345
+ <p>© 2023 Rhymes Maker. The multilingual poetry assistant.</p>
346
+ <p class="mt-2 text-sm">Supporting Polish (Polski), Russian (Русский), and English languages.</p>
347
+ </footer>
348
+
349
+ <script>
350
+ // Change active language
351
+ document.querySelectorAll('.language-card').forEach(card => {
352
+ card.addEventListener('click', function() {
353
+ document.querySelectorAll('.language-card').forEach(c => c.classList.remove('active'));
354
+ this.classList.add('active');
355
+ });
356
+ });
357
+
358
+ // Toggle active tab
359
+ document.querySelectorAll('.tabs li').forEach(tab => {
360
+ tab.addEventListener('click', function() {
361
+ document.querySelectorAll('.tabs li').forEach(t => t.classList.remove('active'));
362
+ this.classList.add('active');
363
+ });
364
+ });
365
+
366
+ // Simulate finding rhymes
367
+ document.getElementById('findRhymesBtn').addEventListener('click', function() {
368
+ const input = document.getElementById('inputWord').value.trim();
369
+ const resultCount = document.getElementById('resultCount');
370
+
371
+ if(input === '') {
372
+ resultCount.textContent = '0';
373
+ return;
374
+ }
375
+
376
+ // Simulate loading effect
377
+ this.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Finding...';
378
+ this.disabled = true;
379
+
380
+ setTimeout(() => {
381
+ this.innerHTML = '<i class="fas fa-search mr-2"></i> Find Rhymes';
382
+ this.disabled = false;
383
+
384
+ // Show a random number of results between 12 and 27
385
+ const count = Math.floor(Math.random() * 15) + 12;
386
+ resultCount.textContent = count;
387
+
388
+ // Show success notification
389
+ document.body.insertAdjacentHTML('beforeend', `
390
+ <div class="fixed bottom-6 left-1/2 transform -translate-x-1/2 bg-green-500 text-white py-3 px-6 rounded-lg shadow-lg z-50">
391
+ Found ${count} rhymes for "${input}"!
392
+ </div>
393
+ `);
394
+
395
+ // Remove notification after 3 seconds
396
+ setTimeout(() => {
397
+ document.querySelector('.fixed.bg-green-500')?.remove();
398
+ }, 3000);
399
+ }, 1500);
400
+ });
401
+ </script>
402
+ <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=mukolaz44/pooko" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
403
+ </html>