yunx-z's picture
Update src/components/header.py
e63f04d verified
raw
history blame
1.49 kB
"""
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
)
# Add the links line separately, outside the header box
st.markdown(
f"""
<div class="links-bar">
<a href="https://arxiv.org/pdf/2504.09702" target="_blank" class="link-item">πŸ“‘ Arxiv</a> |
<a href="https://github.com/yunx-z/MLRC-Bench" target="_blank" class="link-item">πŸ’» GitHub</a> |
<a href="https://x.com/YunxiangZhang4/status/1912631363884212701" target="_blank" class="link-item">🧡 X Summary</a> |
<span class="info-item">Updated: April 2025</span>
</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
"""
# Footer content removed per user request
pass
# <a href="https://huggingface.co/spaces/launch/MLRC_Bench" target="_blank" class="link-item">πŸ€— HuggingFace</a> |