import streamlit as st
from streamlit_option_menu import option_menu
st.set_page_config(
page_title=“My Online Store”,
)
class multipleApp:
def init(self):
self.apps =
def add_app(self, title, function):
self.apps.append({
"title": title,
"function": function
})
def run(self):
with st.sidebar:
app = option_menu(
menu_title="My Online Store",
options=["Home", "About"],
icons=["house-fill", "person-circle"],
menu_icon="chat-text-fill",
default_index=1,
styles={
"container": {"padding": "5!important", "background-color": "blue"},
"icon": {"color": "white", "font-size": "23px"},
"nav-link": {"color": "white", "font-size": "20px", "text-align": "left", "margin": "0px"},
"nav-link-selected": {"background-color": "#02ab21"}, }
)
if app == "Home":
home.app()
if app == "About":
about.app()
run()