Spaces:
Running
Running
""" | |
Header components for the leaderboard application. | |
""" | |
import streamlit as st | |
from src.utils.config import app_config | |
def render_page_header(): | |
""" | |
Render the page header with title and description | |
""" | |
st.markdown( | |
f""" | |
<div class="title-container"> | |
<h1 class="title">{app_config['title']}</h1> | |
<p class="subtitle">{app_config['description']}</p> | |
</div> | |
""", | |
unsafe_allow_html=True | |
) | |
def render_section_header(title): | |
""" | |
Render a section header | |
Args: | |
title (str): The section title | |
""" | |
st.markdown(f"### {title}") | |
def render_footer(): | |
""" | |
Render the page footer | |
""" | |
st.markdown( | |
""" | |
<div class="footer"> | |
<p>© 2023 Model Capability Leaderboard • Made with Streamlit • Contact: [email protected]</p> | |
</div> | |
""", | |
unsafe_allow_html=True | |
) |