sbsmapper / app.py
georad's picture
Update app.py
72158ef verified
raw
history blame
1.22 kB
import streamlit as st
hide_streamlit_style = """
<style>
div[data-testid="stStatusWidget"]{
visibility: visible;
height: 400px;
position: sticky;
}
div[data-testid="stBaseButton-header"]{
visibility: visible;
height: auto;
position: sticky;
}
div[data-testid="stToolbar"]{
visibility: visible;
height: auto;
position: sticky;
}
div[data-testid="stDecoration"]{
visibility: visible;
height: auto;
position: sticky;
}
</style>
"""
# --- SHARED ON ALL PAGES ---
st.logo(image="images/menu_book_60dp_75FBFD.png")
st.sidebar.title("SBS V2.0 Mapper")
st.sidebar.subheader("(work in progress)")
st.sidebar.text("Demo by JA-RAD")
# --- PAGE SETUP ---
type_text_page = st.Page(
page="pages/type_text.py",
title="DEMO (work in progress)",
icon=":material/keyboard:",
default=False,)
# --- NAVIGATION SETUP ---
pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS
#pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
pg.run()