Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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, #
|
83 |
-
color: #
|
84 |
font-family: 'Arial', sans-serif;
|
85 |
overflow-x: hidden;
|
86 |
}
|
87 |
.neon-text {
|
88 |
font-size: 32px;
|
89 |
-
color: #
|
90 |
-
text-shadow: 0 0 5px #
|
91 |
margin-bottom: 20px;
|
92 |
}
|
93 |
.neon-border {
|
94 |
-
border: 2px solid #
|
95 |
border-radius: 8px;
|
96 |
padding: 15px;
|
97 |
margin-bottom: 20px;
|
98 |
-
box-shadow: 0 0 15px #
|
99 |
}
|
100 |
.animated-button {
|
101 |
animation: pulse 2s infinite;
|
102 |
-
background-color: #
|
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: #
|
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.
|
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
|