Update app.py
Browse files
app.py
CHANGED
@@ -6,29 +6,32 @@ st.sidebar.title("SBS V2.0 mapper")
|
|
6 |
st.sidebar.subheader("(work in progress)")
|
7 |
st.sidebar.text("Demo by JA-RAD")
|
8 |
|
|
|
9 |
st.markdown(
|
10 |
"""
|
11 |
<style>
|
12 |
-
|
13 |
position: fixed;
|
14 |
-
top:
|
15 |
-
left:
|
16 |
-
right:
|
17 |
z-index: 9999;
|
18 |
background-color: rgba(255, 255, 255, 0.95); /* Optional background */
|
19 |
-
padding: 10px
|
20 |
-
box-shadow:
|
21 |
}
|
22 |
</style>
|
23 |
""",
|
24 |
unsafe_allow_html=True,
|
25 |
)
|
26 |
|
27 |
-
st.title("
|
28 |
|
29 |
-
|
|
|
|
|
30 |
for i in range(50):
|
31 |
-
st.write(f"Some
|
32 |
|
33 |
|
34 |
# --- PAGE SETUP ---
|
|
|
6 |
st.sidebar.subheader("(work in progress)")
|
7 |
st.sidebar.text("Demo by JA-RAD")
|
8 |
|
9 |
+
|
10 |
st.markdown(
|
11 |
"""
|
12 |
<style>
|
13 |
+
div[data-testid="stAppViewContainer"] > div:first-child {
|
14 |
position: fixed;
|
15 |
+
top: 0;
|
16 |
+
left: 0;
|
17 |
+
right: 0;
|
18 |
z-index: 9999;
|
19 |
background-color: rgba(255, 255, 255, 0.95); /* Optional background */
|
20 |
+
padding: 10px 1rem; /* Optional padding */
|
21 |
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
|
22 |
}
|
23 |
</style>
|
24 |
""",
|
25 |
unsafe_allow_html=True,
|
26 |
)
|
27 |
|
28 |
+
st.title("SBS Mapper") # Keep your title here
|
29 |
|
30 |
+
# Your Streamlit app content below this line
|
31 |
+
st.markdown("## Welcome to the SBS Mapper App!")
|
32 |
+
st.write("Scroll down to see if the header sticks now.")
|
33 |
for i in range(50):
|
34 |
+
st.write(f"Some content: {i}")
|
35 |
|
36 |
|
37 |
# --- PAGE SETUP ---
|