Adityaganesh commited on
Commit
b8701e8
Β·
verified Β·
1 Parent(s): 2ca732d

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +36 -1
Home.py CHANGED
@@ -1,5 +1,9 @@
1
  import streamlit as st
2
 
 
 
 
 
3
  def set_background(image_url):
4
  st.markdown(
5
  f"""
@@ -10,6 +14,10 @@ def set_background(image_url):
10
  background-position: center;
11
  background-repeat: no-repeat;
12
  }}
 
 
 
 
13
  </style>
14
  """,
15
  unsafe_allow_html=True
@@ -17,4 +25,31 @@ def set_background(image_url):
17
 
18
  # Set background image
19
  image_url = "https://huggingface.co/spaces/Adityaganesh/Cricket_data/raw/main/istockphoto-177427917-612x612.jpg"
20
- set_background(image_url)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ # Set page config
4
+ st.set_page_config(page_title="Cricket Data Analysis", page_icon="🏏", layout="wide")
5
+
6
+ # Function to set background image
7
  def set_background(image_url):
8
  st.markdown(
9
  f"""
 
14
  background-position: center;
15
  background-repeat: no-repeat;
16
  }}
17
+ .white-text {{
18
+ color: white;
19
+ font-size: 18px;
20
+ }}
21
  </style>
22
  """,
23
  unsafe_allow_html=True
 
25
 
26
  # Set background image
27
  image_url = "https://huggingface.co/spaces/Adityaganesh/Cricket_data/raw/main/istockphoto-177427917-612x612.jpg"
28
+ set_background(image_url)
29
+
30
+ # Title and Introduction
31
+ st.markdown('<h1 class="white-text">🏏 Cricket Data Analysis Dashboard</h1>', unsafe_allow_html=True)
32
+ st.markdown("""
33
+ <p class="white-text">
34
+ Welcome to my <b>Cricket Data Analysis</b> project, where data meets the game!<br>
35
+ This project dives deep into historical and live cricket data to uncover hidden patterns, player insights, team performances, and match predictions.
36
+ </p>
37
+ """, unsafe_allow_html=True)
38
+
39
+ # What I'm Doing Section
40
+ st.markdown('<h3 class="white-text">πŸ” What I\'m doing:</h3>', unsafe_allow_html=True)
41
+
42
+ st.markdown("""
43
+ <ul class="white-text">
44
+ <li>Collecting and cleaning cricket match data (ODI, T20, IPL, and more)</li>
45
+ <li>Performing <b>Exploratory Data Analysis (EDA)</b> to visualize trends</li>
46
+ <li>Analyzing player statistics, strike rates, economy, and consistency</li>
47
+ <li>Comparing team strategies, win probabilities, and match outcomes</li>
48
+ <li>Building <b>predictive models</b> for future match predictions and insights</li>
49
+ <li>Delivering visual reports and dashboards for easy interpretation</li>
50
+ </ul>
51
+ """, unsafe_allow_html=True)
52
+
53
+ # Footer
54
+ st.markdown("<hr>", unsafe_allow_html=True)
55
+ st.markdown('<p class="white-text">Explore the dashboard to uncover exciting cricket insights! πŸ§ πŸ“Š</p>', unsafe_allow_html=True)