shivakumar2005 commited on
Commit
b3cc9df
·
verified ·
1 Parent(s): f367c94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -41
app.py CHANGED
@@ -308,17 +308,12 @@ def show_leaderboard():
308
  # -------- UI --------
309
  GLASS_CSS = """
310
  :root {
311
- --glass-bg: rgba(255, 255, 255, 0.06);
312
- --glass-border: rgba(255, 255, 255, 0.12);
313
  --accent: #00aaff;
 
314
  --text-main: #eaf6ff;
315
- --text-dim: #b0c4de;
316
- }
317
-
318
- .gradio-dropdown select,
319
- .gradio-dropdown option {
320
- color: ##4db8ff;
321
- background:#4db8ff;
322
  }
323
 
324
  body {
@@ -327,21 +322,19 @@ body {
327
  font-family: "Inter", sans-serif;
328
  }
329
 
330
-
331
- h2, h3, h4 {
332
  color: var(--accent);
333
- font-weight: 600;
334
  text-shadow: 0 0 6px var(--accent-glow);
335
  }
336
 
337
  a {
338
- color: #4db8ff;
339
  font-weight: 500;
340
  transition: 0.3s ease;
341
  }
342
-
343
  a:hover {
344
- color: #80d4ff;
345
  text-decoration: underline;
346
  text-shadow: 0 0 6px var(--accent-glow);
347
  }
@@ -350,67 +343,62 @@ p, li {
350
  color: var(--text-main);
351
  line-height: 1.6;
352
  }
353
-
354
- ul {
355
- margin-top: 6px;
356
- margin-bottom: 12px;
357
- }
358
-
359
- .gradio-container {
360
- color: var(--text-main);
361
- }
362
 
363
  .card {
364
  background: var(--glass-bg);
365
  border: 1px solid var(--glass-border);
366
  border-radius: 20px;
367
  padding: 24px;
368
- backdrop-filter: blur(15px);
369
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
370
- margin-top: 20px;
371
- transition: all 0.4s ease-in-out;
372
  }
373
-
374
- /* Hover effect for cards */
375
  .card:hover {
376
  border-color: var(--accent);
377
  box-shadow: 0 16px 48px var(--accent-glow);
378
  transform: scale(1.03);
379
  }
380
 
381
- /* Buttons */
382
  button {
383
  background: var(--accent);
384
  color: #fff;
385
  border: none;
386
- padding: 10px 24px;
387
  border-radius: 12px;
388
  cursor: pointer;
389
- transition: 0.3s ease;
390
  box-shadow: 0 4px 15px var(--accent-glow);
391
  }
392
-
393
  button:hover {
394
  background: #00cfff;
395
  box-shadow: 0 6px 20px var(--accent-glow);
396
  transform: translateY(-2px);
397
  }
398
 
399
- /* Input fields */
400
- input, textarea {
401
- background: rgba(255, 255, 255, 0.1);
402
- border: 1px solid rgba(255, 255, 255, 0.2);
403
  border-radius: 12px;
404
  padding: 10px;
405
  color: var(--text-main);
406
  outline: none;
407
  transition: all 0.3s ease;
408
  }
409
-
410
- input:focus, textarea:focus {
411
  border-color: var(--accent);
412
- box-shadow: 0 0 10px var(--accent-glow);
 
 
 
 
 
413
  }
 
 
 
 
 
414
  """
415
 
416
  with gr.Blocks(css=GLASS_CSS, title="Road2Success —Dashboard") as app:
 
308
  # -------- UI --------
309
  GLASS_CSS = """
310
  :root {
311
+ --glass-bg: rgba(255, 255, 255, 0.15);
312
+ --glass-border: rgba(255, 255, 255, 0.25);
313
  --accent: #00aaff;
314
+ --accent-glow: rgba(0, 170, 255, 0.6);
315
  --text-main: #eaf6ff;
316
+ --text-dim: #c0d4e0;
 
 
 
 
 
 
317
  }
318
 
319
  body {
 
322
  font-family: "Inter", sans-serif;
323
  }
324
 
325
+ h1,h2,h3,h4 {
 
326
  color: var(--accent);
327
+ font-weight: 700;
328
  text-shadow: 0 0 6px var(--accent-glow);
329
  }
330
 
331
  a {
332
+ color: #00d4ff;
333
  font-weight: 500;
334
  transition: 0.3s ease;
335
  }
 
336
  a:hover {
337
+ color: #80e0ff;
338
  text-decoration: underline;
339
  text-shadow: 0 0 6px var(--accent-glow);
340
  }
 
343
  color: var(--text-main);
344
  line-height: 1.6;
345
  }
346
+ ul { margin: 6px 0 12px 18px; }
 
 
 
 
 
 
 
 
347
 
348
  .card {
349
  background: var(--glass-bg);
350
  border: 1px solid var(--glass-border);
351
  border-radius: 20px;
352
  padding: 24px;
353
+ backdrop-filter: blur(12px);
354
+ box-shadow: 0 8px 32px rgba(0,0,0,0.6);
355
+ transition: all 0.3s ease-in-out;
 
356
  }
 
 
357
  .card:hover {
358
  border-color: var(--accent);
359
  box-shadow: 0 16px 48px var(--accent-glow);
360
  transform: scale(1.03);
361
  }
362
 
 
363
  button {
364
  background: var(--accent);
365
  color: #fff;
366
  border: none;
367
+ padding: 12px 28px;
368
  border-radius: 12px;
369
  cursor: pointer;
370
+ transition: all 0.3s ease;
371
  box-shadow: 0 4px 15px var(--accent-glow);
372
  }
 
373
  button:hover {
374
  background: #00cfff;
375
  box-shadow: 0 6px 20px var(--accent-glow);
376
  transform: translateY(-2px);
377
  }
378
 
379
+ input, textarea, select {
380
+ background: rgba(255, 255, 255, 0.2);
381
+ border: 1px solid rgba(255, 255, 255, 0.3);
 
382
  border-radius: 12px;
383
  padding: 10px;
384
  color: var(--text-main);
385
  outline: none;
386
  transition: all 0.3s ease;
387
  }
388
+ input:focus, textarea:focus, select:focus {
 
389
  border-color: var(--accent);
390
+ box-shadow: 0 0 12px var(--accent-glow);
391
+ }
392
+
393
+ .gradio-dropdown select {
394
+ color: #eaf6ff;
395
+ background: rgba(0, 20, 40, 0.8);
396
  }
397
+
398
+ .gradio-markdown, .gradio-html {
399
+ color: var(--text-main);
400
+ }
401
+
402
  """
403
 
404
  with gr.Blocks(css=GLASS_CSS, title="Road2Success —Dashboard") as app: