Spaces:
Sleeping
Sleeping
import streamlit as st | |
from streamlit_extras.switch_page_button import switch_page | |
# Custom styles | |
st.markdown( | |
""" | |
<style> | |
.stApp { | |
background-color: skyblue; | |
} | |
</style> | |
""", | |
unsafe_allow_html=True, | |
) | |
# App Header | |
st.markdown("<h1 style='text-align: center; color: red;'>๐ Cric Metrics - AI-Powered Cricket Insights ๐</h1>", unsafe_allow_html=True) | |
# Cricket Information | |
st.markdown("<h2 style='color: darkorange;'>Cricket - The Gentlemanโs Game ๐</h2>", unsafe_allow_html=True) | |
st.markdown( | |
"<p style='font-size: 16px; color: black; font-style: italic;'>" | |
"Cricket is one of the most popular sports worldwide, loved by millions. It is played in multiple formats, including Test matches, One Day Internationals (ODIs), and T20s. " | |
"With legendary players, thrilling rivalries, and unforgettable moments, cricket has become more than just a gameโit's an emotion for fans around the globe." | |
"</p>", | |
unsafe_allow_html=True | |
) | |
# About Cric Metrics | |
st.markdown("<h2 style='color: blue;'>What is Cric Metrics? ๐</h2>", unsafe_allow_html=True) | |
st.markdown( | |
"<p style='font-size: 16px; color: black; font-style: italic;'>" | |
"Cric Metrics is an advanced cricket analytics platform designed to provide in-depth insights, player comparisons, " | |
"score predictions, and team analysis using AI and machine learning." | |
"</p>", | |
unsafe_allow_html=True | |
) | |
# Player Information Button | |
if st.button("๐ Player Information"): | |
switch_page("player_info") # This navigates to pages/player_info.py | |
# Author Section | |
st.markdown("<h2 style='color: green;'>About the Author ๐จโ๐ป</h2>", unsafe_allow_html=True) | |
st.markdown( | |
"<p style='font-size: 16px; color: black; font-style: italic;'>" | |
"<b>Sai Kalyan Satwik</b>" | |
"</p>", | |
unsafe_allow_html=True | |
) | |