PraneshJs commited on
Commit
955aad6
Β·
verified Β·
1 Parent(s): 8a538fa

added New Year Message Banner

Browse files
Files changed (1) hide show
  1. app.py +81 -38
app.py CHANGED
@@ -1331,59 +1331,102 @@ with gr.Blocks(
1331
  gr.HTML(
1332
  """
1333
  <style>
1334
- .urgent-banner {
1335
- background: linear-gradient(90deg, #ff0000, #ffae00, #ff0000);
1336
- background-size: 300% 300%;
1337
- animation: gradientMove 4s ease infinite, glowPulse 1.5s infinite;
1338
- padding: 20px 24px;
1339
- border-radius: 14px;
1340
- color: #ffffff;
1341
- font-weight: 800;
1342
- font-size: 18px;
1343
  text-align: center;
1344
- box-shadow:
1345
- 0 0 20px rgba(255,0,0,0.9),
1346
- 0 0 40px rgba(255,174,0,0.8);
1347
- margin-bottom: 16px;
1348
  }
1349
 
1350
- @keyframes gradientMove {
1351
- 0% { background-position: 0% 50%; }
1352
- 50% { background-position: 100% 50%; }
1353
- 100% { background-position: 0% 50%; }
1354
  }
1355
 
1356
- @keyframes glowPulse {
1357
- 0% { box-shadow: 0 0 15px rgba(255,0,0,0.8); }
1358
- 50% { box-shadow: 0 0 35px rgba(255,174,0,1); }
1359
- 100% { box-shadow: 0 0 15px rgba(255,0,0,0.8); }
 
 
1360
  }
1361
 
1362
- .urgent-btn {
1363
- display: inline-block;
1364
- margin-top: 12px;
1365
- padding: 10px 18px;
1366
- background: #000000;
1367
- color: #ffd700;
1368
- font-weight: 800;
1369
  font-size: 16px;
1370
- border-radius: 8px;
1371
- text-decoration: none;
1372
- box-shadow: 0 0 10px rgba(0,0,0,0.6);
1373
- transition: transform 0.2s ease, box-shadow 0.2s ease;
1374
  }
1375
 
1376
- .urgent-btn:hover {
1377
- transform: scale(1.05);
1378
- box-shadow: 0 0 20px rgba(255,215,0,0.9);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1379
  }
1380
  </style>
1381
 
1382
- <div class="urgent-banner">
1383
- πŸ‘€ <strong>IP Details Updated Kindly Check it – Use the 3 dots and select "Innovative Practice (IP) Details"</strong> πŸ‘€<br><br>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1384
  </div>
1385
  """
1386
- )
1387
  gr.HTML(
1388
  """
1389
  <style>
 
1331
  gr.HTML(
1332
  """
1333
  <style>
1334
+ /* ===== Banner ===== */
1335
+ .newyear-container {
1336
+ position: relative;
1337
+ overflow: hidden;
1338
+ border-radius: 18px;
1339
+ padding: 26px 28px;
 
 
 
1340
  text-align: center;
1341
+ background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
1342
+ color: #fff;
1343
+ box-shadow: 0 0 30px rgba(255,215,0,0.5);
1344
+ margin-bottom: 20px;
1345
  }
1346
 
1347
+ .title {
1348
+ font-size: 22px;
1349
+ font-weight: 800;
1350
+ letter-spacing: 1px;
1351
  }
1352
 
1353
+ .year {
1354
+ font-size: 42px;
1355
+ font-weight: 900;
1356
+ color: #ffd700;
1357
+ text-shadow: 0 0 14px rgba(255,215,0,0.9);
1358
+ margin: 6px 0;
1359
  }
1360
 
1361
+ .message {
 
 
 
 
 
 
1362
  font-size: 16px;
1363
+ font-weight: 500;
1364
+ line-height: 1.6;
 
 
1365
  }
1366
 
1367
+ /* ===== Fireworks ===== */
1368
+ .firework {
1369
+ position: absolute;
1370
+ width: 4px;
1371
+ height: 4px;
1372
+ border-radius: 50%;
1373
+ animation: explode 1.8s infinite ease-out;
1374
+ }
1375
+
1376
+ .firework:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
1377
+ .firework:nth-child(2) { top: 30%; left: 75%; animation-delay: 0.4s; }
1378
+ .firework:nth-child(3) { top: 60%; left: 25%; animation-delay: 0.8s; }
1379
+ .firework:nth-child(4) { top: 55%; left: 70%; animation-delay: 1.2s; }
1380
+
1381
+ @keyframes explode {
1382
+ 0% {
1383
+ transform: scale(0);
1384
+ opacity: 1;
1385
+ box-shadow:
1386
+ 0 0 0 #ff004c,
1387
+ 0 0 0 #ffd700,
1388
+ 0 0 0 #00eaff,
1389
+ 0 0 0 #ffffff;
1390
+ }
1391
+ 50% {
1392
+ transform: scale(1);
1393
+ box-shadow:
1394
+ 0 -40px #ff004c,
1395
+ 40px 0 #ffd700,
1396
+ -40px 0 #00eaff,
1397
+ 0 40px #ffffff;
1398
+ }
1399
+ 100% {
1400
+ transform: scale(1.3);
1401
+ opacity: 0;
1402
+ box-shadow:
1403
+ 0 -60px transparent,
1404
+ 60px 0 transparent,
1405
+ -60px 0 transparent,
1406
+ 0 60px transparent;
1407
+ }
1408
  }
1409
  </style>
1410
 
1411
+ <div class="newyear-container">
1412
+ <!-- Fireworks -->
1413
+ <div class="firework"></div>
1414
+ <div class="firework"></div>
1415
+ <div class="firework"></div>
1416
+ <div class="firework"></div>
1417
+
1418
+ <!-- Content -->
1419
+ πŸŽ†βœ¨ <div class="title">HAPPY NEW YEAR</div>
1420
+ <div class="year">2026</div>
1421
+
1422
+ <div class="message">
1423
+ 🌟 Wishing you a year filled with success, happiness, and new beginnings.<br>
1424
+ πŸš€ May this year bring growth, achievements, and unforgettable moments.<br><br>
1425
+ 🀍 <strong>Have a fantastic year ahead!</strong>
1426
+ </div>
1427
  </div>
1428
  """
1429
+ )
1430
  gr.HTML(
1431
  """
1432
  <style>