bhuvi06 commited on
Commit
8b38c2e
ยท
verified ยท
1 Parent(s): f30401d

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +68 -0
app.py ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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;'>You are 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 know about 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: green;'>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
+