sbsmapper / app.py
georad's picture
Update app.py
34e2892 verified
raw
history blame
1 kB
import streamlit as st
# Custom CSS to make the header sticky
st.markdown("""
<style>
.css-18e3th9 {
padding-top: 0rem;
padding-bottom: 0rem;
}
header {
position: fixed;
top: 0;
z-index: 999;
width: 100%;
background-color: white;
}
.block-container {
padding-top: 5rem;
}
</style>
""", unsafe_allow_html=True)
# --- 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=True,)
# --- 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()