Spaces:
Sleeping
Sleeping
Update Home.py
Browse files
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
|
| 6 |
st.markdown("""
|
| 7 |
<style>
|
|
|
|
|
|
|
| 8 |
body {
|
| 9 |
-
background
|
|
|
|
| 10 |
color: white;
|
| 11 |
}
|
| 12 |
-
|
|
|
|
| 13 |
color: #00FFFF;
|
| 14 |
text-align: center;
|
| 15 |
-
text-shadow:
|
| 16 |
}
|
|
|
|
| 17 |
.section {
|
| 18 |
background: rgba(255, 255, 255, 0.1);
|
| 19 |
padding: 20px;
|
| 20 |
-
border-radius:
|
| 21 |
margin-bottom: 20px;
|
| 22 |
-
box-shadow: 0px 4px
|
| 23 |
}
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
}
|
| 27 |
-
</style>
|
| 28 |
-
""",
|
| 29 |
-
unsafe_allow_html=True
|
| 30 |
-
)
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|
| 48 |
-
st.
|
| 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.
|
| 54 |
-
st.
|
|
|
|
| 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 |
-
|
| 63 |
-
st.
|
| 64 |
-
|
| 65 |
-
""")
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
st.subheader("π Connect with Me")
|
| 69 |
st.markdown("""
|
| 70 |
-
-
|
| 71 |
-
-
|
| 72 |
-
-
|
| 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)
|