Spaces:
Sleeping
Sleeping
| import streamlit as st # type: ignore | |
| from PIL import Image # type: ignore # noqa: F401 | |
| import os | |
| st.set_page_config(page_title="Love & Birthday Celebration", page_icon="π", layout="centered") | |
| # Get the directory where this script is located | |
| script_dir = os.path.dirname(os.path.abspath(__file__)) | |
| css_file_path = os.path.join(script_dir, "style.css") | |
| # Check if file exists before trying to open it | |
| if os.path.exists(css_file_path): | |
| with open(css_file_path) as f: | |
| st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True) | |
| else: | |
| st.error(f"CSS file not found at: {css_file_path}") | |
| st.title("π Welcome to the Love & Birthday Celebration! π") | |
| st.markdown(""" | |
| Welcome to a special place crafted with love and joy! | |
| Explore heartfelt quotes, share memories, browse sweet gift ideas, and celebrate the magic of love and birthdays. | |
| """) | |
| # image = Image.open("birthday_love_banner.jpg") # Optional banner image | |
| # st.image(image, use_column_width=True) | |