Update Home.py
Browse files
Home.py
CHANGED
|
@@ -4,52 +4,74 @@ import numpy as np
|
|
| 4 |
import random
|
| 5 |
import requests
|
| 6 |
|
| 7 |
-
#
|
| 8 |
st.markdown("""
|
| 9 |
<style>
|
| 10 |
-
/*
|
| 11 |
-
.stApp {
|
| 12 |
-
background-color: #
|
|
|
|
| 13 |
}
|
| 14 |
-
|
| 15 |
-
/*
|
| 16 |
-
.
|
| 17 |
color: #00FFFF !important;
|
| 18 |
font-family: 'Roboto', sans-serif;
|
| 19 |
-
font-weight: 700;
|
| 20 |
-
text-align: center;
|
| 21 |
}
|
| 22 |
|
| 23 |
-
.
|
| 24 |
-
color: #
|
| 25 |
font-family: 'Roboto', sans-serif;
|
| 26 |
-
font-weight: 600;
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
.stMarkdown p {
|
| 30 |
-
font-family: 'Georgia', serif;
|
| 31 |
-
line-height: 1.8;
|
| 32 |
-
color: #FFFFFF !important; /* Ensures text is readable */
|
| 33 |
}
|
| 34 |
|
| 35 |
-
/*
|
| 36 |
section[data-testid="stSidebar"] {
|
| 37 |
-
background-color: #1C1C1C;
|
| 38 |
-
|
| 39 |
-
|
|
|
|
| 40 |
}
|
| 41 |
-
|
| 42 |
-
/* Make sidebar text readable */
|
| 43 |
section[data-testid="stSidebar"] h1,
|
| 44 |
section[data-testid="stSidebar"] h2,
|
| 45 |
section[data-testid="stSidebar"] h3,
|
| 46 |
section[data-testid="stSidebar"] p {
|
| 47 |
color: white !important;
|
| 48 |
}
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
</style>
|
| 51 |
""", unsafe_allow_html=True)
|
| 52 |
|
| 53 |
# Title
|
| 54 |
st.title("AUTO ML")
|
|
|
|
|
|
|
|
|
|
| 55 |
|
|
|
|
| 4 |
import random
|
| 5 |
import requests
|
| 6 |
|
| 7 |
+
# Apply custom CSS with stronger selectors
|
| 8 |
st.markdown("""
|
| 9 |
<style>
|
| 10 |
+
/* Force background color */
|
| 11 |
+
html, body, .stApp {
|
| 12 |
+
background-color: #0A192F !important;
|
| 13 |
+
color: #FFFFFF !important;
|
| 14 |
}
|
| 15 |
+
|
| 16 |
+
/* Title and headers styling */
|
| 17 |
+
.stApp h1 {
|
| 18 |
color: #00FFFF !important;
|
| 19 |
font-family: 'Roboto', sans-serif;
|
| 20 |
+
font-weight: 700 !important;
|
| 21 |
+
text-align: center !important;
|
| 22 |
}
|
| 23 |
|
| 24 |
+
.stApp h2 {
|
| 25 |
+
color: #FFCD00 !important;
|
| 26 |
font-family: 'Roboto', sans-serif;
|
| 27 |
+
font-weight: 600 !important;
|
| 28 |
+
text-align: center !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
}
|
| 30 |
|
| 31 |
+
/* Improve sidebar styling */
|
| 32 |
section[data-testid="stSidebar"] {
|
| 33 |
+
background-color: #1C1C1C !important;
|
| 34 |
+
color: white !important;
|
| 35 |
+
padding: 20px !important;
|
| 36 |
+
border-radius: 10px !important;
|
| 37 |
}
|
| 38 |
+
|
|
|
|
| 39 |
section[data-testid="stSidebar"] h1,
|
| 40 |
section[data-testid="stSidebar"] h2,
|
| 41 |
section[data-testid="stSidebar"] h3,
|
| 42 |
section[data-testid="stSidebar"] p {
|
| 43 |
color: white !important;
|
| 44 |
}
|
| 45 |
+
|
| 46 |
+
/* Force paragraph and text colors */
|
| 47 |
+
.stMarkdown p, .stApp p {
|
| 48 |
+
font-family: 'Georgia', serif !important;
|
| 49 |
+
font-size: 16px !important;
|
| 50 |
+
color: #EAEAEA !important; /* Light grey for better visibility */
|
| 51 |
+
line-height: 1.8 !important;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
/* Button styling */
|
| 55 |
+
.stButton>button {
|
| 56 |
+
background-color: #007BFF !important;
|
| 57 |
+
color: white !important;
|
| 58 |
+
border-radius: 8px !important;
|
| 59 |
+
padding: 10px 20px !important;
|
| 60 |
+
font-weight: bold !important;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
/* Fix text inside widgets */
|
| 64 |
+
.stTextInput>div>div>input {
|
| 65 |
+
background-color: #1E1E1E !important;
|
| 66 |
+
color: white !important;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
</style>
|
| 70 |
""", unsafe_allow_html=True)
|
| 71 |
|
| 72 |
# Title
|
| 73 |
st.title("AUTO ML")
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
|
| 77 |
|