Update app.py
Browse files
app.py
CHANGED
@@ -6,34 +6,14 @@ st.sidebar.title("SBS V2.0 mapper")
|
|
6 |
st.sidebar.subheader("(work in progress)")
|
7 |
st.sidebar.text("Demo by JA-RAD")
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
margin-top: 50px; /* Adjust this value as needed for your header's height */
|
14 |
-
}
|
15 |
-
div[data-testid="stApp"] {
|
16 |
-
position: fixed;
|
17 |
-
top: 0;
|
18 |
-
left: 0;
|
19 |
-
width: 100%;
|
20 |
-
z-index: 9999;
|
21 |
-
background-color: rgba(255, 255, 255, 0.95); /* Optional background */
|
22 |
-
padding: 10px 1rem; /* Optional padding */
|
23 |
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
|
24 |
-
}
|
25 |
-
</style>
|
26 |
-
""",
|
27 |
-
unsafe_allow_html=True,
|
28 |
-
)
|
29 |
|
30 |
-
st.
|
31 |
-
|
32 |
-
# Your Streamlit app content below this line
|
33 |
-
st.markdown("## Welcome to the SBS Mapper App!")
|
34 |
-
st.write("Trying a different approach with body margin...")
|
35 |
for i in range(50):
|
36 |
-
st.write(f"
|
37 |
|
38 |
# --- PAGE SETUP ---
|
39 |
type_text_page = st.Page(
|
|
|
6 |
st.sidebar.subheader("(work in progress)")
|
7 |
st.sidebar.text("Demo by JA-RAD")
|
8 |
|
9 |
+
# Create a container for your "fake" header
|
10 |
+
with st.container():
|
11 |
+
st.markdown("## SBS Mapper", unsafe_allow_html=True)
|
12 |
+
st.markdown("---") # Optional separator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
+
st.write("Scroll down to see the 'header' remain at the top of the content flow.")
|
|
|
|
|
|
|
|
|
15 |
for i in range(50):
|
16 |
+
st.write(f"Some more content: {i}")
|
17 |
|
18 |
# --- PAGE SETUP ---
|
19 |
type_text_page = st.Page(
|