K00B404 commited on
Commit
32ec6d9
1 Parent(s): cb17e06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +76 -4
app.py CHANGED
@@ -291,15 +291,87 @@ css = """
291
  font-weight: bold;
292
  color: #000;
293
  }
294
- """
 
 
 
 
295
 
 
 
 
 
 
 
 
 
296
 
297
- with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
 
 
 
 
 
 
 
298
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
 
300
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
  gr.HTML(title_html) # title html
302
-
303
  with gr.Column(elem_id="app-container"):
304
  with gr.Row():
305
  with gr.Column(elem_id="prompt-container"):
 
291
  font-weight: bold;
292
  color: #000;
293
  }
294
+ :root {
295
+ --panel-size: 300px;
296
+ --border-width: 4px;
297
+ --glow-blur: 15px;
298
+ }
299
 
300
+ body {
301
+ background-color: #000;
302
+ display: flex;
303
+ justify-content: center;
304
+ align-items: center;
305
+ min-height: 100vh;
306
+ margin: 0;
307
+ }
308
 
309
+ .neon-panel {
310
+ width: var(--panel-size);
311
+ height: var(--panel-size);
312
+ background-color: #000;
313
+ position: relative;
314
+ border-radius: 20px;
315
+ overflow: hidden;
316
+ }
317
 
318
+ .neon-panel::before,
319
+ .neon-panel::after {
320
+ content: '';
321
+ position: absolute;
322
+ left: -2px;
323
+ top: -2px;
324
+ background: linear-gradient(
325
+ 124deg,
326
+ #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840,
327
+ #1ddde8, #2b1de8, #dd00f3, #dd00f3
328
+ );
329
+ background-size: 300% 300%;
330
+ width: calc(100% + 4px);
331
+ height: calc(100% + 4px);
332
+ z-index: -1;
333
+ animation: moveGradient 10s ease infinite;
334
+ }
335
 
336
+ .neon-panel::after {
337
+ filter: blur(var(--glow-blur));
338
+ }
339
+
340
+ .neon-panel-content {
341
+ position: absolute;
342
+ top: var(--border-width);
343
+ left: var(--border-width);
344
+ right: var(--border-width);
345
+ bottom: var(--border-width);
346
+ background-color: #000;
347
+ border-radius: 16px;
348
+ z-index: 1;
349
+ }
350
+
351
+ @keyframes moveGradient {
352
+ 0% { background-position: 0% 50%; }
353
+ 50% { background-position: 100% 50%; }
354
+ 100% { background-position: 0% 50%; }
355
+ }
356
+
357
+ @media (max-width: 768px) {
358
+ :root {
359
+ --panel-size: 250px;
360
+ --glow-blur: 10px;
361
+ }
362
+ }
363
+
364
+ @media (prefers-reduced-motion: reduce) {
365
+ .neon-panel::before,
366
+ .neon-panel::after {
367
+ animation: none;
368
+ }
369
+ }
370
+ """
371
+
372
+
373
+ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
374
  gr.HTML(title_html) # title html
 
375
  with gr.Column(elem_id="app-container"):
376
  with gr.Row():
377
  with gr.Column(elem_id="prompt-container"):