|
import streamlit as st |
|
|
|
|
|
|
|
header = st.container() |
|
header.title("Here is a sticky header") |
|
header.write("""<div class='fixed-header'/>""", unsafe_allow_html=True) |
|
|
|
|
|
st.markdown( |
|
""" |
|
<style> |
|
div[data-testid="stVerticalBlock"] div:has(div.fixed-header) { |
|
position: sticky; |
|
top: 2.875rem; |
|
background-color: white; |
|
z-index: 999; |
|
} |
|
.fixed-header { |
|
border-bottom: 1px solid black; |
|
} |
|
</style> |
|
""", |
|
unsafe_allow_html=True |
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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") |
|
|
|
|
|
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() |
|
|
|
|