Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| import pandas as pd | |
| # Custom background (light pink to purple) | |
| st.markdown(""" | |
| <style> | |
| .stApp { | |
| background: linear-gradient(to right, #ffe6f0, #e0c3fc); | |
| } | |
| .about-author { | |
| background-color: rgba(255, 255, 255, 0.8); | |
| padding: 1.5rem; | |
| border-radius: 15px; | |
| box-shadow: 0 4px 12px rgba(0,0,0,0.1); | |
| } | |
| .author-links a { | |
| margin-right: 5px; | |
| font-weight: bold; | |
| color: #4b0082; | |
| text-decoration: none; | |
| text-align: center; | |
| } | |
| .author-links a:hover { | |
| text-decoration: underline; | |
| } | |
| </style> | |
| """, unsafe_allow_html=True) | |
| # st.markdown(""" | |
| # <style> | |
| # .stApp { | |
| # background: linear-gradient(to right, #ffe6f0, #e0c3fc); | |
| # } | |
| # .about-author { | |
| # background-color: rgba(255, 255, 255, 0.8); | |
| # padding: 1.5rem; | |
| # border-radius: 15px; | |
| # box-shadow: 0 4px 12px rgba(0,0,0,0.1); | |
| # text-align: center; | |
| # max-width: 700px; | |
| # margin: auto; | |
| # } | |
| # .about-author h2 { | |
| # margin-bottom: 0.2rem; | |
| # } | |
| # .about-author h4 { | |
| # margin-top: 0rem; | |
| # margin-bottom: 1rem; | |
| # } | |
| # .author-links { | |
| # margin-top: 1.5rem; | |
| # } | |
| # .author-links a { | |
| # display: inline-block; | |
| # margin: 0 10px; | |
| # padding: 10px 20px; | |
| # background-color: #4b0082; | |
| # color: white; | |
| # border-radius: 25px; | |
| # font-weight: bold; | |
| # text-decoration: none; | |
| # transition: background-color 0.3s; | |
| # } | |
| # .author-links a:hover { | |
| # background-color: #6a0dad; | |
| # } | |
| # </style> | |
| # """, unsafe_allow_html=True) | |
| # Main content | |
| st.markdown('<h2 style="text-align: center;"><span style="color:red;">CricBuzz</span>: Welcome to the Cricket World</h2>', unsafe_allow_html=True) | |
| st.markdown('<h3 style="text-align: center; color:red;">About Cricket</h3>', unsafe_allow_html=True) | |
| st.write(""" | |
| Cricket is a bat-and-ball sport played between two teams of eleven players each. Originating in England in the 16th century, it has grown to become one of the most popular sports in the world, especially in countries like India, Australia, England, Pakistan, South Africa, and the West Indies. | |
| The game is played in three main formats: Test matches (lasting up to five days), One Day Internationals (50 overs per side), and the fast-paced Twenty20 (T20) format, which has revolutionized cricket’s entertainment value. The sport involves batting, bowling, and fielding, with teams competing to score the most runs. Cricket is known for its rich history, iconic rivalries, and legendary players such as Sachin Tendulkar, Virat Kohli, MS Dhoni, and Ricky Ponting. More than just a sport, cricket is a passion that unites millions across cultures and countries. | |
| """) | |
| st.markdown('<h3 style="text-align: center; color:red;">Different Cricket Formats</h3>', unsafe_allow_html=True) | |
| st.markdown(""" | |
| <p style='text-align: justify;'> | |
| Cricket features a variety of international and domestic tournaments that captivate fans around the world. The most prestigious is the <strong>ICC Cricket World Cup</strong>, held every four years for One Day Internationals, alongside the <strong>ICC T20 World Cup</strong> for the shorter format. The <strong>ICC World Test Championship</strong> adds a league structure to the traditional Test format. On the domestic front, franchise-based leagues like the <strong>Indian Premier League (IPL)</strong>, <strong>Big Bash League (BBL)</strong> in Australia, <strong>Pakistan Super League (PSL)</strong>, <strong>Caribbean Premier League (CPL)</strong>, and <strong>The Hundred</strong> in England bring fast-paced T20 action with international stars. Regional tournaments like the <strong>Asia Cup</strong> and bilateral series between top cricketing nations also draw massive viewership. | |
| </p> | |
| """, unsafe_allow_html=True) | |
| st.markdown('<h3 style="text-align: center;"><u>About the Author</u></h3>', unsafe_allow_html=True) | |
| # About the Author | |
| st.markdown( | |
| """ | |
| <div class="about-author"> | |
| <p><strong><h4>Shubham Mohanty</h4></strong></p> | |
| <p>I'm a Data Science Enthusiast with a strong passion for turning raw data into meaningful insights. | |
| With a love for statistics, machine learning, and real-world problem solving, I enjoy working on | |
| end-to-end data science projects that make a difference.</p> | |
| <div class="author-links"> | |
| <a href="https://www.linkedin.com/in/shubhamohanty/" target="_blank">LinkedIn</a> | |
| <a href="https://github.com/ShubhamMohanty680?tab=repositories" target="_blank">GitHub</a> | |
| </div> | |
| </div> | |
| """, unsafe_allow_html=True | |
| ) | |
| # Space before button | |
| st.markdown("<br><br>", unsafe_allow_html=True) | |
| # Navigation button | |
| if st.button("Go to Page 1"): | |
| st.switch_page("pages/player stats.py") | |