Skip to content

Commit

Permalink
Added logo to static
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelicr committed May 7, 2024
1 parent 6646a86 commit 1b26e17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/SOPRANO/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
)
from SOPRANO.utils.path_utils import Directories

logo_path = "/".join(__file__.split("/")[:-1] + ['static', 'logo.png'])


def with_tab_pipeline(tab: DeltaGenerator):
with tab:
Expand Down Expand Up @@ -480,9 +482,9 @@ def with_tab_immunopeptidome(tab: DeltaGenerator):

if __name__ == "__main__":
st.set_page_config(layout="wide")
header = """
<img src="https://www.icr.ac.uk/assets/img/logo.png" alt="icr" width="200px">
<span style="color:black;"> - SOPRANO - </span><span style=
header1 = ""#f'<img src="{logo_path}" alt="icr" width="200px">'
header2 = """
<span style="color:black;">Institute of Cancer Research - SOPRANO - </span><span style=
"color:grey">S</span><span style=
"color:yellowgreen">election </span><span style=
"color:grey">O</span><span style=
Expand All @@ -495,7 +497,7 @@ def with_tab_immunopeptidome(tab: DeltaGenerator):
"color:grey">O</span><span style=
"color:darkred">ns</span>
"""
st.markdown(header, unsafe_allow_html=True)
st.markdown(header1+header2, unsafe_allow_html=True)
(
welcome_tab,
genome_tab,
Expand Down
Binary file added src/SOPRANO/static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1b26e17

Please sign in to comment.