Vibe-Game / app.css
openfree's picture
Update app.css
55741fe verified
raw
history blame
10.6 kB
/* 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;
align-items: center;
background: linear-gradient(135deg, var(--surface), var(--neutral-100));
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;
}
.equal-height-container {display: flex; min-height: 900px;}
.equal-height-col {display: flex; flex-direction: column; height: 100%;}
/* ------------------------- */
/* 상단 헤더 */
.app-header {
text-align: center;
padding: 1.5rem 1rem;
margin-bottom: 0.5rem;
background: linear-gradient(to right, var(--primary), var(--secondary));
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
color: white;
}
.app-header h1 {
font-size: 2rem;
margin: 0 0 0.5rem;
}
.app-header p {font-size: 1rem; margin: 0;}
/* ------------------------- */
/* 배포 결과 배너 */
.deploy-banner {
background: #fff;
border-radius: var(--radius-md);
margin: 0.5rem auto 1.5rem auto;
box-shadow: var(--shadow-md);
max-width: 1200px;
border: 1px solid #ddd;
overflow: hidden;
transition: all 0.3s ease;
}
.deploy-banner.success {border-left: 5px solid var(--success);}
.deploy-banner.error {border-left: 5px solid var(--error);}
.deploy-banner.loading {border-left: 5px solid var(--secondary);}
.deploy-banner-content {
display: flex; align-items: center;
padding: 15px 20px;
}
.deploy-banner-icon {font-size: 24px; margin-right: 15px;}
.deploy-banner-info {flex: 1;}
.deploy-banner-title {font-weight: bold; font-size: 16px; margin-bottom: 5px;}
.deploy-banner-message {color: #666;}
.deploy-banner-url-container {
background: #f5f8ff; padding: 10px 15px; border-radius: 8px;
display: flex; align-items: center; max-width: 400px; margin-top: 8px;
}
.deploy-banner-url {
color: #0066cc; text-decoration: none; font-weight: 500;
word-break: break-all; flex: 1;
}
.deploy-banner-copy-btn {
background: #0066cc; color: #fff; border: none; border-radius: 4px;
padding: 5px 10px; margin-left: 10px; cursor: pointer; font-size: 12px;
}
.deploy-banner-copy-btn:hover {background: #0052a3;}
/* ------------------------- */
/* 렌더 헤더 */
.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;
box-shadow: var(--shadow-sm);
border-bottom: 1px solid var(--neutral-300);
}
.render_header > .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_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;
}
.right_content {
flex: 1; height: 870px;
display: flex; flex-direction: column; align-items: center; justify-content: center;
background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.html_content {
flex: 1; height: 870px; 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);
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;
}
/* ------------------------- */
/* 입력 영역 (textarea 등) */
.input-panel {
display: flex; flex-direction: column;
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;
}
#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);
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);
}
.help-text {
background-color: var(--neutral-100);
border-left: 3px solid var(--accent);
padding: 8px 12px; border-radius: var(--radius-md);
color: var(--text-secondary); font-style: italic; margin-top: 8px;
}
/* ------------------------- */
/* 배포 결과 박스 */
.deploy-section {
margin-top: 10px;
}
.deploy-header {
font-weight: bold; margin-bottom: 5px; font-size: 14px;
}
.deploy-result-box {
background: var(--neutral-100); padding:10px; border-radius:var(--radius-md);
border-left:3px solid var(--primary); min-height:60px; box-shadow: var(--shadow-sm);
}
.no-deploy {color:#999; font-style:italic;}
.deploy-success {color: var(--success); padding:10px; background:rgba(52,199,89,0.1); border-radius: var(--radius-md);}
.deploy-error {color: var(--error); padding:10px; background:rgba(255,59,48,0.1); border-radius: var(--radius-md);}
.success-icon, .error-icon {font-size:20px; margin-right:6px;}
/* ------------------------- */
/* Drawer / Template */
.ant-drawer-content-wrapper {border-radius:16px 0 0 16px;}
.ant-drawer-header {
background: linear-gradient(to right,var(--primary),var(--tertiary));
color:#fff; border-radius:16px 0 0 0;
}
.ant-drawer-title {color:#fff; font-weight:600;}
.ant-drawer-close {color:#fff;}
.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:auto;}
.session-history {height:700px; overflow: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);}
/* ------------------------- */
/* 반응형 */
@media (max-width: 768px) {
.setting-buttons .ant-btn,
.action-buttons .ant-btn {min-width: calc(50% - 8px); margin:4px;}
}
footer, .footer, div[class*="footer"], #footer {display:none!important;}