Skip to content

Commit e87352c

Browse files
committed
updated home.py
1 parent c5985e4 commit e87352c

File tree

1 file changed

+33
-5
lines changed

1 file changed

+33
-5
lines changed

streamlit/home.py

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,40 @@
2828
# Filter the 2020 dataframe
2929
df2020 = df[df['SalaryUSD'] < 200000]
3030

31-
# Load CSS file
32-
def local_css(file_name):
33-
with open(file_name) as f:
34-
st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
31+
#######################################
32+
# CSS STYLING
33+
#######################################
34+
35+
css = """
36+
<style>
37+
.analysis-container {
38+
font-family: 'Courier New', Courier, monospace;
39+
background-color: #D8DEDF;
40+
padding: 15px;
41+
border-radius: 10px;
42+
margin-top: 150px;
43+
margin-bottom: 110px;
44+
}
45+
46+
.analysis-container-extra {
47+
font-family: 'Courier New', Courier, monospace;
48+
background-color: #D8DEDF;
49+
padding: 15px;
50+
border-radius: 10px;
51+
margin-top: 50px;
52+
margin-bottom: 20px;
53+
}
54+
55+
.analysis-title {
56+
font-size: 18px;
57+
font-weight: bold;
58+
color: #333333;
59+
margin-bottom: 10px;
60+
}
61+
</style>
62+
"""
3563

36-
local_css("https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/style.css")
64+
st.markdown(css, unsafe_allow_html=True)
3765

3866
#######################################
3967
# DATA PREPARATION FOR VISUALISATION

0 commit comments

Comments
 (0)