Add logo
This commit is contained in:
BIN
app/images/GMN_Logo_neu_rgb.png
Normal file
BIN
app/images/GMN_Logo_neu_rgb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
26
app/main.py
26
app/main.py
@@ -122,21 +122,33 @@ def build_sidebar(authenticator, username: str, df_dashboards: pd.DataFrame):
|
|||||||
fullname = get_fullname_for_user(username)
|
fullname = get_fullname_for_user(username)
|
||||||
|
|
||||||
with st.sidebar:
|
with st.sidebar:
|
||||||
|
st.logo("app/images/GMN_Logo_neu_rgb.png",size="small")
|
||||||
|
# st.markdown("*Controlling*")
|
||||||
st.write(f"**{fullname}** ({role})")
|
st.write(f"**{fullname}** ({role})")
|
||||||
authenticator.logout("Logout", "sidebar")
|
|
||||||
st.divider()
|
col1, col2 = st.columns(2)
|
||||||
|
|
||||||
|
with col1:
|
||||||
|
if st.button("Logout", use_container_width=True):
|
||||||
|
authenticator.logout("Logout", "unrendered")
|
||||||
|
st.rerun()
|
||||||
|
#authenticator.logout("Logout", "sidebar")
|
||||||
|
with col2:
|
||||||
|
if st.button("🏠 Home", use_container_width=True):
|
||||||
|
st.session_state["selected_dashboard_code"] = "home"
|
||||||
|
# st.divider()
|
||||||
st.markdown("### Dashboards")
|
st.markdown("### Dashboards")
|
||||||
st.divider()
|
# st.divider()
|
||||||
|
|
||||||
# Default-Auswahl
|
# Default-Auswahl
|
||||||
if "selected_dashboard_code" not in st.session_state:
|
if "selected_dashboard_code" not in st.session_state:
|
||||||
st.session_state["selected_dashboard_code"] = "home"
|
st.session_state["selected_dashboard_code"] = "home"
|
||||||
|
|
||||||
# Home ist immer da
|
# Home ist immer da
|
||||||
if st.button("🏠 Home", use_container_width=True):
|
# if st.button("🏠 Home", use_container_width=True):
|
||||||
st.session_state["selected_dashboard_code"] = "home"
|
# st.session_state["selected_dashboard_code"] = "home"
|
||||||
|
|
||||||
st.markdown("---")
|
# st.markdown("---")
|
||||||
|
|
||||||
# Suchfeld für DB-Dashboards
|
# Suchfeld für DB-Dashboards
|
||||||
query = st.text_input("Suche", placeholder="Dashboard suchen …")
|
query = st.text_input("Suche", placeholder="Dashboard suchen …")
|
||||||
@@ -174,7 +186,7 @@ def main():
|
|||||||
st.set_page_config(
|
st.set_page_config(
|
||||||
page_title=f"Co-App Start - V{__version__}",
|
page_title=f"Co-App Start - V{__version__}",
|
||||||
page_icon="🔒",
|
page_icon="🔒",
|
||||||
layout="wide",
|
layout="centered",
|
||||||
)
|
)
|
||||||
|
|
||||||
# --- Authenticator vorbereiten ---
|
# --- Authenticator vorbereiten ---
|
||||||
|
|||||||
BIN
data/app.db
BIN
data/app.db
Binary file not shown.
Reference in New Issue
Block a user