ibrahim313 commited on
Commit
c62cf6e
·
verified ·
1 Parent(s): 542e5e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -91,13 +91,16 @@ st.markdown("""
91
  .stTextInput, .stTextArea {
92
  border: 1px solid #ffffff; /* White */
93
  border-radius: 12px;
94
- background-color: #000000; /* Royal Black */
95
- color: #ffffff; /* White */
96
  }
97
  .stTextInput::placeholder, .stTextArea::placeholder {
98
- color: #ffffff; /* White */
99
  font-weight: bold;
100
  }
 
 
 
101
  .stSidebar {
102
  background-color: #000000; /* Royal Black */
103
  color: #ffffff; /* White */
@@ -129,7 +132,7 @@ st.markdown("""
129
  }
130
  .css-1n8h7zm .stTextArea::placeholder,
131
  .css-1n8h7zm .stTextInput::placeholder {
132
- color: #ffffff; /* White */
133
  font-weight: bold;
134
  }
135
  </style>
@@ -154,7 +157,7 @@ selected_task = st.sidebar.radio("Select a task", tasks)
154
  # Main layout based on selected task
155
  def handle_task_form(task_key, prompt_function, input_label, response_key):
156
  with st.form(key=f"{task_key}_form"):
157
- st.markdown(f"<div style='color: #ffffff; font-weight: bold;'>{input_label}</div>", unsafe_allow_html=True)
158
  user_input = st.text_area("", key=task_key)
159
  submit_button = st.form_submit_button("Get Response")
160
  clear_button = st.form_submit_button("Clear")
@@ -217,7 +220,7 @@ elif selected_task == "💬 Real-Time Q&A Support":
217
  elif selected_task == "🧠 Mental Health Check-In":
218
  st.header("Mental Health Check-In")
219
  with st.form(key="mental_health_check_in_form"):
220
- st.markdown("<div style='color: #ffffff; font-weight: bold;'>Share how you are feeling today</div>", unsafe_allow_html=True)
221
  feelings = st.text_area("", key="mental_health_check_in")
222
  col1, col2 = st.columns([2, 1])
223
  with col1:
@@ -241,6 +244,7 @@ st.markdown("""
241
  <a href="https://github.com/muhammadibrahim313">GitHub</a> |
242
  <a href="https://www.kaggle.com/itshappy">Kaggle</a> |
243
  <a href="https://www.linkedin.com/in/muhammadibrahim313">LinkedIn</a>
 
244
  <i>EduNexus 2024</i>
245
  </div>
246
  """, unsafe_allow_html=True)
 
91
  .stTextInput, .stTextArea {
92
  border: 1px solid #ffffff; /* White */
93
  border-radius: 12px;
94
+ background-color: #ffffff; /* White */
95
+ color: #000000; /* Royal Black */
96
  }
97
  .stTextInput::placeholder, .stTextArea::placeholder {
98
+ color: #000000; /* Royal Black */
99
  font-weight: bold;
100
  }
101
+ .stMarkdown, .stTextInput, .stTextArea {
102
+ border-radius: 12px;
103
+ }
104
  .stSidebar {
105
  background-color: #000000; /* Royal Black */
106
  color: #ffffff; /* White */
 
132
  }
133
  .css-1n8h7zm .stTextArea::placeholder,
134
  .css-1n8h7zm .stTextInput::placeholder {
135
+ color: #000000; /* Royal Black */
136
  font-weight: bold;
137
  }
138
  </style>
 
157
  # Main layout based on selected task
158
  def handle_task_form(task_key, prompt_function, input_label, response_key):
159
  with st.form(key=f"{task_key}_form"):
160
+ st.markdown(f"<div style='color: #000000; font-weight: bold; background-color: #ffffff; padding: 5px;'>{input_label}</div>", unsafe_allow_html=True)
161
  user_input = st.text_area("", key=task_key)
162
  submit_button = st.form_submit_button("Get Response")
163
  clear_button = st.form_submit_button("Clear")
 
220
  elif selected_task == "🧠 Mental Health Check-In":
221
  st.header("Mental Health Check-In")
222
  with st.form(key="mental_health_check_in_form"):
223
+ st.markdown("<div style='color: #000000; font-weight: bold; background-color: #ffffff; padding: 5px;'>Share how you are feeling today</div>", unsafe_allow_html=True)
224
  feelings = st.text_area("", key="mental_health_check_in")
225
  col1, col2 = st.columns([2, 1])
226
  with col1:
 
244
  <a href="https://github.com/muhammadibrahim313">GitHub</a> |
245
  <a href="https://www.kaggle.com/itshappy">Kaggle</a> |
246
  <a href="https://www.linkedin.com/in/muhammadibrahim313">LinkedIn</a>
247
+ <br>
248
  <i>EduNexus 2024</i>
249
  </div>
250
  """, unsafe_allow_html=True)