Sathwikchowdary commited on
Commit
d99adf7
Β·
verified Β·
1 Parent(s): 97b68a2

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +35 -12
Home.py CHANGED
@@ -6,45 +6,68 @@ st.markdown(
6
  """
7
  <style>
8
  .stApp {
9
- background-color: skyblue;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  }
11
  </style>
12
  """,
13
  unsafe_allow_html=True,
14
  )
15
 
 
 
 
16
  # App Header
17
- st.markdown("<h1 style='text-align: center; color: red;'>🏏 Cric Metrics - AI-Powered Cricket Insights 🏏</h1>", unsafe_allow_html=True)
18
 
19
  # Cricket Information
20
- st.markdown("<h2 style='color: darkorange;'>Cricket - The Gentleman’s Game πŸ†</h2>", unsafe_allow_html=True)
21
  st.markdown(
22
- "<p style='font-size: 16px; color: black; font-style: italic;'>"
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 style='color: blue;'>What is Cric Metrics? πŸ“Š</h2>", unsafe_allow_html=True)
31
  st.markdown(
32
- "<p style='font-size: 16px; color: black; font-style: italic;'>"
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") # This navigates to pages/player_info.py
42
 
43
  # Author Section
44
- st.markdown("<h2 style='color: green;'>About the Author πŸ‘¨β€πŸ’»</h2>", unsafe_allow_html=True)
45
  st.markdown(
46
- "<p style='font-size: 16px; color: black; font-style: italic;'>"
47
- "<b>Sai Kalyan Satwik</b> is a data science aspirant with strong skills in Python, Exploratory Data Analysis (EDA)."
 
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)