Upload folder using huggingface_hub
Browse files- static/index.html +1 -1
- static/script.js +11 -0
- static/style.css +124 -0
static/index.html
CHANGED
|
@@ -40,7 +40,7 @@
|
|
| 40 |
<!-- Curate Sage Panel (bottom ~38%) -->
|
| 41 |
<div class="prompt-panel">
|
| 42 |
<div class="prompt-header">
|
| 43 |
-
<span class="prompt-title">β¦ Curate Sage</span>
|
| 44 |
<div class="prompt-actions">
|
| 45 |
<button id="random-btn" class="prompt-btn random-btn">
|
| 46 |
<svg width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
|
|
|
| 40 |
<!-- Curate Sage Panel (bottom ~38%) -->
|
| 41 |
<div class="prompt-panel">
|
| 42 |
<div class="prompt-header">
|
| 43 |
+
<span class="prompt-title">β¦ Curate Sage <span class="toggle-arrow">βΎ</span></span>
|
| 44 |
<div class="prompt-actions">
|
| 45 |
<button id="random-btn" class="prompt-btn random-btn">
|
| 46 |
<svg width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
static/script.js
CHANGED
|
@@ -283,4 +283,15 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 283 |
}, 1000);
|
| 284 |
}
|
| 285 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 286 |
});
|
|
|
|
| 283 |
}, 1000);
|
| 284 |
}
|
| 285 |
});
|
| 286 |
+
|
| 287 |
+
// Collapsible Prompt Panel on Mobile
|
| 288 |
+
const promptHeader = document.querySelector('.prompt-header');
|
| 289 |
+
const promptPanel = document.querySelector('.prompt-panel');
|
| 290 |
+
if (promptHeader && promptPanel) {
|
| 291 |
+
promptHeader.addEventListener('click', (e) => {
|
| 292 |
+
// Prevent collapse if clicking the buttons inside the header
|
| 293 |
+
if (e.target.closest('.prompt-btn')) return;
|
| 294 |
+
promptPanel.classList.toggle('expanded');
|
| 295 |
+
});
|
| 296 |
+
}
|
| 297 |
});
|
static/style.css
CHANGED
|
@@ -479,3 +479,127 @@ body {
|
|
| 479 |
#chat-input::placeholder {
|
| 480 |
color: #444;
|
| 481 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 479 |
#chat-input::placeholder {
|
| 480 |
color: #444;
|
| 481 |
}
|
| 482 |
+
|
| 483 |
+
/* Prompt Toggle Arrow */
|
| 484 |
+
.toggle-arrow {
|
| 485 |
+
display: inline-block;
|
| 486 |
+
transition: transform 0.2s ease;
|
| 487 |
+
margin-left: 6px;
|
| 488 |
+
font-size: 10px;
|
| 489 |
+
color: #666;
|
| 490 |
+
vertical-align: middle;
|
| 491 |
+
}
|
| 492 |
+
|
| 493 |
+
/* ββ Mobile Responsive Design (max-width: 768px) βββββββββββββββββββββββββββ */
|
| 494 |
+
@media (max-width: 768px) {
|
| 495 |
+
body {
|
| 496 |
+
height: 100dvh;
|
| 497 |
+
}
|
| 498 |
+
|
| 499 |
+
.header {
|
| 500 |
+
padding: 0 12px;
|
| 501 |
+
height: 48px;
|
| 502 |
+
}
|
| 503 |
+
|
| 504 |
+
.logo {
|
| 505 |
+
font-size: 16px;
|
| 506 |
+
}
|
| 507 |
+
|
| 508 |
+
.tagline {
|
| 509 |
+
font-size: 11px;
|
| 510 |
+
margin-left: 10px;
|
| 511 |
+
padding-left: 10px;
|
| 512 |
+
}
|
| 513 |
+
|
| 514 |
+
.stats {
|
| 515 |
+
font-size: 11px;
|
| 516 |
+
}
|
| 517 |
+
|
| 518 |
+
.main-container {
|
| 519 |
+
flex-direction: column;
|
| 520 |
+
padding: 10px;
|
| 521 |
+
gap: 10px;
|
| 522 |
+
overflow: hidden;
|
| 523 |
+
}
|
| 524 |
+
|
| 525 |
+
.video-section {
|
| 526 |
+
width: 100%;
|
| 527 |
+
flex-shrink: 0;
|
| 528 |
+
gap: 8px;
|
| 529 |
+
}
|
| 530 |
+
|
| 531 |
+
.video-box {
|
| 532 |
+
height: 180px;
|
| 533 |
+
flex: none;
|
| 534 |
+
}
|
| 535 |
+
|
| 536 |
+
/* Collapsible Prompt Panel on Mobile */
|
| 537 |
+
.prompt-panel {
|
| 538 |
+
flex: none;
|
| 539 |
+
width: 100%;
|
| 540 |
+
}
|
| 541 |
+
|
| 542 |
+
.prompt-panel .prompt-textarea,
|
| 543 |
+
.prompt-panel .prompt-hint {
|
| 544 |
+
display: none;
|
| 545 |
+
}
|
| 546 |
+
|
| 547 |
+
.prompt-panel.expanded .prompt-textarea,
|
| 548 |
+
.prompt-panel.expanded .prompt-hint {
|
| 549 |
+
display: block;
|
| 550 |
+
}
|
| 551 |
+
|
| 552 |
+
.prompt-panel.expanded .prompt-textarea {
|
| 553 |
+
height: 120px;
|
| 554 |
+
}
|
| 555 |
+
|
| 556 |
+
.prompt-panel .toggle-arrow {
|
| 557 |
+
transform: rotate(-90deg);
|
| 558 |
+
}
|
| 559 |
+
|
| 560 |
+
.prompt-panel.expanded .toggle-arrow {
|
| 561 |
+
transform: rotate(0deg);
|
| 562 |
+
}
|
| 563 |
+
|
| 564 |
+
.prompt-header {
|
| 565 |
+
cursor: pointer;
|
| 566 |
+
}
|
| 567 |
+
|
| 568 |
+
/* Chat Section */
|
| 569 |
+
.chat-section {
|
| 570 |
+
flex: 1;
|
| 571 |
+
min-height: 0;
|
| 572 |
+
}
|
| 573 |
+
|
| 574 |
+
.chat-log {
|
| 575 |
+
padding: 12px;
|
| 576 |
+
}
|
| 577 |
+
|
| 578 |
+
.msg {
|
| 579 |
+
max-width: 85%;
|
| 580 |
+
padding: 10px 14px;
|
| 581 |
+
font-size: 13.5px;
|
| 582 |
+
}
|
| 583 |
+
|
| 584 |
+
/* Chat Controls */
|
| 585 |
+
.chat-controls {
|
| 586 |
+
padding: 10px;
|
| 587 |
+
gap: 8px;
|
| 588 |
+
}
|
| 589 |
+
|
| 590 |
+
.control-btn {
|
| 591 |
+
width: 60px;
|
| 592 |
+
font-size: 12px;
|
| 593 |
+
border-radius: 6px;
|
| 594 |
+
}
|
| 595 |
+
|
| 596 |
+
.sub-text {
|
| 597 |
+
display: none;
|
| 598 |
+
}
|
| 599 |
+
|
| 600 |
+
#chat-input {
|
| 601 |
+
padding: 10px 12px;
|
| 602 |
+
font-size: 13px;
|
| 603 |
+
min-height: 40px;
|
| 604 |
+
}
|
| 605 |
+
}
|