ibrahim313 commited on
Commit
02ada83
·
verified ·
1 Parent(s): 55c4e68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -9
app.py CHANGED
@@ -79,27 +79,27 @@ st.set_page_config(page_title="EduNexus", page_icon=":book:", layout="wide")
79
  st.markdown("""
80
  <style>
81
  body {
82
- background: linear-gradient(45deg, #000000, #2c3e50);
83
- color: #fff;
84
  font-family: 'Arial', sans-serif;
85
  overflow-x: hidden;
86
  }
87
  .neon-text {
88
  font-size: 32px;
89
- color: #00FF00;
90
- text-shadow: 0 0 5px #00FF00, 0 0 10px #00FF00, 0 0 15px #00FF00, 0 0 20px #00FF00, 0 0 25px #00FF00;
91
  margin-bottom: 20px;
92
  }
93
  .neon-border {
94
- border: 2px solid #00FF00;
95
  border-radius: 8px;
96
  padding: 15px;
97
  margin-bottom: 20px;
98
- box-shadow: 0 0 15px #00FF00;
99
  }
100
  .animated-button {
101
  animation: pulse 2s infinite;
102
- background-color: #00FF00;
103
  color: #000;
104
  border: none;
105
  border-radius: 8px;
@@ -109,11 +109,16 @@ st.markdown("""
109
  margin: 10px 0;
110
  }
111
  .animated-button:hover {
112
- background-color: #00CC00;
113
  }
114
  .input-container {
115
  margin-bottom: 20px;
116
  }
 
 
 
 
 
117
  </style>
118
  """, unsafe_allow_html=True)
119
 
@@ -131,7 +136,7 @@ def clear_chat():
131
  st.session_state['mental_health_check_in'] = ""
132
 
133
  # Add Clear Chat button using HTML
134
- if st.markdown("<button class='animated-button' onclick='window.location.reload()'>Clear All</button>", unsafe_allow_html=True):
135
  clear_chat()
136
 
137
  # Personalized Learning Assistant
 
79
  st.markdown("""
80
  <style>
81
  body {
82
+ background: linear-gradient(45deg, #1c1c1c, #2e2e2e);
83
+ color: #e0e0e0;
84
  font-family: 'Arial', sans-serif;
85
  overflow-x: hidden;
86
  }
87
  .neon-text {
88
  font-size: 32px;
89
+ color: #ff0081;
90
+ text-shadow: 0 0 5px #ff0081, 0 0 10px #ff0081, 0 0 15px #ff0081, 0 0 20px #ff0081, 0 0 25px #ff0081;
91
  margin-bottom: 20px;
92
  }
93
  .neon-border {
94
+ border: 2px solid #ff0081;
95
  border-radius: 8px;
96
  padding: 15px;
97
  margin-bottom: 20px;
98
+ box-shadow: 0 0 15px #ff0081;
99
  }
100
  .animated-button {
101
  animation: pulse 2s infinite;
102
+ background-color: #ff0081;
103
  color: #000;
104
  border: none;
105
  border-radius: 8px;
 
109
  margin: 10px 0;
110
  }
111
  .animated-button:hover {
112
+ background-color: #cc0077;
113
  }
114
  .input-container {
115
  margin-bottom: 20px;
116
  }
117
+ @keyframes pulse {
118
+ 0% { transform: scale(1); }
119
+ 50% { transform: scale(1.05); }
120
+ 100% { transform: scale(1); }
121
+ }
122
  </style>
123
  """, unsafe_allow_html=True)
124
 
 
136
  st.session_state['mental_health_check_in'] = ""
137
 
138
  # Add Clear Chat button using HTML
139
+ if st.button("Clear All", key="clear_button", help="Click to clear all inputs"):
140
  clear_chat()
141
 
142
  # Personalized Learning Assistant