"""Fantabeto 26/27 Dashboard — Project Al-Cihred. Multi-page Streamlit app. Run with: streamlit run dashboard/app.py """ import streamlit as st from dashboard.viz.components import inject_css # Register the custom Plotly template from dashboard.viz.template import stub_render # triggers template registration PAGES = { "⚽ Matchday": "dashboard.pages.01_matchday", "👤 Players": "dashboard.pages.02_players", "💰 Auction": "dashboard.pages.03_auction", "📋 Lineup": "dashboard.pages.04_lineup", "🧪 Model Lab": "dashboard.pages.05_lab", } def main(): st.set_page_config( page_title="Fantabeto 26/27 — Project Al-Cihred", page_icon="⚽", layout="wide", initial_sidebar_state="expanded", ) inject_css() st.sidebar.markdown("""
⚽ FANTABETO
Project Al-Cihred · 26/27
""", unsafe_allow_html=True) page = st.sidebar.radio("Navigation", list(PAGES.keys()), label_visibility="collapsed") st.sidebar.divider() st.sidebar.caption("Fantacalcio Bayesian Estimated Team's Outcome") st.sidebar.caption("v2.0 · August 2026") st.sidebar.caption("Data: Fantacalcio.it · FBref · api-football") # Route to selected page module_name = PAGES[page] import importlib mod = importlib.import_module(module_name) mod.run() if __name__ == "__main__": main()