zoya23 commited on
Commit
d7bfcaa
Β·
verified Β·
1 Parent(s): a2542f1

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +79 -0
app.py ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+
4
+ # πŸ”Ή App Title
5
+ st.markdown(
6
+ "<h1 style='text-align: center; color: red;'>🏏 Welcome to Cricket World – Explore Player Stats!</h1>",
7
+ unsafe_allow_html=True
8
+ )
9
+
10
+ # πŸ”Ή Short Introduction
11
+ st.markdown(
12
+ """
13
+ <h3 style='text-align: center; color: green;'>Your one-stop place to discover cricket magic! πŸ†</h3>
14
+ <p style='text-align: justify;'>
15
+ Dive into the exciting world of cricket with us! Whether you're a passionate fan or just getting started,
16
+ this app brings player statistics, records, and insights right at your fingertips.
17
+ </p>
18
+ """,
19
+ unsafe_allow_html=True
20
+ )
21
+
22
+ # πŸ”Ή About Cricket
23
+ st.markdown(
24
+ """
25
+ <h3 style='text-align: left; color: blue;'>A Quick Look at Cricket</h3>
26
+ <p>
27
+ Cricket is more than just a sport β€” it’s an emotion that connects millions.
28
+ Played between two teams of eleven players each, cricket has different formats loved by fans across the world:
29
+ </p>
30
+ <ul>
31
+ <li><strong>Test Matches:</strong> The traditional and longest form, played over five thrilling days.</li>
32
+ <li><strong>One Day Internationals (ODIs):</strong> A 50-overs per side game offering the perfect blend of strategy and excitement.</li>
33
+ <li><strong>T20 Matches:</strong> High-energy 20-over matches, packed with big hits and quick action.</li>
34
+ <li><strong>IPL:</strong> The Indian Premier League, where cricket meets entertainment, bringing global stars together.</li>
35
+ </ul>
36
+ <p>From powerful sixes to magical bowling spells, cricket never fails to amaze!</p>
37
+ """,
38
+ unsafe_allow_html=True
39
+ )
40
+
41
+ # πŸ”Ή About the App
42
+ st.markdown(
43
+ """
44
+ <h3 style='text-align: left; color: blue;'>What's Inside the App?</h3>
45
+ <p style='text-align: justify;'>
46
+ This app is designed specially for cricket lovers who want easy access to detailed player statistics across formats like Test, ODI, T20, and IPL.
47
+ </p>
48
+ <ul>
49
+ <li><strong>View Player Stats:</strong> Find runs scored, wickets taken, and matches played.</li>
50
+ <li><strong>Compare Performances:</strong> See how players perform across different formats.</li>
51
+ <li><strong>Simple and Neat Interface:</strong> No messy graphs β€” just clean dropdowns and easy-to-read numbers!</li>
52
+ </ul>
53
+ <p>Stay updated and celebrate your favorite players with one click!</p>
54
+ """,
55
+ unsafe_allow_html=True
56
+ )
57
+
58
+ # πŸ”Ή Navigation Button
59
+ st.markdown(
60
+ """
61
+ <h4 style='text-align: left; color: orange;'>Ready to explore the stars of cricket?</h4>
62
+ """,
63
+ unsafe_allow_html=True
64
+ )
65
+ if st.button("View Player Stats"):
66
+ st.switch_page("pages/player_stats.py") # Make sure player_stats.py exists inside 'pages/'
67
+
68
+ # πŸ”Ή About the Author
69
+ st.markdown(
70
+ """
71
+ <h2 style='text-align: center; color: blue;'>Meet the Creator</h2>
72
+ <p style='text-align: justify;'>
73
+ Hi, I'm <strong>Jayasree Mandali</strong> β€” a passionate learner and explorer in the fields of Data Science and Machine Learning.
74
+ I combined my love for cricket and tech to build this app for fans like you.
75
+ Hope you enjoy exploring and reliving cricket moments! πŸš€
76
+ </p>
77
+ """,
78
+ unsafe_allow_html=True
79
+ )