Skip to content

Commit

Permalink
show footer on each tab
Browse files Browse the repository at this point in the history
  • Loading branch information
joAschauer committed Dec 13, 2023
1 parent 376be44 commit 13c668b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 41 deletions.
43 changes: 43 additions & 0 deletions app/layout_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,46 @@ def display_costs(
column_config = config_number_columns(df_res, format=f"%.1f {output_unit}")
st.dataframe(df_res, use_container_width=True, column_config=column_config)
return None


def display_footer():
with st.container(border=True):
c1, c2, c3 = st.columns(3)
with c1:
st.markdown(
"""
##### Developed by:
Öko-Institut<br/>
Merzhauser Straße 173<br/>
D-79100 Freiburg im Breisgau<br/>
www.oeko.de
""",
unsafe_allow_html=True,
)
with c2:
st.markdown(
"""
##### On behalf of:
Agora Energiewende<br/>
Anna-Louisa-Karsch-Str. 2<br/>
D-10178 Berlin<br/>
www.agora-energiewende.de
""",
unsafe_allow_html=True,
)
with c3:
st.markdown(
"""
##### Authors:
- Christoph Heinemann
- Dr. Roman Mendelevitch
- Markus Haller
- Christian Winger
- Johannes Aschauer
- Susanne Krieger
- Katharina Göckeler
""",
unsafe_allow_html=True,
)

st.image("img/logos.png")
41 changes: 0 additions & 41 deletions app/tab_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,44 +42,3 @@ def content_info():

with st.container(border=True):
st.markdown(read_markdown_file("md/info_disclaimer.md"))

with st.container(border=True):
c1, c2, c3 = st.columns(3)
with c1:
st.markdown(
"""
##### Developed by:
Öko-Institut<br/>
Merzhauser Straße 173<br/>
D-79100 Freiburg im Breisgau<br/>
www.oeko.de
""",
unsafe_allow_html=True,
)
with c2:
st.markdown(
"""
##### On behalf of:
Agora Energiewende<br/>
Anna-Louisa-Karsch-Str. 2<br/>
D-10178 Berlin<br/>
www.agora-energiewende.de
""",
unsafe_allow_html=True,
)
with c3:
st.markdown(
"""
##### Authors:
- Christoph Heinemann
- Dr. Roman Mendelevitch
- Markus Haller
- Christian Winger
- Johannes Aschauer
- Susanne Krieger
- Katharina Göckeler
""",
unsafe_allow_html=True,
)

st.image("img/logos.png")
3 changes: 3 additions & 0 deletions ptxboa_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import app.ptxboa_functions as pf
from app.context_data import load_context_data
from app.layout_elements import display_footer
from app.sidebar import make_sidebar
from app.tab_certification_schemes import content_certification_schemes
from app.tab_country_fact_sheets import content_country_fact_sheets
Expand Down Expand Up @@ -184,3 +185,5 @@

if st.session_state[st.session_state["tab_key"]] == "Info":
content_info()

display_footer()

0 comments on commit 13c668b

Please sign in to comment.