import streamlit as st import requests from streamlit_lottie import st_lottie from dotenv import load_dotenv import os # Load environment variables from .env file load_dotenv() # Retrieve the password from the environment variable APP_PASSWORD = os.getenv("APP_PASSWORD") # Set the page title and layout st.set_page_config(page_title="Space Birthday Exploration", page_icon="🚀", layout="centered") def load_lottieurl(url: str): r = requests.get(url) if r.status_code != 200: return None return r.json() # Load the Lottie animation lottie_hello = load_lottieurl("https://lottie.host/d29edbdd-af94-402e-bb4c-b314f17897e6/n5SKHOkbYQ.json") # Initialize session state if 'authenticated' not in st.session_state: st.session_state['authenticated'] = False # Function to handle login def login(): st.header("Enter Password to Continue") password = st.text_input("Password", type="password", key="password_input") if st.button("Submit"): if password == APP_PASSWORD: st.session_state['authenticated'] = True st.success("Authentication successful!") st.rerun() else: st.error("Incorrect password") # Main app content def main_content(): # Custom styles with the background image and updated shadow effect st.markdown( """ """, unsafe_allow_html=True ) # Add "Happy Birthday!" text at the top st.markdown('
Wishing you many wonderful years ahead, filled with love, happiness, and out-of-this-world, cosmic adventures, space girl!
Now let me present to you the bday vid edit "20thChondiEdit"
I hope you like it!
PS: 2 decades that is old!!
""" # You can change this text st.markdown(f'Hey dude this last 1 year was damn crazy but it was filled with many moments.
These are some of those moments that were captured.
In all these moments Ik I haven't always been the ideal best friend and I am truly sorry for those.
You have been a great friend for all this time and am sorry for all those times I couldn't reciprocate it.
Seriously though thank you for being there for me and for taking up all the messed up things that I do.
I haven't always been the bunny that you deserve but thank you for the aditi you have been.
So Happy Birthday! And I hope we stay like this for all your next bdays well just a lil bit more matured 🤓
""" # You can change this text st.markdown(f'