Sathwikchowdary commited on
Commit
c9f597b
Β·
verified Β·
1 Parent(s): 4eb15b3

Update pages/1player_information.py

Browse files
Files changed (1) hide show
  1. pages/1player_information.py +0 -77
pages/1player_information.py CHANGED
@@ -2,83 +2,6 @@ import streamlit as st
2
  import pandas as pd
3
  import matplotlib.pyplot as plt
4
  import streamlit as st
5
- import base64
6
-
7
- from streamlit_extras.switch_page_button import switch_page
8
-
9
- # Load and encode background image
10
- def get_base64_bg(image_path):
11
- with open(image_path, "rb") as img_file:
12
- encoded = base64.b64encode(img_file.read()).decode()
13
- return f"data:image/jpg;base64,{encoded}"
14
-
15
- background_img = get_base64_bg("background.jpg")
16
-
17
- # Inject custom CSS with background
18
- st.markdown(
19
- f"""
20
- <style>
21
- .stApp {{
22
- background-image: url("{background_img}");
23
- background-size: cover;
24
- background-repeat: no-repeat;
25
- background-attachment: fixed;
26
- }}
27
- .header {{
28
- text-align: center;
29
- color: red;
30
- font-size: 30px;
31
- font-weight: bold;
32
- display: flex;
33
- justify-content: center;
34
- align-items: center;
35
- position: relative;
36
- padding-top: 20px;
37
- }}
38
- .logo {{
39
- position: absolute;
40
- right: 20px;
41
- top: 10px;
42
- width: 80px;
43
- height: auto;
44
- }}
45
- .sub-header {{
46
- color: darkorange;
47
- font-size: 26px;
48
- font-weight: bold;
49
- margin-top: 30px;
50
- }}
51
- .text {{
52
- font-size: 17px;
53
- color: black;
54
- font-style: italic;
55
- background-color: rgba(255, 255, 255, 0.75);
56
- padding: 15px;
57
- border-radius: 10px;
58
- margin-bottom: 20px;
59
- }}
60
- .footer {{
61
- font-size: 14px;
62
- color: #333;
63
- margin-top: 50px;
64
- text-align: center;
65
- font-style: italic;
66
- }}
67
- </style>
68
- """,
69
- unsafe_allow_html=True
70
- )
71
-
72
- # App Header with Logo
73
- st.markdown(
74
- """
75
- <div class='header'>
76
- 🏏 Cric Metrics - AI-Powered Cricket Insights 🏏
77
- <img src='1.png' class='logo'>
78
- </div>
79
- """,
80
- unsafe_allow_html=True
81
- )
82
 
83
  # Set page configuration
84
  st.set_page_config(page_title="Career Insights", layout="wide")
 
2
  import pandas as pd
3
  import matplotlib.pyplot as plt
4
  import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  # Set page configuration
7
  st.set_page_config(page_title="Career Insights", layout="wide")