Spaces:
Paused
Paused
Commit
·
1b00758
1
Parent(s):
7f3b7e5
updated
Browse files- backend/templates/base.html +98 -62
backend/templates/base.html
CHANGED
|
@@ -52,7 +52,6 @@
|
|
| 52 |
display: flex;
|
| 53 |
justify-content: space-between;
|
| 54 |
align-items: center;
|
| 55 |
-
min-height: 60px;
|
| 56 |
}
|
| 57 |
|
| 58 |
.logo {
|
|
@@ -97,21 +96,19 @@
|
|
| 97 |
display: flex;
|
| 98 |
align-items: center;
|
| 99 |
gap: 1rem;
|
| 100 |
-
|
| 101 |
}
|
| 102 |
|
| 103 |
/* Style for the welcome message */
|
| 104 |
.welcome-message {
|
| 105 |
color: white;
|
| 106 |
font-weight: 500;
|
| 107 |
-
margin-right: 0.5rem;
|
| 108 |
display: flex;
|
| 109 |
align-items: center;
|
| 110 |
background-color: rgba(255, 255, 255, 0.1);
|
| 111 |
padding: 0.5rem 1rem;
|
| 112 |
border-radius: 5px;
|
| 113 |
transition: all 0.3s ease;
|
| 114 |
-
height: fit-content;
|
| 115 |
}
|
| 116 |
|
| 117 |
.welcome-message:before {
|
|
@@ -128,9 +125,6 @@
|
|
| 128 |
padding: 0.5rem 1.5rem;
|
| 129 |
border-radius: 5px;
|
| 130 |
transition: all 0.3s ease;
|
| 131 |
-
height: fit-content;
|
| 132 |
-
display: flex;
|
| 133 |
-
align-items: center;
|
| 134 |
}
|
| 135 |
|
| 136 |
.btn-logout:hover {
|
|
@@ -140,56 +134,6 @@
|
|
| 140 |
box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
|
| 141 |
}
|
| 142 |
|
| 143 |
-
/* Fixed chatbot button positioning */
|
| 144 |
-
.chat-nav-icon {
|
| 145 |
-
position: fixed;
|
| 146 |
-
bottom: 20px;
|
| 147 |
-
right: 20px;
|
| 148 |
-
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
| 149 |
-
color: white;
|
| 150 |
-
width: 60px;
|
| 151 |
-
height: 60px;
|
| 152 |
-
border-radius: 50%;
|
| 153 |
-
display: flex;
|
| 154 |
-
justify-content: center;
|
| 155 |
-
align-items: center;
|
| 156 |
-
font-size: 1.5rem;
|
| 157 |
-
cursor: pointer;
|
| 158 |
-
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
| 159 |
-
transition: all 0.3s ease;
|
| 160 |
-
z-index: 1000;
|
| 161 |
-
}
|
| 162 |
-
|
| 163 |
-
.chat-nav-icon:hover {
|
| 164 |
-
transform: scale(1.1);
|
| 165 |
-
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
|
| 166 |
-
}
|
| 167 |
-
|
| 168 |
-
/* Hide mobile chat icon on larger screens initially */
|
| 169 |
-
@media (min-width: 769px) {
|
| 170 |
-
.chat-nav-icon {
|
| 171 |
-
display: flex;
|
| 172 |
-
}
|
| 173 |
-
}
|
| 174 |
-
|
| 175 |
-
@media (max-width: 768px) {
|
| 176 |
-
.nav-container {
|
| 177 |
-
flex-wrap: wrap;
|
| 178 |
-
gap: 1rem;
|
| 179 |
-
}
|
| 180 |
-
|
| 181 |
-
.login-buttons {
|
| 182 |
-
flex-wrap: wrap;
|
| 183 |
-
justify-content: center;
|
| 184 |
-
width: 100%;
|
| 185 |
-
order: 2;
|
| 186 |
-
}
|
| 187 |
-
|
| 188 |
-
.chat-nav-icon {
|
| 189 |
-
display: flex;
|
| 190 |
-
}
|
| 191 |
-
}
|
| 192 |
-
|
| 193 |
.btn {
|
| 194 |
padding: 0.5rem 1.5rem;
|
| 195 |
border-radius: 5px;
|
|
@@ -201,9 +145,6 @@
|
|
| 201 |
position: relative;
|
| 202 |
overflow: hidden;
|
| 203 |
z-index: 1;
|
| 204 |
-
display: flex;
|
| 205 |
-
align-items: center;
|
| 206 |
-
height: fit-content;
|
| 207 |
}
|
| 208 |
|
| 209 |
.btn::before {
|
|
@@ -239,6 +180,95 @@
|
|
| 239 |
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
| 240 |
}
|
| 241 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 242 |
.hero {
|
| 243 |
background: linear-gradient(rgba(67, 97, 238, 0.8), rgba(58, 12, 163, 0.9)), url("/api/placeholder/1200/600") no-repeat center center/cover;
|
| 244 |
color: white;
|
|
@@ -747,8 +777,14 @@
|
|
| 747 |
</div>
|
| 748 |
</header>
|
| 749 |
|
| 750 |
-
<!-- Fixed chatbot button
|
| 751 |
-
<div id="chatbot-nav"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 752 |
|
| 753 |
{% block hero %}{% endblock %}
|
| 754 |
|
|
|
|
| 52 |
display: flex;
|
| 53 |
justify-content: space-between;
|
| 54 |
align-items: center;
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
.logo {
|
|
|
|
| 96 |
display: flex;
|
| 97 |
align-items: center;
|
| 98 |
gap: 1rem;
|
| 99 |
+
flex-wrap: wrap;
|
| 100 |
}
|
| 101 |
|
| 102 |
/* Style for the welcome message */
|
| 103 |
.welcome-message {
|
| 104 |
color: white;
|
| 105 |
font-weight: 500;
|
|
|
|
| 106 |
display: flex;
|
| 107 |
align-items: center;
|
| 108 |
background-color: rgba(255, 255, 255, 0.1);
|
| 109 |
padding: 0.5rem 1rem;
|
| 110 |
border-radius: 5px;
|
| 111 |
transition: all 0.3s ease;
|
|
|
|
| 112 |
}
|
| 113 |
|
| 114 |
.welcome-message:before {
|
|
|
|
| 125 |
padding: 0.5rem 1.5rem;
|
| 126 |
border-radius: 5px;
|
| 127 |
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
|
|
| 128 |
}
|
| 129 |
|
| 130 |
.btn-logout:hover {
|
|
|
|
| 134 |
box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
|
| 135 |
}
|
| 136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
.btn {
|
| 138 |
padding: 0.5rem 1.5rem;
|
| 139 |
border-radius: 5px;
|
|
|
|
| 145 |
position: relative;
|
| 146 |
overflow: hidden;
|
| 147 |
z-index: 1;
|
|
|
|
|
|
|
|
|
|
| 148 |
}
|
| 149 |
|
| 150 |
.btn::before {
|
|
|
|
| 180 |
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
| 181 |
}
|
| 182 |
|
| 183 |
+
/* Fixed chatbot button */
|
| 184 |
+
#chatbot-nav {
|
| 185 |
+
position: fixed;
|
| 186 |
+
bottom: 20px;
|
| 187 |
+
right: 20px;
|
| 188 |
+
width: 60px;
|
| 189 |
+
height: 60px;
|
| 190 |
+
background-color: var(--primary);
|
| 191 |
+
border-radius: 50%;
|
| 192 |
+
display: flex;
|
| 193 |
+
align-items: center;
|
| 194 |
+
justify-content: center;
|
| 195 |
+
cursor: pointer;
|
| 196 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
| 197 |
+
z-index: 999;
|
| 198 |
+
transition: all 0.3s ease;
|
| 199 |
+
font-size: 24px;
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
#chatbot-nav:hover {
|
| 203 |
+
transform: scale(1.1);
|
| 204 |
+
background-color: var(--secondary);
|
| 205 |
+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
/* Chatbot box */
|
| 209 |
+
#chatbot-box {
|
| 210 |
+
position: fixed;
|
| 211 |
+
bottom: 100px;
|
| 212 |
+
right: 20px;
|
| 213 |
+
width: 350px;
|
| 214 |
+
height: 500px;
|
| 215 |
+
background-color: white;
|
| 216 |
+
border-radius: 10px;
|
| 217 |
+
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
|
| 218 |
+
display: none;
|
| 219 |
+
flex-direction: column;
|
| 220 |
+
z-index: 998;
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
/* Responsive adjustments */
|
| 224 |
+
@media (max-width: 768px) {
|
| 225 |
+
#chatbot-nav {
|
| 226 |
+
bottom: 15px;
|
| 227 |
+
right: 15px;
|
| 228 |
+
width: 50px;
|
| 229 |
+
height: 50px;
|
| 230 |
+
font-size: 20px;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
#chatbot-box {
|
| 234 |
+
width: calc(100vw - 40px);
|
| 235 |
+
max-width: 350px;
|
| 236 |
+
right: 20px;
|
| 237 |
+
bottom: 80px;
|
| 238 |
+
height: 400px;
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
.login-buttons {
|
| 242 |
+
justify-content: flex-end;
|
| 243 |
+
}
|
| 244 |
+
|
| 245 |
+
.welcome-message {
|
| 246 |
+
font-size: 0.9rem;
|
| 247 |
+
padding: 0.4rem 0.8rem;
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
.btn {
|
| 251 |
+
padding: 0.4rem 1rem;
|
| 252 |
+
font-size: 0.9rem;
|
| 253 |
+
}
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
@media (max-width: 480px) {
|
| 257 |
+
.nav-container {
|
| 258 |
+
flex-wrap: wrap;
|
| 259 |
+
gap: 1rem;
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
.login-buttons {
|
| 263 |
+
width: 100%;
|
| 264 |
+
justify-content: center;
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
.logo {
|
| 268 |
+
font-size: 1.5rem;
|
| 269 |
+
}
|
| 270 |
+
}
|
| 271 |
+
|
| 272 |
.hero {
|
| 273 |
background: linear-gradient(rgba(67, 97, 238, 0.8), rgba(58, 12, 163, 0.9)), url("/api/placeholder/1200/600") no-repeat center center/cover;
|
| 274 |
color: white;
|
|
|
|
| 777 |
</div>
|
| 778 |
</header>
|
| 779 |
|
| 780 |
+
<!-- Fixed chatbot button -->
|
| 781 |
+
<div id="chatbot-nav" onclick="toggleChatbot()">💬</div>
|
| 782 |
+
|
| 783 |
+
<!-- Chatbot box (hidden by default) -->
|
| 784 |
+
<div id="chatbot-box">
|
| 785 |
+
<div id="chat-messages"></div>
|
| 786 |
+
<input type="text" id="chat-input" onkeydown="sendChat(event)" placeholder="Type a message...">
|
| 787 |
+
</div>
|
| 788 |
|
| 789 |
{% block hero %}{% endblock %}
|
| 790 |
|