import streamlit as st from services.api import fetch_data def render_home(): st.title("🏠 Welcome to the HR Analytics Home Page") st.write(""" This dashboard provides insights into employee satisfaction, performance metrics, training effectiveness, diversity & inclusion, and much more. """) # Fetch available API endpoints home_data = fetch_data("/home") if isinstance(home_data, dict): st.subheader("📌 Available API Endpoints") st.json(home_data.get("endpoints", {})) st.markdown("### 🔍 How to Use") st.write(""" - Navigate to the **Analytics Dashboard** from the sidebar. - Select an analysis type to fetch insights. - Visualize results with interactive charts. """)