Vibe-Game / app.css
openfree's picture
Rename app-backup-last.css to app.css
93bf53d verified
/* 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); }
}
} /* 이 닫는 중괄호 추가 */