"""Fantabeto 26/27 Dashboard — Project Al-Cihred. Multi-page Streamlit app. Run with: streamlit run dashboard/app.py """ import sys from pathlib import Path # Ensure project root is on path so 'dashboard' imports resolve PROJECT_ROOT = Path(__file__).resolve().parent.parent if str(PROJECT_ROOT) not in sys.path: sys.path.insert(0, str(PROJECT_ROOT)) 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 = { "🔬 Dev Preview": "dashboard.pages.06_dev_preview", "⚽ 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("""