Spaces:
Running
Running
/* Modern color scheme */ | |
:root { | |
--primary: #2563eb; | |
--secondary: #3b82f6; | |
--accent: #60a5fa; | |
--background: #f8fafc; | |
--text: #1e293b; | |
} | |
body { | |
font-family: 'Inter', system-ui, sans-serif; | |
background: var(--background); | |
color: var(--text); | |
line-height: 1.5; | |
} | |
.left_header { | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
background: rgba(255, 255, 255, 0.7); | |
backdrop-filter: blur(10px); | |
border-radius: 24px; | |
padding: 2rem; | |
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); | |
border: 1px solid rgba(255, 255, 255, 0.2); | |
text-align: center; | |
margin-bottom: 2rem; | |
} | |
.left_header img { | |
width: 180px; | |
margin-bottom: 1rem; | |
border-radius: 12px; | |
} | |
.left_header h1 { | |
margin: 0.5rem 0; | |
font-weight: 600; | |
} | |
.render_header { | |
height: 30px; | |
width: 100%; | |
padding: 5px 16px; | |
background-color: #f5f5f5; | |
margin-top: 50px; | |
} | |
.header_btn { | |
display: inline-block; | |
height: 10px; | |
width: 10px; | |
border-radius: 50%; | |
margin-right: 4px; | |
} | |
.render_header > .header_btn:nth-child(1) { | |
background-color: #f5222d; | |
} | |
.render_header > .header_btn:nth-child(2) { | |
background-color: #faad14; | |
} | |
.render_header > .header_btn:nth-child(3) { | |
background-color: #52c41a; | |
} | |
.right_content { | |
height: 920px; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
} | |
.history_chatbot button { | |
background: none; | |
border: none; | |
} | |
footer, .footer, div[class*="footer"], #footer { | |
display: none ; | |
} | |
#component-0 textarea, | |
.gradio-container textarea, | |
.ant-input-textarea-large textarea { | |
height: 300px ; | |
min-height: 300px ; | |
resize: vertical ; | |
border: 2px solid transparent; | |
border-radius: 12px; | |
transition: all 0.3s; | |
} | |
#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(96, 165, 250, 0.2); | |
} | |
.setting-buttons { | |
position: sticky; | |
top: 1rem; | |
right: 0; | |
z-index: 1000; | |
display: flex; | |
gap: 8px; | |
padding: 10px; | |
background: rgba(255, 255, 255, 0.8); | |
backdrop-filter: blur(8px); | |
border-radius: 12px; | |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
} | |
.right_panel { | |
position: relative; | |
min-height: 600px; | |
padding-top: 50px; | |
} | |
.html_content { | |
height: 100%; | |
border-radius: 12px; | |
overflow: hidden; | |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
} | |
.ant-btn { | |
flex: 1; | |
min-width: 80px; | |
background-image: linear-gradient(to right, var(--primary), var(--secondary)); | |
border: none; | |
color: white; | |
font-weight: 500; | |
transition: all 0.3s; | |
} | |
.ant-btn:hover { | |
transform: translateY(-2px); | |
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); | |
} | |
.ant-btn-primary { | |
background-color: var(--primary); | |
} | |
.ant-btn-default { | |
background: white; | |
border: 1px solid var(--primary); | |
color: var(--primary); | |
} | |
.ant-btn-default:hover { | |
color: var(--accent); | |
border-color: var(--accent); | |
} | |
.ant-btn-default[title="Code 실행"] { | |
background-color: #52c41a; | |
color: white; | |
border: none; | |
} | |
.ant-btn-default[title="Code 실행"]:hover { | |
background-color: #73d13d; | |
} | |
.session-drawer .chatbot { | |
height: calc(100vh - 200px); | |
overflow-y: auto; | |
} | |
.session-history { | |
height: 700px; | |
overflow-y: auto; | |
} | |
.prompt-grid { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | |
gap: 1.5rem; | |
padding: 1.5rem; | |
} | |
.prompt-card { | |
background: white; | |
border-radius: 16px; | |
padding: 15px; | |
cursor: pointer; | |
transition: all 0.3s; | |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
min-height: 300px; | |
} | |
.prompt-card:hover { | |
transform: translateY(-4px); | |
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); | |
} | |
.card-image { | |
width: 100%; | |
height: 200px; | |
object-fit: cover; | |
border-radius: 12px; | |
margin-bottom: 1rem; | |
} | |
.card-name { | |
font-weight: 600; | |
margin-bottom: 0.8rem; | |
font-size: 1.1rem; | |
color: var(--text); | |
} | |
.card-prompt-container { | |
position: relative; | |
padding-right: 60px; | |
} | |
.card-prompt { | |
font-size: 0.9rem; | |
color: #666; | |
display: -webkit-box; | |
-webkit-line-clamp: 3; | |
-webkit-box-orient: vertical; | |
overflow: hidden; | |
background-color: #f8f9fa; | |
padding: 8px; | |
border-radius: 8px; | |
} | |
.copy-btn { | |
position: absolute; | |
right: 0; | |
top: 0; | |
padding: 4px 8px; | |
background: var(--accent); | |
color: white; | |
border: none; | |
border-radius: 6px; | |
cursor: pointer; | |
font-size: 0.9em; | |
transition: all 0.2s ease; | |
} | |
.copy-btn:hover { | |
background: var(--primary); | |
transform: translateY(-1px); | |
} | |
.copy-btn:active { | |
transform: translateY(0); | |
} | |
.template-buttons { | |
margin-top: 10px; | |
} | |
/* Custom scrollbar */ | |
::-webkit-scrollbar { | |
width: 8px; | |
height: 8px; | |
} | |
::-webkit-scrollbar-track { | |
background: #f1f5f9; | |
} | |
::-webkit-scrollbar-thumb { | |
background: #94a3b8; | |
border-radius: 4px; | |
} | |
/* Drawer customization */ | |
.ant-drawer-content-wrapper { | |
border-radius: 16px 0 0 16px; | |
} | |
.ant-drawer-header { | |
background: var(--primary); | |
color: white; | |
} | |
.ant-drawer-title { | |
color: white; | |
} | |
.ant-drawer-close { | |
color: white; | |
} | |
/* Responsive adjustments */ | |
@media (max-width: 768px) { | |
.left_header { | |
padding: 1rem; | |
} | |
.prompt-grid { | |
grid-template-columns: 1fr; | |
} | |
.setting-buttons { | |
flex-wrap: wrap; | |
} | |
} | |
/* Animations */ | |
@keyframes fadeIn { | |
from { opacity: 0; transform: translateY(10px); } | |
to { opacity: 1; transform: translateY(0); } | |
} | |
.fade-in { | |
animation: fadeIn 0.5s ease-out; | |
} |