drjagan commited on
Commit
3c30652
·
verified ·
1 Parent(s): 8fc321f

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +512 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Adage
3
- emoji: 📈
4
- colorFrom: purple
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: adage
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: blue
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,512 @@
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>Grand Opening Curtain Raiser</title>
7
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
8
+ <style>
9
+ * {
10
+ margin: 0;
11
+ padding: 0;
12
+ box-sizing: border-box;
13
+ }
14
+
15
+ body {
16
+ background-color: #000;
17
+ overflow: hidden;
18
+ font-family: 'Arial', sans-serif;
19
+ height: 100vh;
20
+ position: relative;
21
+ }
22
+
23
+ /* Curtains */
24
+ .curtains {
25
+ position: absolute;
26
+ top: 0;
27
+ left: 0;
28
+ width: 100%;
29
+ height: 100%;
30
+ z-index: 10;
31
+ display: flex;
32
+ transition: transform 2s ease-in-out;
33
+ }
34
+
35
+ .curtain {
36
+ height: 100%;
37
+ width: 50%;
38
+ position: relative;
39
+ overflow: hidden;
40
+ box-shadow: 0 0 100px rgba(0, 0, 0, 0.8) inset;
41
+ }
42
+
43
+ .curtain::before {
44
+ content: '';
45
+ position: absolute;
46
+ top: 0;
47
+ width: 100%;
48
+ height: 100%;
49
+ background: linear-gradient(
50
+ to bottom,
51
+ rgba(122, 14, 18, 1) 0%,
52
+ rgba(158, 28, 35, 1) 50%,
53
+ rgba(122, 14, 18, 1) 100%
54
+ );
55
+ box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
56
+ }
57
+
58
+ .left-curtain {
59
+ transform-origin: left center;
60
+ animation: swayLeft 5s infinite ease-in-out;
61
+ }
62
+
63
+ .right-curtain {
64
+ transform-origin: right center;
65
+ animation: swayRight 5s infinite ease-in-out;
66
+ }
67
+
68
+ .curtain-fringe {
69
+ position: absolute;
70
+ bottom: 0;
71
+ width: 100%;
72
+ height: 150px;
73
+ background: repeating-linear-gradient(
74
+ 0deg,
75
+ #8a1b1b,
76
+ #8a1b1b 5px,
77
+ #5a0f0f 5px,
78
+ #5a0f0f 10px
79
+ );
80
+ z-index: 2;
81
+ }
82
+
83
+ @keyframes swayLeft {
84
+ 0%, 100% { transform: rotate(-1deg); }
85
+ 50% { transform: rotate(1deg); }
86
+ }
87
+
88
+ @keyframes swayRight {
89
+ 0%, 100% { transform: rotate(1deg); }
90
+ 50% { transform: rotate(-1deg); }
91
+ }
92
+
93
+ /* Curtain when opened */
94
+ .curtains.open {
95
+ transform: translateY(-100%);
96
+ }
97
+
98
+ /* Spotlight effects */
99
+ .spotlight {
100
+ position: absolute;
101
+ width: 300px;
102
+ height: 300px;
103
+ border-radius: 50%;
104
+ background: rgba(255, 255, 255, 0.1);
105
+ box-shadow: 0 0 200px 150px rgba(255, 255, 255, 0.1);
106
+ z-index: 1;
107
+ opacity: 0.8;
108
+ }
109
+
110
+ /* Stage content */
111
+ .stage {
112
+ position: absolute;
113
+ top: 0;
114
+ left: 0;
115
+ width: 100%;
116
+ height: 100%;
117
+ display: flex;
118
+ flex-direction: column;
119
+ justify-content: center;
120
+ align-items: center;
121
+ z-index: 5;
122
+ opacity: 0;
123
+ transition: opacity 1.5s ease-in-out;
124
+ transition-delay: 1s;
125
+ }
126
+
127
+ .stage.show {
128
+ opacity: 1;
129
+ }
130
+
131
+ .logo {
132
+ max-width: 500px;
133
+ max-height: 300px;
134
+ object-fit: contain;
135
+ filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
136
+ transform: scale(0.8);
137
+ animation: pulse 2s infinite alternate;
138
+ z-index: 6;
139
+ }
140
+
141
+ @keyframes pulse {
142
+ 0% { transform: scale(0.8); }
143
+ 100% { transform: scale(0.85); }
144
+ }
145
+
146
+ /* Confetti */
147
+ .confetti {
148
+ position: absolute;
149
+ width: 15px;
150
+ height: 15px;
151
+ background-color: #f00;
152
+ opacity: 0;
153
+ z-index: 8;
154
+ }
155
+
156
+ .ribbon {
157
+ position: absolute;
158
+ height: 100px;
159
+ width: 20px;
160
+ background: linear-gradient(to bottom, #f00, #ff0, #0f0, #00f, #f0f);
161
+ transform-origin: top center;
162
+ z-index: 7;
163
+ opacity: 0;
164
+ }
165
+
166
+ /* Controls */
167
+ .controls {
168
+ position: absolute;
169
+ bottom: 30px;
170
+ left: 50%;
171
+ transform: translateX(-50%);
172
+ z-index: 20;
173
+ }
174
+
175
+ .open-btn {
176
+ background: linear-gradient(to bottom, #a83232, #6b1c1c);
177
+ color: white;
178
+ border: none;
179
+ padding: 15px 30px;
180
+ font-size: 18px;
181
+ border-radius: 50px;
182
+ cursor: pointer;
183
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
184
+ transition: all 0.3s ease;
185
+ font-weight: bold;
186
+ text-transform: uppercase;
187
+ letter-spacing: 1px;
188
+ }
189
+
190
+ .open-btn:hover {
191
+ transform: translateY(-3px);
192
+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
193
+ }
194
+
195
+ .open-btn:active {
196
+ transform: translateY(1px);
197
+ }
198
+
199
+ .open-btn i {
200
+ margin-right: 10px;
201
+ }
202
+
203
+ /* Settings */
204
+ .settings {
205
+ position: absolute;
206
+ bottom: 30px;
207
+ right: 30px;
208
+ z-index: 20;
209
+ cursor: pointer;
210
+ color: #fff;
211
+ font-size: 24px;
212
+ opacity: 0.7;
213
+ transition: all 0.3s ease;
214
+ }
215
+
216
+ .settings:hover {
217
+ opacity: 1;
218
+ transform: rotate(30deg);
219
+ }
220
+
221
+ .settings-panel {
222
+ position: absolute;
223
+ bottom: 70px;
224
+ right: 30px;
225
+ background: rgba(0, 0, 0, 0.8);
226
+ padding: 20px;
227
+ border-radius: 10px;
228
+ z-index: 21;
229
+ display: none;
230
+ width: 300px;
231
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
232
+ border: 1px solid #333;
233
+ color: #fff;
234
+ }
235
+
236
+ .settings-panel h3 {
237
+ margin-bottom: 15px;
238
+ color: #fff;
239
+ text-align: center;
240
+ }
241
+
242
+ .settings-panel label {
243
+ display: block;
244
+ margin-bottom: 8px;
245
+ }
246
+
247
+ .settings-panel input {
248
+ width: 100%;
249
+ margin-bottom: 15px;
250
+ padding: 8px;
251
+ border-radius: 5px;
252
+ border: 1px solid #444;
253
+ background: #333;
254
+ color: #fff;
255
+ }
256
+
257
+ .save-btn {
258
+ background: #4CAF50;
259
+ color: white;
260
+ border: none;
261
+ padding: 10px 15px;
262
+ border-radius: 5px;
263
+ cursor: pointer;
264
+ width: 100%;
265
+ }
266
+
267
+ .save-btn:hover {
268
+ background: #45a049;
269
+ }
270
+
271
+ /* Trumpet sound indicator */
272
+ .sound-indicator {
273
+ position: absolute;
274
+ bottom: 70px;
275
+ left: 30px;
276
+ color: white;
277
+ font-size: 24px;
278
+ z-index: 20;
279
+ opacity: 0.7;
280
+ cursor: pointer;
281
+ }
282
+
283
+ /* Stage lights */
284
+ .stage-lights {
285
+ position: absolute;
286
+ top: 0;
287
+ left: 0;
288
+ width: 100%;
289
+ height: 100px;
290
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
291
+ z-index: 4;
292
+ opacity: 0;
293
+ transition: opacity 1s ease;
294
+ }
295
+
296
+ .stage-lights.show {
297
+ opacity: 0.3;
298
+ }
299
+ </style>
300
+ </head>
301
+ <body>
302
+ <!-- Spotlights -->
303
+ <div class="spotlight" id="spotlight1"></div>
304
+ <div class="spotlight" id="spotlight2"></div>
305
+ <div class="spotlight" id="spotlight3"></div>
306
+
307
+ <!-- Stage lights -->
308
+ <div class="stage-lights"></div>
309
+
310
+ <!-- Curtains -->
311
+ <div class="curtains">
312
+ <div class="curtain left-curtain">
313
+ <div class="curtain-fringe"></div>
314
+ </div>
315
+ <div class="curtain right-curtain">
316
+ <div class="curtain-fringe"></div>
317
+ </div>
318
+ </div>
319
+
320
+ <!-- Stage content -->
321
+ <div class="stage">
322
+ <img src="https://via.placeholder.com/500x300?text=Your+Logo" alt="Logo" class="logo" id="main-logo">
323
+ </div>
324
+
325
+ <!-- Controls -->
326
+ <div class="controls">
327
+ <button class="open-btn" id="openBtn"><i class="fas fa-play"></i> Start Show</button>
328
+ </div>
329
+
330
+ <!-- Settings -->
331
+ <div class="settings" id="settingsBtn">
332
+ <i class="fas fa-cog"></i>
333
+ </div>
334
+
335
+ <div class="settings-panel" id="settingsPanel">
336
+ <h3>Settings</h3>
337
+ <label for="logoUrl">Logo URL:</label>
338
+ <input type="text" id="logoUrl" placeholder="Enter new logo URL">
339
+ <button class="save-btn" id="saveBtn">Save Changes</button>
340
+ </div>
341
+
342
+ <!-- Sound indicator -->
343
+ <div class="sound-indicator" id="soundBtn">
344
+ <i class="fas fa-volume-up"></i>
345
+ </div>
346
+
347
+ <script>
348
+ document.addEventListener('DOMContentLoaded', function() {
349
+ const curtains = document.querySelector('.curtains');
350
+ const stage = document.querySelector('.stage');
351
+ const stageLights = document.querySelector('.stage-lights');
352
+ const openBtn = document.getElementById('openBtn');
353
+ const settingsBtn = document.getElementById('settingsBtn');
354
+ const settingsPanel = document.getElementById('settingsPanel');
355
+ const saveBtn = document.getElementById('saveBtn');
356
+ const logoUrlInput = document.getElementById('logoUrl');
357
+ const mainLogo = document.getElementById('main-logo');
358
+ const soundBtn = document.getElementById('soundBtn');
359
+ let soundEnabled = true;
360
+
361
+ // Moving spotlights
362
+ function moveSpotlights() {
363
+ const spotlights = [
364
+ document.getElementById('spotlight1'),
365
+ document.getElementById('spotlight2'),
366
+ document.getElementById('spotlight3')
367
+ ];
368
+
369
+ spotlights.forEach((spotlight, index) => {
370
+ function randomPosition() {
371
+ const x = Math.random() * window.innerWidth;
372
+ const y = Math.random() * window.innerHeight;
373
+ spotlight.style.left = `${x}px`;
374
+ spotlight.style.top = `${y}px`;
375
+
376
+ // Random color hue
377
+ const hue = Math.random() * 360;
378
+ spotlight.style.background = `rgba(${Math.random() * 255}, ${Math.random() * 255}, ${Math.random() * 255}, 0.1)`;
379
+ spotlight.style.boxShadow = `0 0 200px 150px hsla(${hue}, 100%, 50%, 0.1)`;
380
+ }
381
+
382
+ randomPosition();
383
+ // Different intervals for each spotlight
384
+ setInterval(randomPosition, 2000 + (index * 1000));
385
+ });
386
+ }
387
+
388
+ // Open curtains
389
+ function openCurtains() {
390
+ curtains.classList.add('open');
391
+ stage.classList.add('show');
392
+ stageLights.classList.add('show');
393
+
394
+ if (soundEnabled) {
395
+ // Play trumpet sound
396
+ const audio = new Audio('https://assets.mixkit.co/active_storage/sfx/173/173-preview.mp3');
397
+ audio.play();
398
+ }
399
+
400
+ // Create confetti
401
+ createConfetti();
402
+ createRibbons();
403
+
404
+ // Disable button after click
405
+ openBtn.disabled = true;
406
+ openBtn.innerHTML = '<i class="fas fa-check"></i> Show Started';
407
+ openBtn.style.background = 'linear-gradient(to bottom, #32a852, #1c6b2c)';
408
+ }
409
+
410
+ // Create confetti
411
+ function createConfetti() {
412
+ const colors = ['#f44336', '#e91e63', '#9c27b0', '#673ab7', '#3f51b5', '#2196f3', '#03a9f4', '#00bcd4', '#009688', '#4CAF50', '#8BC34A', '#CDDC39', '#FFEB3B', '#FFC107', '#FF9800', '#FF5722'];
413
+
414
+ for (let i = 0; i < 200; i++) {
415
+ setTimeout(() => {
416
+ const confetti = document.createElement('div');
417
+ confetti.className = 'confetti';
418
+ confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
419
+ confetti.style.left = `${Math.random() * window.innerWidth}px`;
420
+ confetti.style.top = `-10px`;
421
+ confetti.style.transform = `rotate(${Math.random() * 360}deg)`;
422
+ confetti.style.opacity = '1';
423
+
424
+ // Random shape
425
+ if (Math.random() > 0.5) {
426
+ confetti.style.borderRadius = '50%';
427
+ }
428
+
429
+ document.body.appendChild(confetti);
430
+
431
+ // Animation
432
+ const duration = Math.random() * 3000 + 2000;
433
+ confetti.style.transition = `all ${duration}ms ease-out`;
434
+
435
+ setTimeout(() => {
436
+ confetti.style.top = `${window.innerHeight + 10}px`;
437
+ confetti.style.transform = `rotate(${Math.random() * 360}deg) translateX(${Math.random() * 200 - 100}px)`;
438
+ confetti.style.opacity = '0.5';
439
+
440
+ // Remove after animation
441
+ setTimeout(() => {
442
+ confetti.remove();
443
+ }, duration);
444
+ }, 10);
445
+ }, i * 20);
446
+ }
447
+ }
448
+
449
+ // Create ribbons
450
+ function createRibbons() {
451
+ for (let i = 0; i < 30; i++) {
452
+ setTimeout(() => {
453
+ const ribbon = document.createElement('div');
454
+ ribbon.className = 'ribbon';
455
+ ribbon.style.left = `${Math.random() * window.innerWidth}px`;
456
+ ribbon.style.top = `-100px`;
457
+ ribbon.style.opacity = '1';
458
+
459
+ document.body.appendChild(ribbon);
460
+
461
+ // Animation
462
+ const duration = Math.random() * 2000 + 2000;
463
+ ribbon.style.transition = `all ${duration}ms ease-out`;
464
+
465
+ setTimeout(() => {
466
+ ribbon.style.top = `${window.innerHeight + 100}px`;
467
+ ribbon.style.transform = `rotate(${Math.random() * 60 - 30}deg)`;
468
+
469
+ // Remove after animation
470
+ setTimeout(() => {
471
+ ribbon.remove();
472
+ }, duration);
473
+ }, 10);
474
+ }, i * 100);
475
+ }
476
+ }
477
+
478
+ // Event listeners
479
+ openBtn.addEventListener('click', openCurtains);
480
+
481
+ // Keyboard event for right arrow
482
+ document.addEventListener('keydown', (e) => {
483
+ if (e.key === 'ArrowRight' && !curtains.classList.contains('open')) {
484
+ openCurtains();
485
+ }
486
+ });
487
+
488
+ // Settings
489
+ settingsBtn.addEventListener('click', () => {
490
+ settingsPanel.style.display = settingsPanel.style.display === 'block' ? 'none' : 'block';
491
+ });
492
+
493
+ saveBtn.addEventListener('click', () => {
494
+ const logoUrl = logoUrlInput.value.trim();
495
+ if (logoUrl) {
496
+ mainLogo.src = logoUrl;
497
+ settingsPanel.style.display = 'none';
498
+ }
499
+ });
500
+
501
+ // Sound toggle
502
+ soundBtn.addEventListener('click', () => {
503
+ soundEnabled = !soundEnabled;
504
+ soundBtn.innerHTML = soundEnabled ? '<i class="fas fa-volume-up"></i>' : '<i class="fas fa-volume-mute"></i>';
505
+ });
506
+
507
+ // Initialize spotlights
508
+ moveSpotlights();
509
+ });
510
+ </script>
511
+ <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 <a href="https://enzostvs-deepsite.hf.space" style="color: #fff;" target="_blank" >DeepSite</a> <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;"></p></body>
512
+ </html>