Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- index.html +52 -15
index.html
CHANGED
|
@@ -76,7 +76,8 @@
|
|
| 76 |
color: var(--text-muted);
|
| 77 |
}
|
| 78 |
|
| 79 |
-
select,
|
|
|
|
| 80 |
background-color: var(--bg-input);
|
| 81 |
border: 1px solid var(--border-color);
|
| 82 |
color: var(--text-main);
|
|
@@ -88,7 +89,8 @@
|
|
| 88 |
resize: none;
|
| 89 |
}
|
| 90 |
|
| 91 |
-
select:focus,
|
|
|
|
| 92 |
border-color: var(--accent-color);
|
| 93 |
}
|
| 94 |
|
|
@@ -110,8 +112,14 @@
|
|
| 110 |
transition: background-color 0.3s;
|
| 111 |
}
|
| 112 |
|
| 113 |
-
.status-dot.online {
|
| 114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
|
| 116 |
/*
|
| 117 |
* MAIN CHAT AREA
|
|
@@ -215,8 +223,13 @@
|
|
| 215 |
animation: bounce 1.4s infinite ease-in-out both;
|
| 216 |
}
|
| 217 |
|
| 218 |
-
.typing-indicator span:nth-child(1) {
|
| 219 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
|
| 221 |
/*
|
| 222 |
* INPUT AREA
|
|
@@ -284,13 +297,28 @@
|
|
| 284 |
* ANIMATIONS
|
| 285 |
*/
|
| 286 |
@keyframes fadeIn {
|
| 287 |
-
from {
|
| 288 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 289 |
}
|
| 290 |
|
| 291 |
@keyframes bounce {
|
| 292 |
-
|
| 293 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 294 |
}
|
| 295 |
|
| 296 |
/*
|
|
@@ -326,17 +354,22 @@
|
|
| 326 |
position: fixed;
|
| 327 |
height: 100%;
|
| 328 |
left: -280px;
|
| 329 |
-
box-shadow: 2px 0 10px rgba(0,0,0,0.5);
|
| 330 |
}
|
|
|
|
| 331 |
aside.open {
|
| 332 |
left: 0;
|
| 333 |
}
|
|
|
|
| 334 |
.mobile-menu-btn {
|
| 335 |
display: block !important;
|
| 336 |
}
|
| 337 |
-
|
|
|
|
|
|
|
|
|
|
| 338 |
}
|
| 339 |
-
|
| 340 |
.mobile-menu-btn {
|
| 341 |
display: none;
|
| 342 |
position: absolute;
|
|
@@ -387,11 +420,14 @@
|
|
| 387 |
|
| 388 |
<!-- Main Chat -->
|
| 389 |
<main>
|
| 390 |
-
<header
|
|
|
|
| 391 |
<h1 style="font-size: 1.2rem; font-weight: 600; display: flex; align-items: center; gap: 10px;">
|
| 392 |
<span>🤖</span> Ollama Chat
|
| 393 |
</h1>
|
| 394 |
-
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank"
|
|
|
|
|
|
|
| 395 |
</header>
|
| 396 |
|
| 397 |
<div id="chat-container">
|
|
@@ -699,4 +735,5 @@
|
|
| 699 |
}
|
| 700 |
</script>
|
| 701 |
</body>
|
|
|
|
| 702 |
</html>
|
|
|
|
| 76 |
color: var(--text-muted);
|
| 77 |
}
|
| 78 |
|
| 79 |
+
select,
|
| 80 |
+
textarea {
|
| 81 |
background-color: var(--bg-input);
|
| 82 |
border: 1px solid var(--border-color);
|
| 83 |
color: var(--text-main);
|
|
|
|
| 89 |
resize: none;
|
| 90 |
}
|
| 91 |
|
| 92 |
+
select:focus,
|
| 93 |
+
textarea:focus {
|
| 94 |
border-color: var(--accent-color);
|
| 95 |
}
|
| 96 |
|
|
|
|
| 112 |
transition: background-color 0.3s;
|
| 113 |
}
|
| 114 |
|
| 115 |
+
.status-dot.online {
|
| 116 |
+
background-color: #2e7d32;
|
| 117 |
+
box-shadow: 0 0 5px #2e7d32;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
.status-dot.offline {
|
| 121 |
+
background-color: #c62828;
|
| 122 |
+
}
|
| 123 |
|
| 124 |
/*
|
| 125 |
* MAIN CHAT AREA
|
|
|
|
| 223 |
animation: bounce 1.4s infinite ease-in-out both;
|
| 224 |
}
|
| 225 |
|
| 226 |
+
.typing-indicator span:nth-child(1) {
|
| 227 |
+
animation-delay: -0.32s;
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
.typing-indicator span:nth-child(2) {
|
| 231 |
+
animation-delay: -0.16s;
|
| 232 |
+
}
|
| 233 |
|
| 234 |
/*
|
| 235 |
* INPUT AREA
|
|
|
|
| 297 |
* ANIMATIONS
|
| 298 |
*/
|
| 299 |
@keyframes fadeIn {
|
| 300 |
+
from {
|
| 301 |
+
opacity: 0;
|
| 302 |
+
transform: translateY(10px);
|
| 303 |
+
}
|
| 304 |
+
|
| 305 |
+
to {
|
| 306 |
+
opacity: 1;
|
| 307 |
+
transform: translateY(0);
|
| 308 |
+
}
|
| 309 |
}
|
| 310 |
|
| 311 |
@keyframes bounce {
|
| 312 |
+
|
| 313 |
+
0%,
|
| 314 |
+
80%,
|
| 315 |
+
100% {
|
| 316 |
+
transform: scale(0);
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
40% {
|
| 320 |
+
transform: scale(1);
|
| 321 |
+
}
|
| 322 |
}
|
| 323 |
|
| 324 |
/*
|
|
|
|
| 354 |
position: fixed;
|
| 355 |
height: 100%;
|
| 356 |
left: -280px;
|
| 357 |
+
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
|
| 358 |
}
|
| 359 |
+
|
| 360 |
aside.open {
|
| 361 |
left: 0;
|
| 362 |
}
|
| 363 |
+
|
| 364 |
.mobile-menu-btn {
|
| 365 |
display: block !important;
|
| 366 |
}
|
| 367 |
+
|
| 368 |
+
.message-bubble {
|
| 369 |
+
max-width: 90%;
|
| 370 |
+
}
|
| 371 |
}
|
| 372 |
+
|
| 373 |
.mobile-menu-btn {
|
| 374 |
display: none;
|
| 375 |
position: absolute;
|
|
|
|
| 420 |
|
| 421 |
<!-- Main Chat -->
|
| 422 |
<main>
|
| 423 |
+
<header
|
| 424 |
+
style="padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center;">
|
| 425 |
<h1 style="font-size: 1.2rem; font-weight: 600; display: flex; align-items: center; gap: 10px;">
|
| 426 |
<span>🤖</span> Ollama Chat
|
| 427 |
</h1>
|
| 428 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank"
|
| 429 |
+
style="margin-left: auto; font-size: 0.8rem; color: var(--text-muted); text-decoration: none;">Built with
|
| 430 |
+
anycoder</a>
|
| 431 |
</header>
|
| 432 |
|
| 433 |
<div id="chat-container">
|
|
|
|
| 735 |
}
|
| 736 |
</script>
|
| 737 |
</body>
|
| 738 |
+
|
| 739 |
</html>
|