PraneshJs commited on
Commit
8227d2e
·
verified ·
1 Parent(s): 2d86c33

added new feature banner

Browse files
Files changed (1) hide show
  1. app.py +28 -3
app.py CHANGED
@@ -1245,6 +1245,33 @@ with gr.Blocks(
1245
  title="Student Reward Points Check",
1246
  theme=gr.themes.Soft(),
1247
  ) as app:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1248
  gr.Markdown("## 🎓 Student Reward Points Checker")
1249
  gr.Markdown("##### Search for Student Details such as Reward Points, Redemption Dates and Innovative Practice (IP) Details")
1250
  gr.Markdown("##### எல்லா புகழும் இறைவனுக்கே ✝ 🕉 ☪")
@@ -1301,9 +1328,7 @@ with gr.Blocks(
1301
  lines=50,
1302
  max_lines=60,
1303
  show_copy_button=True,
1304
- autoscroll=False,
1305
- interactive=False,
1306
- show_label=True
1307
  )
1308
 
1309
  # Event handlers - FIXED: Proper input/output mapping
 
1245
  title="Student Reward Points Check",
1246
  theme=gr.themes.Soft(),
1247
  ) as app:
1248
+ gr.HTML(
1249
+ """
1250
+ <style>
1251
+ @keyframes fadeOut {
1252
+ 0% { opacity: 1; }
1253
+ 90% { opacity: 1; }
1254
+ 100% { opacity: 0; display: none; }
1255
+ }
1256
+
1257
+ .auto-hide-banner {
1258
+ animation: fadeOut 4s forwards;
1259
+ }
1260
+ </style>
1261
+
1262
+ <div class="auto-hide-banner" style='background-color:#FFF3CD;
1263
+ padding:12px;
1264
+ border-radius:10px;
1265
+ text-align:center;
1266
+ font-size:16px;
1267
+ color:#856404;
1268
+ font-weight:500;
1269
+ margin-bottom:10px;'>
1270
+ 🆕 <b>New Feature Added!</b> Check out the new <b>📚 Innovative Practice (IP) Details</b> tab to view subject-wise IP points and marks instantly!<br>
1271
+ Check out by clicking the 3 dots and select the Innovative Practice (IP) Details Tab and Enter your roll no 🚀
1272
+ </div>
1273
+ """
1274
+ )
1275
  gr.Markdown("## 🎓 Student Reward Points Checker")
1276
  gr.Markdown("##### Search for Student Details such as Reward Points, Redemption Dates and Innovative Practice (IP) Details")
1277
  gr.Markdown("##### எல்லா புகழும் இறைவனுக்கே ✝ 🕉 ☪")
 
1328
  lines=50,
1329
  max_lines=60,
1330
  show_copy_button=True,
1331
+ autoscroll=False
 
 
1332
  )
1333
 
1334
  # Event handlers - FIXED: Proper input/output mapping