Spaces:
Sleeping
Sleeping
Update Home.py
Browse files
Home.py
CHANGED
|
@@ -1,87 +1,118 @@
|
|
|
|
|
| 1 |
import streamlit as st
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
#
|
| 4 |
st.markdown("""
|
| 5 |
<style>
|
| 6 |
-
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;
|
|
|
|
| 7 |
body {
|
| 8 |
-
background: #
|
| 9 |
-
color: white;
|
| 10 |
font-family: 'Poppins', sans-serif;
|
|
|
|
| 11 |
}
|
| 12 |
-
|
|
|
|
|
|
|
| 13 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
color: #00FFFF;
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
|
|
|
| 17 |
.section {
|
| 18 |
-
background: rgba(255, 255, 255, 0.
|
| 19 |
padding: 20px;
|
| 20 |
-
border-radius:
|
| 21 |
-
margin-bottom:
|
| 22 |
-
box-shadow:
|
| 23 |
-
}
|
| 24 |
-
.button-container {
|
| 25 |
-
text-align: center;
|
| 26 |
-
margin-top: 20px;
|
| 27 |
}
|
|
|
|
| 28 |
.glow-button {
|
| 29 |
-
background: linear-gradient(90deg, #00FFFF, #
|
| 30 |
border: none;
|
| 31 |
-
padding:
|
| 32 |
color: black;
|
| 33 |
font-weight: bold;
|
| 34 |
-
border-radius:
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
box-shadow: 0px 0px 8px rgba(0,255,255,0.5);
|
| 38 |
text-decoration: none;
|
| 39 |
display: inline-block;
|
|
|
|
|
|
|
|
|
|
| 40 |
}
|
| 41 |
.glow-button:hover {
|
| 42 |
-
transform: scale(1.
|
| 43 |
-
box-shadow: 0px 0px
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
}
|
| 45 |
</style>
|
| 46 |
""", unsafe_allow_html=True)
|
| 47 |
|
| 48 |
-
# ๐ Header
|
| 49 |
-
st.markdown("<h1>๐ฌ Neural Network Playground</h1>", unsafe_allow_html=True)
|
| 50 |
|
| 51 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 53 |
-
st.markdown("
|
| 54 |
-
st.write("
|
| 55 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 56 |
|
| 57 |
-
#
|
| 58 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 59 |
-
st.markdown("
|
| 60 |
st.markdown("""
|
| 61 |
-
-
|
| 62 |
-
-
|
| 63 |
-
-
|
| 64 |
-
-
|
| 65 |
-
- ๐ Training loss and validation curves
|
| 66 |
""")
|
| 67 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 68 |
|
| 69 |
-
#
|
| 70 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 71 |
-
st.markdown("
|
| 72 |
-
st.write("
|
| 73 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 74 |
|
| 75 |
-
#
|
| 76 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 77 |
-
st.markdown("
|
|
|
|
|
|
|
| 78 |
st.markdown('<div class="button-container">', unsafe_allow_html=True)
|
| 79 |
st.markdown("""
|
| 80 |
-
[<
|
| 81 |
-
[<
|
| 82 |
-
[<
|
| 83 |
""", unsafe_allow_html=True)
|
| 84 |
-
st.markdown('</div>', unsafe_allow_html=True
|
| 85 |
-
st.markdown('</div>', unsafe_allow_html=True)
|
| 86 |
-
|
| 87 |
|
|
|
|
| 1 |
+
You said:
|
| 2 |
import streamlit as st
|
| 3 |
+
from streamlit_lottie import st_lottie
|
| 4 |
+
import requests
|
| 5 |
|
| 6 |
+
# Custom CSS for Enhanced Styling
|
| 7 |
st.markdown("""
|
| 8 |
<style>
|
| 9 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
|
| 10 |
+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');
|
| 11 |
body {
|
| 12 |
+
background: linear-gradient(135deg, #1e1e2f, #2a2a3b);
|
|
|
|
| 13 |
font-family: 'Poppins', sans-serif;
|
| 14 |
+
color: white;
|
| 15 |
}
|
| 16 |
+
|
| 17 |
+
/* Header Styling */
|
| 18 |
+
h1, h2, h3 {
|
| 19 |
text-align: center;
|
| 20 |
+
color: #00FFFF; /* Bright Cyan */
|
| 21 |
+
text-shadow: 0px 0px 12px rgba(0, 255, 255, 1),
|
| 22 |
+
0px 0px 20px rgba(0, 128, 255, 0.8);
|
| 23 |
+
}
|
| 24 |
+
.custom-subheader {
|
| 25 |
color: #00FFFF;
|
| 26 |
+
font-family: 'Roboto', sans-serif;
|
| 27 |
+
font-weight: 600;
|
| 28 |
+
font-size: 28px;
|
| 29 |
+
margin-bottom: 15px;
|
| 30 |
+
text-align: center;
|
| 31 |
}
|
| 32 |
+
/* Section Background */
|
| 33 |
.section {
|
| 34 |
+
background: rgba(255, 255, 255, 0.1);
|
| 35 |
padding: 20px;
|
| 36 |
+
border-radius: 15px;
|
| 37 |
+
margin-bottom: 30px;
|
| 38 |
+
box-shadow: 0px 4px 12px rgba(0, 255, 255, 0.2);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
}
|
| 40 |
+
/* Glowing Button */
|
| 41 |
.glow-button {
|
| 42 |
+
background: linear-gradient(90deg, #00FFFF, #00CCFF);
|
| 43 |
border: none;
|
| 44 |
+
padding: 12px 25px;
|
| 45 |
color: black;
|
| 46 |
font-weight: bold;
|
| 47 |
+
border-radius: 25px;
|
| 48 |
+
box-shadow: 0px 0px 10px rgba(0, 255, 255, 0.8);
|
| 49 |
+
transition: 0.3s;
|
|
|
|
| 50 |
text-decoration: none;
|
| 51 |
display: inline-block;
|
| 52 |
+
text-align: center;
|
| 53 |
+
font-size: 16px;
|
| 54 |
+
margin: 10px 5px;
|
| 55 |
}
|
| 56 |
.glow-button:hover {
|
| 57 |
+
transform: scale(1.1);
|
| 58 |
+
box-shadow: 0px 0px 20px rgba(0, 255, 255, 1);
|
| 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 |
|
| 69 |
+
# Title
|
| 70 |
+
st.markdown("<h1 class='custom-subheader'>๐ Crick-o-Meter: Unleashing Data-Driven Cricket Insights! ๐๐ฅ</h1>", unsafe_allow_html=True)
|
| 71 |
+
|
| 72 |
+
# Lottie Animation
|
| 73 |
+
@st.cache_data
|
| 74 |
+
def load_lottie_url(url: str):
|
| 75 |
+
response = requests.get(url)
|
| 76 |
+
if response.status_code != 200:
|
| 77 |
+
return None
|
| 78 |
+
return response.json()
|
| 79 |
+
|
| 80 |
+
lottie_animation = load_lottie_url("https://lottie.host/6e182649-61a6-4683-8680-5493855ac08a/G0pStmcS8T.json")
|
| 81 |
+
st_lottie(lottie_animation, height=200, key="cricket")
|
| 82 |
+
|
| 83 |
+
# About the App
|
| 84 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 85 |
+
st.markdown("<h2 class='custom-subheader'>๐ฏ About the App</h2>", unsafe_allow_html=True)
|
| 86 |
+
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!")
|
| 87 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 88 |
|
| 89 |
+
# Key Features
|
| 90 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 91 |
+
st.markdown("<h2 class='custom-subheader'>๐ Key Features</h2>", unsafe_allow_html=True)
|
| 92 |
st.markdown("""
|
| 93 |
+
- ๐ **Player Performance Analysis**
|
| 94 |
+
- ๐ **Predictive Insights for Matches**
|
| 95 |
+
- ๐ง **AI-driven Cricket Forecasting**
|
| 96 |
+
- ๐ **Team Comparisons & Head-to-Head Stats**
|
|
|
|
| 97 |
""")
|
| 98 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 99 |
|
| 100 |
+
# About the Creator
|
| 101 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 102 |
+
st.markdown("<h2 class='custom-subheader'>๐จโ๐ป About the Creator</h2>", unsafe_allow_html=True)
|
| 103 |
+
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.")
|
| 104 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 105 |
|
| 106 |
+
# Contact Section
|
| 107 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 108 |
+
st.markdown("<h2 class='custom-subheader'>๐ Contact Me</h2>", unsafe_allow_html=True)
|
| 109 |
+
|
| 110 |
+
# Button Section (Now Centered with Space)
|
| 111 |
st.markdown('<div class="button-container">', unsafe_allow_html=True)
|
| 112 |
st.markdown("""
|
| 113 |
+
[<button class="glow-button">LinkedIn</button>](https://www.linkedin.com/in/dommeti-thoran-raj-692769191/)
|
| 114 |
+
[<button class="glow-button">GitHub</button>](https://github.com/raj2216)
|
| 115 |
+
[<button class="glow-button">Email</button>](mailto:rajbunny2216@gmail.com)
|
| 116 |
""", unsafe_allow_html=True)
|
| 117 |
+
st.markdown('</div>', unsafe_allow_html=True
|
|
|
|
|
|
|
| 118 |
|