Spaces:
Sleeping
Sleeping
Update Home.py
Browse files
Home.py
CHANGED
@@ -6,45 +6,68 @@ st.markdown(
|
|
6 |
"""
|
7 |
<style>
|
8 |
.stApp {
|
9 |
-
background-color:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
}
|
11 |
</style>
|
12 |
""",
|
13 |
unsafe_allow_html=True,
|
14 |
)
|
15 |
|
|
|
|
|
|
|
16 |
# App Header
|
17 |
-
st.markdown("<h1
|
18 |
|
19 |
# Cricket Information
|
20 |
-
st.markdown("<h2
|
21 |
st.markdown(
|
22 |
-
"<p
|
23 |
"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. "
|
24 |
-
"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."
|
25 |
"</p>",
|
26 |
unsafe_allow_html=True
|
27 |
)
|
28 |
|
29 |
# About Cric Metrics
|
30 |
-
st.markdown("<h2
|
31 |
st.markdown(
|
32 |
-
"<p
|
33 |
"Cric Metrics is an advanced cricket analytics platform designed to provide in-depth insights, player comparisons, "
|
34 |
-
"score predictions, and team analysis using AI and machine learning."
|
35 |
"</p>",
|
36 |
unsafe_allow_html=True
|
37 |
)
|
38 |
|
39 |
# Player Information Button
|
40 |
if st.button("π Player Information"):
|
41 |
-
st.switch_page("pages/1player_information.py")
|
42 |
|
43 |
# Author Section
|
44 |
-
st.markdown("<h2
|
45 |
st.markdown(
|
46 |
-
"<p
|
47 |
-
"<b>Sai Kalyan Satwik</b> is a
|
|
|
48 |
"</p>",
|
49 |
unsafe_allow_html=True
|
50 |
)
|
|
|
|
|
|
|
|
6 |
"""
|
7 |
<style>
|
8 |
.stApp {
|
9 |
+
background-color: #f0f8ff;
|
10 |
+
}
|
11 |
+
.header {
|
12 |
+
text-align: center;
|
13 |
+
color: red;
|
14 |
+
font-size: 30px;
|
15 |
+
font-weight: bold;
|
16 |
+
}
|
17 |
+
.sub-header {
|
18 |
+
color: darkorange;
|
19 |
+
font-size: 24px;
|
20 |
+
font-weight: bold;
|
21 |
+
}
|
22 |
+
.text {
|
23 |
+
font-size: 16px;
|
24 |
+
color: black;
|
25 |
+
font-style: italic;
|
26 |
}
|
27 |
</style>
|
28 |
""",
|
29 |
unsafe_allow_html=True,
|
30 |
)
|
31 |
|
32 |
+
# Innomatics Logo at the top
|
33 |
+
st.image("/mnt/data/1.png", use_column_width=True)
|
34 |
+
|
35 |
# App Header
|
36 |
+
st.markdown("<h1 class='header'>π Cric Metrics - AI-Powered Cricket Insights π</h1>", unsafe_allow_html=True)
|
37 |
|
38 |
# Cricket Information
|
39 |
+
st.markdown("<h2 class='sub-header'>Cricket - The Gentlemanβs Game π</h2>", unsafe_allow_html=True)
|
40 |
st.markdown(
|
41 |
+
"<p class='text'>"
|
42 |
"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. "
|
43 |
+
"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. ππ₯"
|
44 |
"</p>",
|
45 |
unsafe_allow_html=True
|
46 |
)
|
47 |
|
48 |
# About Cric Metrics
|
49 |
+
st.markdown("<h2 class='sub-header'>What is Cric Metrics? π</h2>", unsafe_allow_html=True)
|
50 |
st.markdown(
|
51 |
+
"<p class='text'>"
|
52 |
"Cric Metrics is an advanced cricket analytics platform designed to provide in-depth insights, player comparisons, "
|
53 |
+
"score predictions, and team analysis using AI and machine learning. ππ€"
|
54 |
"</p>",
|
55 |
unsafe_allow_html=True
|
56 |
)
|
57 |
|
58 |
# Player Information Button
|
59 |
if st.button("π Player Information"):
|
60 |
+
st.switch_page("pages/1player_information.py")
|
61 |
|
62 |
# Author Section
|
63 |
+
st.markdown("<h2 class='sub-header'>About the Author π¨βπ»</h2>", unsafe_allow_html=True)
|
64 |
st.markdown(
|
65 |
+
"<p class='text'>"
|
66 |
+
"<b>Sai Kalyan Satwik</b> is a seasoned cricket enthusiast and tech entrepreneur with over 10 years of experience. "
|
67 |
+
"He specializes in data science, Python programming, and Exploratory Data Analysis (EDA). ππ"
|
68 |
"</p>",
|
69 |
unsafe_allow_html=True
|
70 |
)
|
71 |
+
|
72 |
+
# Innomatics Logo at the bottom as well (optional)
|
73 |
+
st.image("/mnt/data/1.png", use_column_width=True)
|