import streamlit as st def switch_page(page_name): st.session_state.current_page = page_name st.rerun() def show_main(): # Page config st.set_page_config( page_title="HerCorners", page_icon="✨", layout="wide", initial_sidebar_state="expanded" ) # Hide streamlit default menu and footer st.markdown(""" """, unsafe_allow_html=True) # Initialize session state if 'current_page' not in st.session_state: st.session_state.current_page = 'home' # Sidebar navigation with st.sidebar: # Title box that works as home button st.markdown("""

✨ HerCorners ✨

Your safe space to slay! 💅

""", unsafe_allow_html=True) # Home button at the top of navigation if st.button("🏠 Home", use_container_width=True): switch_page('home') st.markdown("
", unsafe_allow_html=True) # Divider # Navigation buttons if st.button("👑 She Legends", use_container_width=True): switch_page('legends') if st.button("💧 She Melted Mascara", use_container_width=True): switch_page('mascara') if st.button("✨ She Glows", use_container_width=True): switch_page('glows') if st.button("🔥 She Fuels", use_container_width=True): switch_page('fuels') # Main content area if st.session_state.current_page == 'home': st.markdown("""

Welcome to HerCorners! ✨

Choose from our spaces:

""", unsafe_allow_html=True) # Feature cards col1, col2 = st.columns(2) with col1: st.markdown("""

👑 She Legends

Chat with inspiring mentors for guidance and support!

💧 She Melted Mascara

Share your feelings in a safe, supportive space!

""", unsafe_allow_html=True) with col2: st.markdown("""

✨ She Glows

Learn new skills and level up your life!

🔥 She Fuels

Share your wins and inspire others!

""", unsafe_allow_html=True) else: # Add home button in main content area when not on home page if st.button("🏠 Back to Home", type="secondary"): switch_page('home') # Import and show the appropriate page if st.session_state.current_page == 'legends': from pages.she_legends import show_page show_page() elif st.session_state.current_page == 'mascara': from pages.she_melted_mascara import show_page show_page() elif st.session_state.current_page == 'glows': from pages.she_glows import show_page show_page() elif st.session_state.current_page == 'fuels': from pages.she_fuels import show_page show_page() if __name__ == "__main__": show_main()