"""Futuristic theme injection for Streamlit.""" import streamlit as st from pathlib import Path def inject_theme(): """Inject custom CSS and hide default Streamlit chrome.""" css_path = Path(__file__).parent / "assets" / "theme.css" if css_path.exists(): css = css_path.read_text() else: css = "" st.markdown(f"", unsafe_allow_html=True) def hero_header(title, subtitle="", github_url="https://github.com/siddhant-rajhans/cortexlab"): """Render a futuristic hero header with gradient title.""" st.markdown(f"""

{title}

{subtitle}

GitHub HuggingFace Live Demo
""", unsafe_allow_html=True) def glow_card(title, value, subtitle="", color="#06B6D4"): """Render a glowing metric card.""" st.markdown(f"""
{title}
{value}
{subtitle}
""", unsafe_allow_html=True) def section_header(title, description=""): """Render a styled section header with optional description.""" st.markdown(f"""

{title}

{"

" + description + "

" if description else ""}
""", unsafe_allow_html=True) def feature_card(icon, title, description, color="#7C3AED"): """Render a feature card for the home page.""" return f"""
{icon}
{title}
{description}
"""