Skip to content

Commit

Permalink
Merge pull request #476 from agoenergy/464-modify-logos-in-banner-and…
Browse files Browse the repository at this point in the history
…-sidebar

 Modify logos in banner and sidebar. Closes #464
  • Loading branch information
wingechr authored Jun 19, 2024
2 parents f66754b + dcef8dc commit d0a47a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions app/layout_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,10 @@ def display_footer():
st.markdown(
"""
##### On behalf of
Agora Energiewende<br/>
Agora Industry<br/>
Anna-Louisa-Karsch-Str. 2<br/>
D-10178 Berlin<br/>
www.agora-industry.org<br/>
www.agora-energiewende.org
www.agora-industry.org
""",
unsafe_allow_html=True,
)
Expand All @@ -192,13 +191,16 @@ def display_footer():
)

# TODO: fix uneven height and vertical alignment of logos
c1, c2, c3, c4 = st.columns(4, gap="medium")
c0, c1, c2, c3, c4, c5 = st.columns(
[1, 2, 2, 2, 2, 1],
gap="large",
)
with c1:
st.image("img/oeko_logo_612x306.png")
st.image("img/Agora_Industry_logo_612x306.png")
with c2:
st.image("img/agora-energiewende_logo_612x306.png")
with c3:
st.image("img/Agora_Industry_logo_612x306.png")
st.image("img/oeko_logo_612x306.png")
with c4:
st.image("img/PtX-Hub_Logo_international_612x306.png")

Expand Down
4 changes: 2 additions & 2 deletions app/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

@st.cache_resource()
def sidebar_logo():
st.image("img/agora-energiewende_logo_612x306.png")
st.image("img/Agora_Industry_logo_612x306.png")


def make_sidebar(api: PtxboaAPI):
st.logo(
image="img/transparent_10x10.png", # placeholder when sidebar is expanded
icon_image="img/agora-energiewende_logo_612x306.png",
icon_image="img/Agora_Industry_logo_612x306.png",
)

with st.sidebar:
Expand Down

0 comments on commit d0a47a9

Please sign in to comment.