Spaces:
Sleeping
Sleeping
Update home.py
Browse files
home.py
CHANGED
@@ -1,7 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
from streamlit_extras.switch_page_button import switch_page
|
3 |
-
import base64
|
4 |
-
import webbrowser
|
5 |
|
6 |
# Initialize session state to track which button was clicked
|
7 |
if 'button_clicked' not in st.session_state:
|
@@ -14,46 +12,6 @@ st.markdown(
|
|
14 |
.stApp {
|
15 |
background-color: skyblue;
|
16 |
}
|
17 |
-
.title {
|
18 |
-
text-align: center;
|
19 |
-
color: red;
|
20 |
-
font-size: 36px;
|
21 |
-
font-family: 'Times New Roman';
|
22 |
-
font-weight: bold;
|
23 |
-
}
|
24 |
-
.header {
|
25 |
-
font-size: 28px;
|
26 |
-
font-family: 'Times New Roman';
|
27 |
-
color: blue;
|
28 |
-
font-style: italic;
|
29 |
-
font-weight: bold;
|
30 |
-
}
|
31 |
-
.header1 {
|
32 |
-
font-size: 24px;
|
33 |
-
font-family: 'Times New Roman';
|
34 |
-
color: green;
|
35 |
-
font-style: italic;
|
36 |
-
font-weight: bold;
|
37 |
-
}
|
38 |
-
.header2 {
|
39 |
-
font-size: 20px;
|
40 |
-
font-family: 'Times New Roman';
|
41 |
-
color: black;
|
42 |
-
font-style: italic;
|
43 |
-
font-weight: bold;
|
44 |
-
}
|
45 |
-
.content {
|
46 |
-
font-size: 16px;
|
47 |
-
font-family: 'Times New Roman';
|
48 |
-
line-height: 1.6;
|
49 |
-
color: black;
|
50 |
-
}
|
51 |
-
.example {
|
52 |
-
font-size: 16px;
|
53 |
-
font-family: 'Times New Roman';
|
54 |
-
font-style: italic;
|
55 |
-
color: black;
|
56 |
-
}
|
57 |
</style>
|
58 |
""",
|
59 |
unsafe_allow_html=True,
|
@@ -64,33 +22,46 @@ for key in ['page', 'jupyter_clicked', 'pdf_clicked', 'excel_clicked']:
|
|
64 |
if key not in st.session_state:
|
65 |
st.session_state[key] = 'home' if key == 'page' else False
|
66 |
|
67 |
-
#
|
68 |
-
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
from streamlit_extras.switch_page_button import switch_page
|
|
|
|
|
3 |
|
4 |
# Initialize session state to track which button was clicked
|
5 |
if 'button_clicked' not in st.session_state:
|
|
|
12 |
.stApp {
|
13 |
background-color: skyblue;
|
14 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
</style>
|
16 |
""",
|
17 |
unsafe_allow_html=True,
|
|
|
22 |
if key not in st.session_state:
|
23 |
st.session_state[key] = 'home' if key == 'page' else False
|
24 |
|
25 |
+
# App Header
|
26 |
+
st.markdown("<h1 style='text-align: center; color: red;'>π Cric Metrics - AI-Powered Cricket Insights π</h1>", unsafe_allow_html=True)
|
27 |
|
28 |
+
# About the App
|
29 |
+
st.markdown("<h2 style='color: blue;'>What is Cric Metrics? π</h2>", unsafe_allow_html=True)
|
30 |
+
st.markdown(
|
31 |
+
"<p style='font-size: 16px; color: black; font-style: italic;'>"
|
32 |
+
"Cric Metrics is an advanced cricket analytics platform designed to provide in-depth insights, player comparisons, "
|
33 |
+
"score predictions, and team analysis using AI and machine learning."
|
34 |
+
"</p>",
|
35 |
+
unsafe_allow_html=True
|
36 |
+
)
|
37 |
+
st.markdown(
|
38 |
+
"<p style='font-size: 16px; color: black; font-style: italic;'>"
|
39 |
+
"Key Features:<br>"
|
40 |
+
"β
<b>Player Profiles & Comparisons</b> β Analyze detailed stats and compare players across formats.<br>"
|
41 |
+
"β
<b>Team Analysis</b> β Head-to-head matchups, recent performance, and winning probabilities.<br>"
|
42 |
+
"β
<b>Score Prediction</b> β AI-driven forecasts based on historical data and live conditions.<br>"
|
43 |
+
"</p>",
|
44 |
+
unsafe_allow_html=True
|
45 |
+
)
|
46 |
+
st.markdown(
|
47 |
+
"<p style='font-size: 16px; color: black; font-style: italic;'>"
|
48 |
+
"Whether you're a cricket enthusiast, fantasy league player, or analyst, Cric Metrics gives you the edge with data-driven insights!"
|
49 |
+
"</p>",
|
50 |
+
unsafe_allow_html=True
|
51 |
+
)
|
52 |
+
|
53 |
+
# Author Section
|
54 |
+
st.markdown("<h2 style='color: green;'>About the Author π¨βπ»</h2>", unsafe_allow_html=True)
|
55 |
+
st.markdown(
|
56 |
+
"<p style='font-size: 16px; color: black; font-style: italic;'>"
|
57 |
+
"<b>Sai Kalyan Satwik</b> is a seasoned cricket enthusiast and tech entrepreneur with over 10 years of experience in the field. "
|
58 |
+
"Passionate about blending technology with sports, he has developed Cric Metrics to bring the power of AI and data science into cricket analytics."
|
59 |
+
"</p>",
|
60 |
+
unsafe_allow_html=True
|
61 |
+
)
|
62 |
+
st.markdown(
|
63 |
+
"<p style='font-size: 16px; color: black; font-style: italic;'>"
|
64 |
+
"His expertise spans Machine Learning, Software Development, and Cricket Analysis, making Cric Metrics a top-tier analytical platform for cricket lovers worldwide."
|
65 |
+
"</p>",
|
66 |
+
unsafe_allow_html=True
|
67 |
+
)
|