Pijush2023 commited on
Commit
49803ad
·
verified ·
1 Parent(s): bb07972

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -8
app.py CHANGED
@@ -374,14 +374,36 @@ def generate_audio_elevenlabs(text):
374
  with gr.Blocks(theme='rawrsor1/Everforest') as demo:
375
  with gr.Row():
376
  with gr.Column():
377
- gr.HTML('''
378
- <div style="animation: fadeIn 2s ease-in-out infinite alternate;">
379
- <h1 style="font-size: 4em; text-align: center; color: #4CAF50;">Welcome to Omaha Events</h1>
380
  </div>
381
  <style>
382
- @keyframes fadeIn {
383
- from { opacity: 0; }
384
- to { opacity: 1; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
385
  }
386
  </style>
387
  ''')
@@ -390,8 +412,8 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
390
  # with gr.Column():
391
  # weather_output = gr.HTML(value=fetch_local_weather())
392
 
393
- with gr.Column():
394
- news_output = gr.HTML(value=fetch_local_news())
395
 
396
  def setup_ui():
397
  state = gr.State()
 
374
  with gr.Blocks(theme='rawrsor1/Everforest') as demo:
375
  with gr.Row():
376
  with gr.Column():
377
+ gr.HTML('''
378
+ <div id="welcome" class="animated-heading">
379
+ <h1>Welcome to Omaha Events</h1>
380
  </div>
381
  <style>
382
+ @import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
383
+ .animated-heading h1 {
384
+ font-family: 'Pacifico', cursive;
385
+ color: #4CAF50;
386
+ text-align: center;
387
+ font-size: 4em;
388
+ margin: 0;
389
+ animation: textAnimation 3s ease-in-out infinite alternate;
390
+ }
391
+ @keyframes textAnimation {
392
+ 0% {
393
+ transform: scale(1);
394
+ color: #4CAF50;
395
+ text-shadow: 0 0 10px #4CAF50;
396
+ }
397
+ 50% {
398
+ transform: scale(1.1);
399
+ color: #FF6347;
400
+ text-shadow: 0 0 20px #FF6347;
401
+ }
402
+ 100% {
403
+ transform: scale(1);
404
+ color: #4CAF50;
405
+ text-shadow: 0 0 10px #4CAF50;
406
+ }
407
  }
408
  </style>
409
  ''')
 
412
  # with gr.Column():
413
  # weather_output = gr.HTML(value=fetch_local_weather())
414
 
415
+ # with gr.Column():
416
+ # news_output = gr.HTML(value=fetch_local_news())
417
 
418
  def setup_ui():
419
  state = gr.State()