deadshot2003 commited on
Commit
4951549
·
verified ·
1 Parent(s): 24805c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -9
app.py CHANGED
@@ -1,9 +1,22 @@
1
  import streamlit as st
2
  import streamlit.components.v1 as components
3
  from streamlit_extras.let_it_rain import rain
 
 
4
 
5
- # Title of the app
6
- st.title("A map of imperfect but perfect conversations")
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  # Define the map URLs
9
  map_url_1 = "https://www.google.com/maps/d/embed?mid=1punqzU7t2tqZcLWxUXj966rITF0pmGQ&ehbc=2E312F"
@@ -32,10 +45,23 @@ iframe_html = f'''
32
  # Render the iframe
33
  components.html(iframe_html, height=500)
34
 
35
- # Add the rain effect
36
- rain(
37
- emoji="🤓",
38
- font_size=30,
39
- falling_speed=5,
40
- animation_length="infinite",
41
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
  import streamlit.components.v1 as components
3
  from streamlit_extras.let_it_rain import rain
4
+ from streamlit_extras.colored_header import colored_header
5
+ import random
6
 
7
+ # Title of the app with custom HTML for color and size
8
+ st.markdown(
9
+ """
10
+ <h1 style='text-align: center; color: pink ; font-size: 48px;'>
11
+ A map imperfect but perfect conversations
12
+ </h1>
13
+ <hr style='border:1px solid lavender'>
14
+ <p style='text-align: center; color: lavender; font-size: 18px;'>
15
+ Happy Craziversary!!!
16
+ </p>
17
+ """,
18
+ unsafe_allow_html=True,
19
+ )
20
 
21
  # Define the map URLs
22
  map_url_1 = "https://www.google.com/maps/d/embed?mid=1punqzU7t2tqZcLWxUXj966rITF0pmGQ&ehbc=2E312F"
 
45
  # Render the iframe
46
  components.html(iframe_html, height=500)
47
 
48
+ # Function to create alternating rain effect
49
+ def alternating_rain():
50
+ while True:
51
+ # First emoji
52
+ rain(
53
+ emoji="🤓",
54
+ font_size=25,
55
+ falling_speed=5,
56
+ animation_length="1s",
57
+ )
58
+ # Second emoji
59
+ rain(
60
+ emoji="🌺",
61
+ font_size=25,
62
+ falling_speed=5,
63
+ animation_length="1s",
64
+ )
65
+
66
+ # Call the alternating rain function
67
+ alternating_rain()