DOMMETI commited on
Commit
7ba2b9b
Β·
verified Β·
1 Parent(s): bba9bb7

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +65 -33
Home.py CHANGED
@@ -2,37 +2,66 @@ import streamlit as st
2
  from streamlit_lottie import st_lottie
3
  import requests
4
 
5
- # Custom CSS for styling
6
  st.markdown("""
7
  <style>
 
 
8
  body {
9
- background-color: #1a1a1a;
 
10
  color: white;
11
  }
12
- h1 {
 
13
  color: #00FFFF;
14
  text-align: center;
15
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
16
  }
 
17
  .section {
18
  background: rgba(255, 255, 255, 0.1);
19
  padding: 20px;
20
- border-radius: 10px;
21
  margin-bottom: 20px;
22
- box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1);
23
  }
24
- p {
25
- font-size: 18px;
 
 
 
 
 
 
 
 
 
 
 
26
  }
27
- </style>
28
- """,
29
- unsafe_allow_html=True
30
- )
31
 
32
- # Title
33
- st.title("🏏 Crick-o-Meter: Unleashing Data-Driven Cricket Insights! πŸ“ŠπŸ”₯")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
 
 
35
 
 
36
  @st.cache_data
37
  def load_lottie_url(url: str):
38
  response = requests.get(url)
@@ -43,32 +72,35 @@ def load_lottie_url(url: str):
43
  lottie_animation = load_lottie_url("https://lottie.host/6e182649-61a6-4683-8680-5493855ac08a/G0pStmcS8T.json")
44
  st_lottie(lottie_animation, height=200, key="cricket")
45
 
46
-
47
- st.subheader("🏏 About the App")
48
- st.write("""
49
- 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!
50
- """)
51
 
52
  # Key Features
53
- st.subheader("πŸš€ Key Features")
54
- st.write("""
 
55
  - πŸ“Š **Player Performance Analysis**
56
  - πŸ“ˆ **Predictive Insights for Matches**
57
  - 🧠 **AI-driven Cricket Forecasting**
58
  - πŸ“Œ **Team Comparisons & Head-to-Head Stats**
59
  """)
 
60
 
 
 
 
 
 
61
 
62
- st.subheader("πŸ‘¨β€πŸ’» About the Creator")
63
- st.write("""
64
- 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.
65
- """)
66
-
67
-
68
- st.subheader("🌐 Connect with Me")
69
  st.markdown("""
70
- - **LinkedIn:** [Dommeti Thoran Raj](https://www.linkedin.com/in/dommeti-thoran-raj-692769191/) 🀝
71
- - **GitHub:** [Raj2216](https://github.com/raj2216) πŸ’»
72
- - **Email:** [rajbunny2216@gmail.com](mailto:rajbunny2216@gmail.com) πŸ“§
73
- """)
74
-
 
2
  from streamlit_lottie import st_lottie
3
  import requests
4
 
5
+ # Custom CSS for Enhanced Styling
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);
12
+ font-family: 'Poppins', sans-serif;
13
  color: white;
14
  }
15
+
16
+ h1, h2 {
17
  color: #00FFFF;
18
  text-align: center;
19
+ text-shadow: 0px 0px 10px rgba(0, 255, 255, 0.8);
20
  }
21
+
22
  .section {
23
  background: rgba(255, 255, 255, 0.1);
24
  padding: 20px;
25
+ border-radius: 15px;
26
  margin-bottom: 20px;
27
+ box-shadow: 0px 4px 12px rgba(0, 255, 255, 0.2);
28
  }
29
+
30
+ .glow-button {
31
+ background: linear-gradient(90deg, #00FFFF, #00CCFF);
32
+ border: none;
33
+ padding: 10px 20px;
34
+ color: black;
35
+ font-weight: bold;
36
+ border-radius: 25px;
37
+ box-shadow: 0px 0px 10px rgba(0, 255, 255, 0.8);
38
+ transition: 0.3s;
39
+ text-decoration: none;
40
+ display: inline-block;
41
+ text-align: center;
42
  }
 
 
 
 
43
 
44
+ .glow-button:hover {
45
+ transform: scale(1.1);
46
+ box-shadow: 0px 0px 20px rgba(0, 255, 255, 1);
47
+ }
48
+
49
+ ul {
50
+ list-style-type: none;
51
+ padding: 0;
52
+ }
53
+
54
+ li::before {
55
+ content: "⚑ ";
56
+ color: #00FFFF;
57
+ }
58
+ </style>
59
+ """, unsafe_allow_html=True)
60
 
61
+ # Title with Glow Effect
62
+ st.markdown("<h1>🏏 Crick-o-Meter: Unleashing Data-Driven Cricket Insights! πŸ“ŠπŸ”₯</h1>", unsafe_allow_html=True)
63
 
64
+ # Lottie Animation
65
  @st.cache_data
66
  def load_lottie_url(url: str):
67
  response = requests.get(url)
 
72
  lottie_animation = load_lottie_url("https://lottie.host/6e182649-61a6-4683-8680-5493855ac08a/G0pStmcS8T.json")
73
  st_lottie(lottie_animation, height=200, key="cricket")
74
 
75
+ # About the App
76
+ st.markdown('<div class="section">', unsafe_allow_html=True)
77
+ st.markdown("### 🎯 About the App")
78
+ 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!")
79
+ st.markdown('</div>', unsafe_allow_html=True)
80
 
81
  # Key Features
82
+ st.markdown('<div class="section">', unsafe_allow_html=True)
83
+ st.markdown("### πŸš€ Key Features")
84
+ st.markdown("""
85
  - πŸ“Š **Player Performance Analysis**
86
  - πŸ“ˆ **Predictive Insights for Matches**
87
  - 🧠 **AI-driven Cricket Forecasting**
88
  - πŸ“Œ **Team Comparisons & Head-to-Head Stats**
89
  """)
90
+ st.markdown('</div>', unsafe_allow_html=True)
91
 
92
+ # About the Creator
93
+ st.markdown('<div class="section">', unsafe_allow_html=True)
94
+ st.markdown("### πŸ‘¨β€πŸ’» About the Creator")
95
+ 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.")
96
+ st.markdown('</div>', unsafe_allow_html=True)
97
 
98
+ # Connect with Me (Styled Buttons)
99
+ st.markdown('<div class="section">', unsafe_allow_html=True)
100
+ st.markdown("### 🌐 Connect with Me")
 
 
 
 
101
  st.markdown("""
102
+ [<button class="glow-button">LinkedIn</button>](https://www.linkedin.com/in/dommeti-thoran-raj-692769191/)
103
+ [<button class="glow-button">GitHub</button>](https://github.com/raj2216)
104
+ [<button class="glow-button">Email</button>](mailto:rajbunny2216@gmail.com)
105
+ """, unsafe_allow_html=True)
106
+ st.markdown('</div>', unsafe_allow_html=True)