Spaces:
Paused
Paused
File size: 14,180 Bytes
90bee97 ac5c0c0 90bee97 ac5c0c0 eb507bf ac5c0c0 eb507bf 90bee97 ac5c0c0 90bee97 ac5c0c0 90bee97 ac5c0c0 90bee97 ac5c0c0 03591ab ac5c0c0 27f0619 ac5c0c0 27f0619 ac5c0c0 27f0619 ac5c0c0 90bee97 ac5c0c0 eb507bf ac5c0c0 eb507bf 90bee97 ac5c0c0 90bee97 ac5c0c0 27f0619 ac5c0c0 90bee97 ac5c0c0 27f0619 ac5c0c0 27f0619 ac5c0c0 27f0619 ac5c0c0 27f0619 ac5c0c0 27f0619 90bee97 ac5c0c0 512ff52 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 512ff52 ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 de24f90 ac5c0c0 eb507bf ac5c0c0 de24f90 ac5c0c0 eb507bf ac5c0c0 de24f90 ac5c0c0 eb507bf ac5c0c0 de24f90 ac5c0c0 eb507bf ac5c0c0 de24f90 ac5c0c0 de24f90 ac5c0c0 512ff52 ac5c0c0 90bee97 ac5c0c0 90bee97 ac5c0c0 90bee97 ac5c0c0 ff783a9 ac5c0c0 eb507bf ac5c0c0 eb507bf ac5c0c0 eb507bf 01f21d7 ac5c0c0 27f0619 ac5c0c0 27f0619 ac5c0c0 27f0619 ac5c0c0 90bee97 eb507bf ac5c0c0 27f0619 ac5c0c0 90bee97 ac5c0c0 90bee97 ac5c0c0 90bee97 ac5c0c0 90bee97 ac5c0c0 eb507bf ac5c0c0 45822da 797b500 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 |
/* Modern color scheme */
:root {
/* 주요 브랜드 컬러 */
--primary: #0066cc; /* 메인 브랜드 컬러 */
--secondary: #3385ff; /* 밝은 액센트 */
--accent: #66a3ff; /* 부드러운 포인트 컬러 */
--tertiary: #5d2e8c; /* 포인트 컬러 */
/* 배경 컬러 */
--background: #f7f9fc; /* 메인 배경 */
--surface: #ffffff; /* 카드 배경 */
/* 텍스트 컬러 */
--text-primary: #2c3e50; /* 주요 텍스트 */
--text-secondary: #546e7a; /* 부가 텍스트 */
--text-tertiary: #78909c; /* 덜 중요한 텍스트 */
/* 기능성 컬러 */
--success: #34c759; /* 성공/확인 */
--warning: #ff9500; /* 경고/주의 */
--error: #ff3b30; /* 오류/삭제 */
/* 중립 컬러 */
--neutral-100: #f8f9fa;
--neutral-200: #e9ecef;
--neutral-300: #dee2e6;
--neutral-400: #ced4da;
/* 그림자 및 효과 */
--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
--shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
/* 둥근 모서리 */
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
}
body {
font-family: 'Inter', system-ui, sans-serif;
background: var(--background);
color: var(--text-primary);
line-height: 1.5;
}
/* 헤더 및 레이아웃 */
.left_header {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, var(--surface), var(--neutral-100));
backdrop-filter: blur(10px);
border-radius: 24px;
padding: 2rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
border: 1px solid var(--neutral-200);
text-align: center;
margin-bottom: 2rem;
}
.left_header img {
width: 180px;
margin-bottom: 1rem;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.left_header h1 {
margin: 0.5rem 0;
font-weight: 600;
color: var(--text-primary);
}
/* 패널 레이아웃 및 높이 */
.equal-height-container {
display: flex;
min-height: 900px;
}
.equal-height-col {
display: flex;
flex-direction: column;
height: 100%;
}
.fixed-height {
height: 900px !important;
}
.fixed-content-height {
height: 870px !important; /* 헤더(30px)를 제외한 높이 */
}
.fixed-input-height {
height: 730px !important;
max-height: 730px !important;
}
/* 좌측 패널 상단 헤더 */
.render_header {
height: 30px;
width: 100%;
padding: 5px 16px;
background: linear-gradient(to right, var(--neutral-100), var(--neutral-200));
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
margin-top: 0;
box-shadow: var(--shadow-sm);
border-bottom: 1px solid var(--neutral-300);
}
.header_btn {
display: inline-block;
height: 10px;
width: 10px;
border-radius: 50%;
margin-right: 4px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.render_header > .header_btn:nth-child(1) {
background-color: var(--error);
}
.render_header > .header_btn:nth-child(2) {
background-color: var(--warning);
}
.render_header > .header_btn:nth-child(3) {
background-color: var(--success);
}
.right_content {
height: 870px; /* 헤더(30px)를 제외한 높이 */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: var(--surface);
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* 패널 스타일 */
.right_panel {
position: relative;
height: 900px;
display: flex;
flex-direction: column;
padding-top: 0;
}
.panel {
display: flex;
flex-direction: column;
height: 900px;
background: var(--surface);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
border: 1px solid var(--neutral-300);
overflow: hidden;
}
.input-panel {
display: flex;
flex-direction: column;
margin-top: 0;
background: var(--surface);
border-radius: var(--radius-lg);
border: 1px solid var(--neutral-300);
box-shadow: var(--shadow-lg);
padding: 15px;
height: 870px !important; /* 버튼 영역 제외한 높이 */
max-height: 870px !important;
overflow: hidden;
}
.html_content {
flex: 1;
height: 870px; /* 헤더(30px)를 제외한 높이 */
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
overflow: hidden;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
background: var(--surface);
}
/* 버튼 영역 스타일 */
.right-top-buttons {
margin-bottom: 15px;
background: linear-gradient(to right, var(--neutral-100), var(--neutral-200));
padding: 15px;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
border: 1px solid var(--neutral-300);
}
/* 상단 메뉴 버튼과 하단 액션 버튼 구분 */
.setting-buttons {
display: flex;
gap: 8px;
padding: 8px 0;
justify-content: space-between;
border-bottom: 2px dashed var(--neutral-300);
padding-bottom: 12px;
margin-bottom: 12px;
}
.setting-buttons .ant-btn {
background: linear-gradient(135deg, var(--surface), var(--neutral-100));
border: 1px solid var(--neutral-300);
color: var(--text-primary);
font-weight: 600;
box-shadow: var(--shadow-sm);
min-width: 100px;
height: 38px;
border-radius: var(--radius-lg);
}
.setting-buttons .ant-btn:hover {
background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.action-buttons {
margin-top: 5px;
margin-bottom: 8px;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.action-buttons .ant-btn {
min-width: 80px;
height: 40px;
font-weight: 600;
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
text-transform: uppercase;
letter-spacing: 0.5px;
font-size: 0.85em;
}
.action-buttons .ant-btn-primary {
background: linear-gradient(to right, var(--primary), var(--secondary));
border: none;
color: white;
}
.action-buttons .ant-btn-primary:hover {
background: linear-gradient(to right, var(--secondary), var(--primary));
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}
.action-buttons .ant-btn-default {
background: var(--surface);
border: 1px solid var(--neutral-300);
color: var(--text-primary);
}
.action-buttons .ant-btn-default:hover {
border-color: var(--secondary);
color: var(--secondary);
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
/* 각 버튼 스타일 커스텀 - 클래스 기반 */
.send-btn {
background: linear-gradient(to right, var(--primary), var(--secondary)) !important;
border: none !important;
color: white !important;
}
.boost-btn {
background: linear-gradient(to right, var(--tertiary), #9966cc) !important;
border: none !important;
color: white !important;
}
.execute-btn {
background: linear-gradient(to right, var(--success), #66d9a8) !important;
border: none !important;
color: white !important;
}
.deploy-btn {
background: linear-gradient(to right, var(--warning), #ffcc66) !important;
border: none !important;
color: white !important;
}
.clear-btn {
background: linear-gradient(to right, #f44336, #ff7961) !important;
border: none !important;
color: white !important;
}
/* 메뉴 버튼 추가 스타일 */
.code-btn, .history-btn, .template-btn {
transition: all 0.3s ease;
}
.code-btn:hover, .history-btn:hover, .template-btn:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
/* 텍스트 영역 스타일링 */
#component-0 textarea,
.gradio-container textarea,
.ant-input-textarea-large textarea {
height: 730px !important;
min-height: 300px !important;
resize: vertical !important;
border: 2px solid var(--neutral-200);
border-radius: var(--radius-lg);
transition: all 0.3s;
background: var(--surface);
color: var(--text-primary);
padding: 1rem;
flex-grow: 1;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}
#component-0 textarea:focus,
.gradio-container textarea:focus,
.ant-input-textarea-large textarea:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(102, 163, 255, 0.2);
}
/* 우측 박스 텍스트 폰트 크기 20% 감소 */
.input-panel textarea,
.input-panel .ant-input-textarea-large textarea,
.input-panel .help-text {
font-size: 0.8em; /* 기본 폰트 크기에서 20% 감소 */
}
.ant-input-textarea {
display: flex;
flex-direction: column;
flex: 1;
}
.input-panel .ant-input-textarea {
flex: 1;
display: flex;
flex-direction: column;
}
.input-panel .ant-input-textarea-large {
flex: 1;
}
.input-panel textarea {
flex-grow: 1;
height: calc(100% - 120px) !important; /* 도움말 텍스트와 배포 결과 공간 확보 */
min-height: 300px !important;
}
/* 도움말 텍스트 스타일 */
.help-text {
padding: 8px 12px;
background-color: var(--neutral-100);
border-radius: var(--radius-md);
color: var(--text-secondary);
font-style: italic;
margin-top: 8px;
border-left: 3px solid var(--accent);
}
/* 배포 결과 스타일링 */
.deploy-result {
margin-top: 10px;
height: 90px;
max-height: 90px;
overflow-y: auto;
background-color: var(--neutral-100);
padding: 10px;
border-radius: var(--radius-md);
border-left: 3px solid var(--primary);
}
#deploy-result a {
color: var(--primary);
font-weight: bold;
text-decoration: underline;
}
[label="배포 결과"] {
margin-top: 15px;
padding: 12px;
background-color: var(--neutral-100);
border-radius: var(--radius-md);
border-left: 3px solid var(--primary);
}
.deploy-success {
color: var(--success);
padding: 10px;
background-color: rgba(52, 199, 89, 0.1);
border-radius: var(--radius-md);
}
.deploy-error {
color: var(--error);
padding: 10px;
background-color: rgba(255, 59, 48, 0.1);
border-radius: var(--radius-md);
}
/* Drawer customization */
.ant-drawer-content-wrapper {
border-radius: 16px 0 0 16px;
}
.ant-drawer-header {
background: linear-gradient(to right, var(--primary), var(--tertiary));
color: white;
border-radius: 16px 0 0 0;
}
.ant-drawer-title {
color: white;
font-weight: 600;
letter-spacing: 0.5px;
}
.ant-drawer-close {
color: white;
}
.ant-drawer-body {
background: var(--surface);
}
/* 탭 컨텐츠 높이 조정 */
.ant-tabs-content {
height: 100%;
}
.ant-tabs-tabpane {
height: 100%;
display: flex;
flex-direction: column;
}
/* 히스토리와 템플릿 스타일링 */
.history_chatbot button {
background: none;
border: none;
}
.session-drawer .chatbot {
height: calc(100vh - 200px);
overflow-y: auto;
}
.session-history {
height: 700px;
overflow-y: auto;
padding: 1rem;
}
.prompt-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
padding: 1.5rem;
}
.prompt-card {
background: var(--surface);
border-radius: var(--radius-lg);
padding: 1.25rem;
cursor: pointer;
transition: all 0.3s;
box-shadow: var(--shadow-sm);
min-height: 300px;
border: 1px solid var(--neutral-200);
}
.prompt-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
}
/* 스크롤바 스타일링 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--neutral-100);
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: var(--neutral-300);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--neutral-400);
}
/* 애니메이션 */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.5s ease-out;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* 푸터 숨기기 */
footer, .footer, div[class*="footer"], #footer {
display: none !important;
}
/* 반응형 조정 */
@media (max-width: 768px) {
.left_header {
padding: 1rem;
}
.prompt-grid {
grid-template-columns: 1fr;
}
.setting-buttons, .action-buttons {
flex-wrap: wrap;
}
.setting-buttons .ant-btn,
.action-buttons .ant-btn {
min-width: calc(50% - 8px);
margin: 4px;
}
/* 배포 섹션 스타일링 */
.deploy-section {
margin-top: 15px;
background-color: var(--neutral-100);
border-radius: var(--radius-md);
overflow: hidden;
}
.deploy-header {
padding: 10px 15px;
font-weight: 600;
background-color: var(--neutral-200);
border-bottom: 1px solid var(--neutral-300);
}
.deploy-result-box {
padding: 15px;
min-height: 80px;
}
.no-deploy {
color: var(--text-tertiary);
font-style: italic;
text-align: center;
padding: 20px 0;
}
.deploy-success {
background-color: rgba(52, 199, 89, 0.1);
border-radius: var(--radius-md);
padding: 15px;
margin: 10px 0;
}
.deploy-error {
background-color: rgba(255, 59, 48, 0.1);
border-radius: var(--radius-md);
padding: 15px;
margin: 10px 0;
}
.deploy-loading {
background-color: rgba(0, 122, 255, 0.1);
border-radius: var(--radius-md);
padding: 15px;
margin: 10px 0;
display: flex;
align-items: center;
}
.loading-spinner {
border: 3px solid #f3f3f3;
border-top: 3px solid var(--primary);
border-radius: 50%;
width: 20px;
height: 20px;
animation: spin 2s linear infinite;
margin-right: 10px;
}
.success-icon, .error-icon {
display: inline-block;
font-size: 24px;
margin-right: 10px;
}
.loading-message, .success-message, .error-message {
display: inline-block;
vertical-align: middle;
}
.url-box {
margin-top: 10px;
background: var(--neutral-100);
padding: 10px 15px;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: space-between;
word-break: break-all;
}
.url-box a {
flex: 1;
color: var(--primary);
text-decoration: none;
font-weight: 500;
}
.url-box a:hover {
text-decoration: underline;
}
.copy-btn {
background: var(--primary);
color: white;
border: none;
border-radius: var(--radius-sm);
padding: 5px 10px;
margin-left: 10px;
cursor: pointer;
font-size: 12px;
transition: background 0.2s;
}
.copy-btn:hover {
background: var(--secondary);
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
} /* 이 닫는 중괄호 추가 */ |