georad commited on
Commit
fe5cb7d
·
verified ·
1 Parent(s): 957d115

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -33
app.py CHANGED
@@ -1,34 +1,4 @@
1
  import streamlit as st
2
- #from streamlit_navigation_bar import st_navbar
3
-
4
-
5
- header = st.container()
6
- header.title("Here is a sticky header")
7
- header.write("""<div class='fixed-header'/>""", unsafe_allow_html=True)
8
-
9
- ### Custom CSS for the sticky header
10
- st.markdown(
11
- """
12
- <style>
13
- div[data-testid="stVerticalBlock"] div:has(div.fixed-header) {
14
- position: sticky;
15
- top: 2.875rem;
16
- background-color: white;
17
- z-index: 999;
18
- }
19
- .fixed-header {
20
- border-bottom: 1px solid black;
21
- }
22
- </style>
23
- """,
24
- unsafe_allow_html=True
25
- )
26
-
27
-
28
-
29
-
30
-
31
-
32
 
33
  # --- SHARED ON ALL PAGES ---
34
  st.logo(image="images/menu_book_60dp_75FBFD.png")
@@ -47,6 +17,4 @@ type_text_page = st.Page(
47
 
48
  pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS
49
  #pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
50
- pg.run()
51
- #page = st_navbar(pages=["SBS V2.0 mapper"], selected="SBS V2.0 mapper", key="app_page_navbar")
52
- #st.write(page)
 
1
  import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  # --- SHARED ON ALL PAGES ---
4
  st.logo(image="images/menu_book_60dp_75FBFD.png")
 
17
 
18
  pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS
19
  #pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
20
+ pg.run()