shivakumar2005 commited on
Commit
8d092f0
·
verified ·
1 Parent(s): bf9908f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +43 -14
app.py CHANGED
@@ -385,13 +385,27 @@ input:focus, textarea:focus, select:focus {
385
  border-color: var(--accent);
386
  box-shadow: 0 0 12px var(--accent-glow);
387
  }
 
388
  .gradio-dropdown select {
389
  color: #eaf6ff;
390
- background-color: #0b1f3a;
391
- border: 1px solid rgba(255, 255, 255, 0.3);
392
  border-radius: 12px;
393
  padding: 8px;
394
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
395
 
396
  .gradio-markdown, .gradio-html {
397
  color: var(--text-main);
@@ -403,18 +417,33 @@ with gr.Blocks(css=GLASS_CSS, title="Road2Success —Dashboard") as app:
403
  gr.Markdown("<h1 style='text-align:center color:#1e81b0'>🚀 Road2Success — Dashboard</h1>")
404
  gr.Markdown("<p style='text-align:center;color:#1e81b0'>Professional roadmap, AI mentor, hackathon prep & leaderboard</p>")
405
 
406
- with gr.Tabs():
407
- with gr.TabItem("📚 Roadmap"):
408
- with gr.Row():
409
- col1, col2 = gr.Column(scale=1), gr.Column(scale=2)
410
- with col1:
411
- level = gr.Dropdown(choices=list(ROADMAPS.keys()), value="Class 5", label="Select level")
412
- quick_days = gr.Radio(choices=["30","60","90"], value="30", label="Days plan")
413
- show_btn = gr.Button("Show Roadmap & Plan")
414
- with col2:
415
- roadmap_html = gr.HTML()
416
- plan_html = gr.HTML()
417
- show_btn.click(lambda l,d: (render_roadmap(l), generate_quick_plan(l, int(d))), inputs=[level, quick_days], outputs=[roadmap_html, plan_html])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
418
 
419
  with gr.TabItem("🤖 AI Mentor"):
420
  prompt = gr.Textbox(label="Ask mentor", lines=3)
 
385
  border-color: var(--accent);
386
  box-shadow: 0 0 12px var(--accent-glow);
387
  }
388
+
389
  .gradio-dropdown select {
390
  color: #eaf6ff;
391
+ background-color: #0b1f3a;
392
+ border: 1px solid rgba(255,255,255,0.3);
393
  border-radius: 12px;
394
  padding: 8px;
395
  }
396
+ .gradio-dropdown select option {
397
+ color: #eaf6ff;
398
+ background-color: #071028;
399
+ }
400
+
401
+ .gradio-radio label {
402
+ color: #eaf6ff;
403
+ cursor: pointer;
404
+ transition: 0.2s ease;
405
+ }
406
+ .gradio-radio input[type="radio"]:checked + label {
407
+ color: #00aaff;
408
+ }
409
 
410
  .gradio-markdown, .gradio-html {
411
  color: var(--text-main);
 
417
  gr.Markdown("<h1 style='text-align:center color:#1e81b0'>🚀 Road2Success — Dashboard</h1>")
418
  gr.Markdown("<p style='text-align:center;color:#1e81b0'>Professional roadmap, AI mentor, hackathon prep & leaderboard</p>")
419
 
420
+ with gr.Tabs():
421
+ with gr.TabItem("📚 Roadmap"):
422
+ with gr.Row():
423
+ col1, col2 = gr.Column(scale=1), gr.Column(scale=2)
424
+ with col1:
425
+ level = gr.Dropdown(
426
+ choices=list(ROADMAPS.keys()),
427
+ value="Class 5",
428
+ label="Select level",
429
+ elem_id="level_dropdown"
430
+ )
431
+ quick_days = gr.Radio(
432
+ choices=["30","60","90"],
433
+ value="30",
434
+ label="Days plan",
435
+ elem_id="days_radio"
436
+ )
437
+ show_btn = gr.Button("Show Roadmap & Plan")
438
+ with col2:
439
+ roadmap_html = gr.HTML()
440
+ plan_html = gr.HTML()
441
+
442
+ show_btn.click(
443
+ lambda l,d: (render_roadmap(l), generate_quick_plan(l, int(d))),
444
+ inputs=[level, quick_days],
445
+ outputs=[roadmap_html, plan_html]
446
+ )
447
 
448
  with gr.TabItem("🤖 AI Mentor"):
449
  prompt = gr.Textbox(label="Ask mentor", lines=3)