PraneshJs commited on
Commit
5b6afe9
·
verified ·
1 Parent(s): 9a5aacb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +97 -0
app.py CHANGED
@@ -1319,6 +1319,103 @@ with gr.Blocks(
1319
  title="Student Reward Points Check",
1320
  theme=gr.themes.Soft(),
1321
  ) as app:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1322
  gr.Markdown("## 🎓 Student Reward Points Checker")
1323
  gr.Markdown("##### Search for Reward Points, Redemption Dates and Innovative Practice (IP) Details")
1324
  gr.Markdown("##### எல்லா புகழும் இறைவனுக்கே ✝ 🕉 ☪")
 
1319
  title="Student Reward Points Check",
1320
  theme=gr.themes.Soft(),
1321
  ) as app:
1322
+ gr.HTML(
1323
+ """
1324
+ <style>
1325
+ .calc-important-banner {
1326
+ position: relative;
1327
+ margin: 10px 0 18px 0;
1328
+ padding: 18px 22px;
1329
+ border-radius: 14px;
1330
+ background: linear-gradient(120deg, #ff512f, #f09819, #ffd200);
1331
+ background-size: 250% 250%;
1332
+ animation: calcGradientShift 6s ease infinite, calcGlowPulse 2s ease-in-out infinite;
1333
+ color: #fff;
1334
+ text-align: center;
1335
+ box-shadow:
1336
+ 0 0 18px rgba(255, 81, 47, 0.7),
1337
+ 0 0 28px rgba(255, 210, 0, 0.6);
1338
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
1339
+ }
1340
+
1341
+ .calc-important-banner h3 {
1342
+ margin: 0 0 6px 0;
1343
+ font-size: 20px;
1344
+ font-weight: 800;
1345
+ letter-spacing: 0.6px;
1346
+ text-transform: uppercase;
1347
+ }
1348
+
1349
+ .calc-important-banner p {
1350
+ margin: 4px 0;
1351
+ font-size: 15px;
1352
+ font-weight: 500;
1353
+ }
1354
+
1355
+ .calc-important-banner .highlight {
1356
+ font-weight: 700;
1357
+ text-decoration: underline;
1358
+ }
1359
+
1360
+ .calc-important-banner .calc-btn {
1361
+ display: inline-block;
1362
+ margin-top: 10px;
1363
+ padding: 8px 16px;
1364
+ border-radius: 999px;
1365
+ background: #111;
1366
+ color: #ffe66d;
1367
+ font-weight: 700;
1368
+ font-size: 14px;
1369
+ text-decoration: none;
1370
+ box-shadow: 0 0 12px rgba(0,0,0,0.4);
1371
+ transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
1372
+ }
1373
+
1374
+ .calc-important-banner .calc-btn:hover {
1375
+ transform: translateY(-1px) scale(1.03);
1376
+ box-shadow: 0 0 18px rgba(0,0,0,0.6);
1377
+ background: #000;
1378
+ }
1379
+
1380
+ /* Background animation */
1381
+ @keyframes calcGradientShift {
1382
+ 0% { background-position: 0% 50%; }
1383
+ 50% { background-position: 100% 50%; }
1384
+ 100% { background-position: 0% 50%; }
1385
+ }
1386
+
1387
+ /* Glow animation */
1388
+ @keyframes calcGlowPulse {
1389
+ 0% {
1390
+ box-shadow:
1391
+ 0 0 10px rgba(255, 81, 47, 0.7),
1392
+ 0 0 20px rgba(255, 210, 0, 0.6);
1393
+ }
1394
+ 50% {
1395
+ box-shadow:
1396
+ 0 0 20px rgba(255, 120, 47, 0.9),
1397
+ 0 0 40px rgba(255, 230, 120, 0.9);
1398
+ }
1399
+ 100% {
1400
+ box-shadow:
1401
+ 0 0 10px rgba(255, 81, 47, 0.7),
1402
+ 0 0 20px rgba(255, 210, 0, 0.6);
1403
+ }
1404
+ }
1405
+ </style>
1406
+
1407
+ <div class="calc-important-banner">
1408
+ 🔴⚠️ <h3>IMPORTANT – CALCULATOR REQUEST FORM</h3>
1409
+ <p>
1410
+ I need Calculator For <span class="highlight">Pattern &amp; Anomaly Detection End Semester Examination</span>,
1411
+
1412
+
1413
+ <a class="calc-btn" href="https://docs.google.com/forms/d/1-piXRsXweqk_Z1jat7w0P8zS995RDgXEc5F_lyD3_vM/viewform" target="_blank">
1414
+ 📄 If Possible Fill this Form
1415
+ </a>
1416
+ </div>
1417
+ """
1418
+ )
1419
  gr.Markdown("## 🎓 Student Reward Points Checker")
1420
  gr.Markdown("##### Search for Reward Points, Redemption Dates and Innovative Practice (IP) Details")
1421
  gr.Markdown("##### எல்லா புகழும் இறைவனுக்கே ✝ 🕉 ☪")