gopi110's picture
Update Home.py
ecb3731 verified
import streamlit as st
# Page configuration
st.set_page_config(page_title="Cricket Stats", layout="centered")
# Custom background and button styles
st.markdown("""
<style>
/* Background gradient */
.stApp {
background: linear-gradient(to bottom right, #e3f2fd, #f3e5f5);
}
/* Style the main button */
.stButton > button {
background-color: #6a1b9a;
color: white;
font-size: 18px;
padding: 0.75rem 2rem;
border-radius: 10px;
border: none;
transition: all 0.3s ease;
}
.stButton > button:hover {
background-color: #8e24aa;
color: #ffebee;
transform: scale(1.05);
}
/* Make text a bit more readable */
.markdown-text-container p {
font-size: 18px;
line-height: 1.6;
color: #333;
}
</style>
""", unsafe_allow_html=True)
# Title
st.title("🏏 Welcome To Cricket Stats")
# Personal intro
st.markdown("""
Hi, I'm **Yamparala Gopi Krishna** πŸ‘‹
A data analyst skilled in **Python**, **SQL**, and **Power BI**.
I love turning messy data into insights that help make smart decisions πŸ“Š.
Recently, I analyzed Amazon helmet trends using **web scraping** and **visualization tools** to uncover pricing and rating patterns πŸ”.
""")
# Navigation button
if st.button("πŸš€ Go to Visualizations"):
st.switch_page("pages/players_stats.py")