import streamlit as st
from streamlit_extras.switch_page_button import switch_page
# Background Image Styling
st.markdown(
f"""
""",
unsafe_allow_html=True,
)
# Header with Logo
st.markdown(
"""
""",
unsafe_allow_html=True
)
# Intro to Cricket
st.markdown("", unsafe_allow_html=True)
st.markdown(
"""
Cricket is not just a sport—it's a passion that unites nations. From the roar of the stadium to the precision of a last-ball thriller, cricket teaches discipline, strategy, and the spirit of sportsmanship.
Whether it's Test cricket’s grind, ODI’s balance, or T20’s thrill—each format brings unique excitement. Players like Sachin Tendulkar, MS Dhoni, and Virat Kohli have inspired generations across the globe.
""", unsafe_allow_html=True
)
# What is Cric Metrics?
st.markdown("", unsafe_allow_html=True)
st.markdown(
"""
Cric Metrics is a smart analytics platform built using Python and Machine Learning. It helps cricket fans and analysts:
- ⚡ Compare players based on batting, bowling, and fielding metrics
- 📈 Predict match outcomes and player performances
- 📊 Visualize data using advanced graphs and charts
- 💡 Make informed decisions using AI-powered insights
Whether you're a fan, coach, or data nerd—Cric Metrics is your playground for cricket analytics.
""", unsafe_allow_html=True
)
# Player Info Button
st.markdown("", unsafe_allow_html=True)
if st.button("📊 Explore Player Information"):
switch_page("pages/1player_information.py")
st.markdown("
", unsafe_allow_html=True)
# About Author
st.markdown("", unsafe_allow_html=True)
st.markdown(
"""