LovnishVerma commited on
Commit
7ff86c1
·
verified ·
1 Parent(s): 19c9347

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -602,30 +602,30 @@ def create_app():
602
  margin-top: 20px;
603
  }
604
  /* Logo */
605
- #logo-img {
606
  max-height: 70px;
607
  width: auto;
608
  border-radius: 8px;
609
  }
610
  """
611
 
612
- with gr.Blocks(
613
- title="CCC Plus Quiz App",
614
- css=custom_css,
615
- theme=gr.themes.Soft()
616
- ) as app:
617
-
618
- # Header
619
- gr.HTML(f"""
620
- <div class="quiz-header">
621
- <img id="logo-img" src="{'nielit_logo.png' if os.path.exists('nielit_logo.png') else ''}" alt="NIELIT Logo" />
622
- <div class="quiz-header-text">
623
- <h1>🖥️ CCC Plus Quiz App</h1>
624
- <p>Computer Concepts Plus - Interactive Quiz Platform</p>
625
- <p>NIELIT Chandigarh National Institute of Electronics & Information Technology</p>
626
- </div>
627
- </div>
628
- """)
629
 
630
  with gr.Row():
631
  # Left Panel - Controls
 
602
  margin-top: 20px;
603
  }
604
  /* Logo */
605
+ #logo-img img {
606
  max-height: 70px;
607
  width: auto;
608
  border-radius: 8px;
609
  }
610
  """
611
 
612
+ with gr.Blocks(title="CCC Plus Quiz App", css=custom_css, theme=gr.themes.Soft()) as app:
613
+ with gr.Row(elem_classes="quiz-header"):
614
+ with gr.Column(scale=1):
615
+ logo_img = gr.Image(
616
+ value="nielit_logo.png" if os.path.exists("nielit_logo.png") else None,
617
+ elem_id="logo-img",
618
+ interactive=False,
619
+ show_label=False
620
+ )
621
+ with gr.Column(scale=6):
622
+ gr.HTML("""
623
+ <div class="quiz-header-text">
624
+ <h1>🖥️ CCC Plus Quiz App</h1>
625
+ <p>Computer Concepts Plus - Interactive Quiz Platform</p>
626
+ <p>NIELIT Chandigarh • National Institute of Electronics & Information Technology</p>
627
+ </div>
628
+ """)
629
 
630
  with gr.Row():
631
  # Left Panel - Controls