|
import streamlit as st |
|
|
|
|
|
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") |
|
|
|
st.markdown( |
|
""" |
|
<style> |
|
.streamlit-expander header:first-child { |
|
position: fixed; |
|
top: 0px; |
|
left: 0px; |
|
right: 0px; |
|
z-index: 9999; |
|
background-color: rgba(255, 255, 255, 0.95); /* Optional background */ |
|
padding: 10px 0; /* Optional padding */ |
|
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */ |
|
} |
|
</style> |
|
""", |
|
unsafe_allow_html=True, |
|
) |
|
|
|
st.title("My Sticky Header App") |
|
|
|
st.write("Scroll down to see if the header remains at the top on Hugging Face!") |
|
for i in range(50): |
|
st.write(f"Some more content here: {i}") |
|
|
|
|
|
|
|
type_text_page = st.Page( |
|
page="pages/type_text.py", |
|
title="SBS V2.0 mapper", |
|
icon=":material/keyboard:", |
|
default=True,) |
|
|
|
|
|
pg = st.navigation(pages=[type_text_page]) |
|
|
|
pg.run() |