File size: 4,406 Bytes
c29a293
ea8ee0c
 
c29a293
ea8ee0c
c29a293
 
ea8ee0c
 
af509d8
c29a293
ea8ee0c
50ceeab
ea8ee0c
c29a293
ea8ee0c
 
9211345
af509d8
ea8ee0c
 
 
af509d8
ea8ee0c
e298318
ea8ee0c
 
 
 
 
e298318
af509d8
c29a293
ea8ee0c
c29a293
ea8ee0c
 
 
c29a293
af509d8
7ba2b9b
ea8ee0c
7ba2b9b
ea8ee0c
7ba2b9b
 
ea8ee0c
 
 
7ba2b9b
 
ea8ee0c
 
 
c29a293
af509d8
7ba2b9b
ea8ee0c
 
 
af509d8
ea8ee0c
 
 
 
7ba2b9b
 
 
c29a293
ea8ee0c
 
 
af509d8
ea8ee0c
 
 
 
 
 
 
 
af509d8
 
 
 
 
ea8ee0c
 
7ba2b9b
ea8ee0c
 
7ba2b9b
c29a293
ea8ee0c
7ba2b9b
ea8ee0c
7ba2b9b
ea8ee0c
 
 
 
c29a293
7ba2b9b
c29a293
ea8ee0c
7ba2b9b
ea8ee0c
 
7ba2b9b
c29a293
ea8ee0c
7ba2b9b
ea8ee0c
 
af509d8
e298318
c29a293
af509d8
 
 
7ba2b9b
af509d8
50ceeab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import streamlit as st
from streamlit_lottie import st_lottie
import requests

# Custom CSS for Enhanced Styling
st.markdown("""
    <style>
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
    @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');
    
    body {
        background: linear-gradient(135deg, #1e1e2f, #2a2a3b);
        font-family: 'Poppins', sans-serif;
        color: white;
    }
    
    h1, h2, h3 {
        text-align: center;
        color: #00FFFF;
        text-shadow: 0px 0px 12px rgba(0, 255, 255, 1), 
                     0px 0px 20px rgba(0, 128, 255, 0.8);
    }
    
    .custom-subheader {
        color: #00FFFF;
        font-family: 'Roboto', sans-serif;
        font-weight: 600;
        font-size: 28px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .section {
        background: rgba(255, 255, 255, 0.1);
        padding: 20px;
        border-radius: 15px;
        margin-bottom: 30px;
        box-shadow: 0px 4px 12px rgba(0, 255, 255, 0.2);
    }
    
    .glow-button {
        background: linear-gradient(90deg, #00FFFF, #00CCFF);
        border: none;
        padding: 12px 25px;
        color: black;
        font-weight: bold;
        border-radius: 25px;
        box-shadow: 0px 0px 10px rgba(0, 255, 255, 0.8);
        transition: 0.3s;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        font-size: 16px;
        margin: 10px 5px;
    }
    
    .glow-button:hover {
        transform: scale(1.1);
        box-shadow: 0px 0px 20px rgba(0, 255, 255, 1);
    }

    .button-container {
        text-align: center;
        margin-top: 15px;
        margin-bottom: 20px;
    }
    </style>
""", unsafe_allow_html=True)

# Title
st.markdown("<h1 class='custom-subheader'>🏏 Crick-o-Meter: Unleashing Data-Driven Cricket Insights! πŸ“ŠπŸ”₯</h1>", unsafe_allow_html=True)

# Load Lottie Animation
@st.cache_data
def load_lottie_url(url: str):
    response = requests.get(url)
    if response.status_code != 200:
        return None
    return response.json()

lottie_animation = load_lottie_url("https://lottie.host/6e182649-61a6-4683-8680-5493855ac08a/G0pStmcS8T.json")

if lottie_animation:
    st_lottie(lottie_animation, height=200, key="cricket")
else:
    st.error("⚠️ Failed to load animation. Please check your internet connection.")

# About the App
st.markdown('<div class="section">', unsafe_allow_html=True)
st.markdown("<h2 class='custom-subheader'>🎯 About the App</h2>", unsafe_allow_html=True)
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!")
st.markdown('</div>', unsafe_allow_html=True)

# Key Features
st.markdown('<div class="section">', unsafe_allow_html=True)
st.markdown("<h2 class='custom-subheader'>πŸš€ Key Features</h2>", unsafe_allow_html=True)
st.markdown("""
- πŸ“Š **Player Performance Analysis**
- πŸ“ˆ **Predictive Insights for Matches**
- 🧠 **AI-driven Cricket Forecasting**
- πŸ“Œ **Team Comparisons & Head-to-Head Stats**
""")
st.markdown('</div>', unsafe_allow_html=True)

# About the Creator
st.markdown('<div class="section">', unsafe_allow_html=True)
st.markdown("<h2 class='custom-subheader'>πŸ‘¨β€πŸ’» About the Creator</h2>", unsafe_allow_html=True)
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.")
st.markdown('</div>', unsafe_allow_html=True)

# Contact Section
st.markdown('<div class="section">', unsafe_allow_html=True)
st.markdown("<h2 class='custom-subheader'>πŸ“ž Contact Me</h2>", unsafe_allow_html=True)

# Buttons with Links
st.markdown('<div class="button-container">', unsafe_allow_html=True)
st.markdown("""
<a href="https://www.linkedin.com/in/dommeti-thoran-raj-692769191/" target="_blank"><button class="glow-button">LinkedIn</button></a>
<a href="https://github.com/raj2216" target="_blank"><button class="glow-button">GitHub</button></a>
<a href="mailto:rajbunny2216@gmail.com"><button class="glow-button">Email</button></a>
""", unsafe_allow_html=True)
st.markdown('</div>', unsafe_allow_html=True)