DOMMETI commited on
Commit
a05fe41
Β·
verified Β·
1 Parent(s): e298318

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +16 -24
Home.py CHANGED
@@ -6,6 +6,7 @@ import requests
6
  st.markdown("""
7
  <style>
8
  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
 
9
 
10
  body {
11
  background: linear-gradient(135deg, #1e1e2f, #2a2a3b);
@@ -18,24 +19,15 @@ st.markdown("""
18
  text-shadow: 0px 0px 10px rgba(0, 255, 255, 0.8);
19
  }
20
 
21
- h1 {
22
  color: #00FFFF;
23
- font-size: 36px;
24
- font-weight: 700;
25
- }
26
-
27
- h2 {
28
- color: #FFD700;
29
- font-size: 28px;
30
  font-weight: 600;
 
 
 
31
  }
32
 
33
- h3 {
34
- color: #FF6347;
35
- font-size: 24px;
36
- font-weight: 500;
37
- }
38
-
39
  .section {
40
  background: rgba(255, 255, 255, 0.1);
41
  padding: 20px;
@@ -57,7 +49,7 @@ st.markdown("""
57
  display: inline-block;
58
  text-align: center;
59
  font-size: 16px;
60
- margin: 10px 5px; /* Added spacing between buttons */
61
  }
62
 
63
  .glow-button:hover {
@@ -66,15 +58,15 @@ st.markdown("""
66
  }
67
 
68
  .button-container {
69
- text-align: center; /* Centering buttons */
70
- margin-top: 15px; /* Space before buttons */
71
- margin-bottom: 20px; /* Space after buttons */
72
  }
73
  </style>
74
  """, unsafe_allow_html=True)
75
 
76
- # Title with Glow Effect
77
- st.markdown("<h1>🏏 Crick-o-Meter: Unleashing Data-Driven Cricket Insights! πŸ“ŠπŸ”₯</h1>", unsafe_allow_html=True)
78
 
79
  # Lottie Animation
80
  @st.cache_data
@@ -89,13 +81,13 @@ st_lottie(lottie_animation, height=200, key="cricket")
89
 
90
  # About the App
91
  st.markdown('<div class="section">', unsafe_allow_html=True)
92
- st.header("🎯 About the App") # Used st.header() for better styling
93
  st.write("Crick-o-Meter is your ultimate companion for cricket statistics and analytics. Whether you're a fantasy cricket player, a data nerd, or just an ardent fan, our app gives you real-time stats, player comparisons, and predictive insights!")
94
  st.markdown('</div>', unsafe_allow_html=True)
95
 
96
  # Key Features
97
  st.markdown('<div class="section">', unsafe_allow_html=True)
98
- st.header("πŸš€ Key Features") # Used st.header() to apply styling
99
  st.markdown("""
100
  - πŸ“Š **Player Performance Analysis**
101
  - πŸ“ˆ **Predictive Insights for Matches**
@@ -106,13 +98,13 @@ st.markdown('</div>', unsafe_allow_html=True)
106
 
107
  # About the Creator
108
  st.markdown('<div class="section">', unsafe_allow_html=True)
109
- st.header("πŸ‘¨β€πŸ’» About the Creator") # Used st.header() for better presentation
110
  st.write("Hi! I'm a passionate developer blending machine learning with cricket analytics. My goal is to make cricket statistics accessible and insightful for fans worldwide.")
111
  st.markdown('</div>', unsafe_allow_html=True)
112
 
113
  # Contact Section
114
  st.markdown('<div class="section">', unsafe_allow_html=True)
115
- st.header("πŸ“ž Contact Me") # Used st.header() instead of markdown
116
 
117
  # Button Section (Now Centered with Space)
118
  st.markdown('<div class="button-container">', unsafe_allow_html=True)
 
6
  st.markdown("""
7
  <style>
8
  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
9
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');
10
 
11
  body {
12
  background: linear-gradient(135deg, #1e1e2f, #2a2a3b);
 
19
  text-shadow: 0px 0px 10px rgba(0, 255, 255, 0.8);
20
  }
21
 
22
+ .custom-subheader {
23
  color: #00FFFF;
24
+ font-family: 'Roboto', sans-serif;
 
 
 
 
 
 
25
  font-weight: 600;
26
+ font-size: 28px;
27
+ margin-bottom: 15px;
28
+ text-align: center;
29
  }
30
 
 
 
 
 
 
 
31
  .section {
32
  background: rgba(255, 255, 255, 0.1);
33
  padding: 20px;
 
49
  display: inline-block;
50
  text-align: center;
51
  font-size: 16px;
52
+ margin: 10px 5px;
53
  }
54
 
55
  .glow-button:hover {
 
58
  }
59
 
60
  .button-container {
61
+ text-align: center;
62
+ margin-top: 15px;
63
+ margin-bottom: 20px;
64
  }
65
  </style>
66
  """, unsafe_allow_html=True)
67
 
68
+ # Title
69
+ st.markdown("<h1 class='custom-subheader'>🏏 Crick-o-Meter: Unleashing Data-Driven Cricket Insights! πŸ“ŠπŸ”₯</h1>", unsafe_allow_html=True)
70
 
71
  # Lottie Animation
72
  @st.cache_data
 
81
 
82
  # About the App
83
  st.markdown('<div class="section">', unsafe_allow_html=True)
84
+ st.markdown("<h2 class='custom-subheader'>🎯 About the App</h2>", unsafe_allow_html=True)
85
  st.write("Crick-o-Meter is your ultimate companion for cricket statistics and analytics. Whether you're a fantasy cricket player, a data nerd, or just an ardent fan, our app gives you real-time stats, player comparisons, and predictive insights!")
86
  st.markdown('</div>', unsafe_allow_html=True)
87
 
88
  # Key Features
89
  st.markdown('<div class="section">', unsafe_allow_html=True)
90
+ st.markdown("<h2 class='custom-subheader'>πŸš€ Key Features</h2>", unsafe_allow_html=True)
91
  st.markdown("""
92
  - πŸ“Š **Player Performance Analysis**
93
  - πŸ“ˆ **Predictive Insights for Matches**
 
98
 
99
  # About the Creator
100
  st.markdown('<div class="section">', unsafe_allow_html=True)
101
+ st.markdown("<h2 class='custom-subheader'>πŸ‘¨β€πŸ’» About the Creator</h2>", unsafe_allow_html=True)
102
  st.write("Hi! I'm a passionate developer blending machine learning with cricket analytics. My goal is to make cricket statistics accessible and insightful for fans worldwide.")
103
  st.markdown('</div>', unsafe_allow_html=True)
104
 
105
  # Contact Section
106
  st.markdown('<div class="section">', unsafe_allow_html=True)
107
+ st.markdown("<h2 class='custom-subheader'>πŸ“ž Contact Me</h2>", unsafe_allow_html=True)
108
 
109
  # Button Section (Now Centered with Space)
110
  st.markdown('<div class="button-container">', unsafe_allow_html=True)