Sathwikchowdary commited on
Commit
0a9aa5b
Β·
verified Β·
1 Parent(s): af68536

Update home.py

Browse files
Files changed (1) hide show
  1. home.py +42 -71
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
- # Page routing
68
- page = st.session_state['page']
69
 
70
- if page == 'home':
71
- st.markdown("<div class='title'> Cric Metrics - AI-Powered Cricket Insights </div><br>", unsafe_allow_html=True)
72
- st.markdown("<div class='header'>What is Cric Metrics?</div><br>", unsafe_allow_html=True)
73
- st.markdown(
74
- """
75
- <div class='content'>
76
- 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.<br><br>
77
- Key Features:<br>
78
- 1. **Player Profiles & Comparisons** – Analyze detailed stats and compare players across formats.<br>
79
- 2. **Team Analysis** – Head-to-head matchups, recent performance, and winning probabilities.<br>
80
- 3. **Score Prediction** – AI-driven forecasts based on historical data and live conditions.<br>
81
- <br>
82
- Whether you're a cricket enthusiast, fantasy league player, or analyst, Cric Metrics gives you the edge with data-driven insights!
83
- </div><br><br>
84
- """,
85
- unsafe_allow_html=True,
86
- )
87
-
88
- st.markdown("<div class='header1'>About the Author</div><br>", unsafe_allow_html=True)
89
- st.markdown(
90
- """
91
- <div class='content'>
92
- **Sai Kalyan Satwik** is a seasoned cricket enthusiast and tech entrepreneur with over 10 years of experience in the field. Passionate about blending technology with sports, he has developed Cric Metrics to bring the power of AI and data science into cricket analytics. His expertise spans machine learning, software development, and cricket analysis, making Cric Metrics a top-tier analytical platform for cricket lovers worldwide.
93
- </div>
94
- """,
95
- unsafe_allow_html=True,
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
+ )