openfree commited on
Commit
90bee97
·
verified ·
1 Parent(s): eaf11e0

Create app.css

Browse files
Files changed (1) hide show
  1. app.css +424 -0
app.css ADDED
@@ -0,0 +1,424 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Modern color scheme */
2
+ :root {
3
+ /* 주요 브랜드 컬러 */
4
+ --primary: #0066cc; /* 메인 브랜드 컬러 */
5
+ --secondary: #3385ff; /* 밝은 액센트 */
6
+ --accent: #66a3ff; /* 부드러운 포인트 컬러 */
7
+
8
+ /* 배경 컬러 */
9
+ --background: #f7f9fc; /* 메인 배경 */
10
+ --surface: #ffffff; /* 카드 배경 */
11
+
12
+ /* 텍스트 컬러 */
13
+ --text-primary: #2c3e50; /* 주요 텍스트 */
14
+ --text-secondary: #546e7a; /* 부가 텍스트 */
15
+ --text-tertiary: #78909c; /* 덜 중요한 텍스트 */
16
+
17
+ /* 기능성 컬러 */
18
+ --success: #34c759; /* 성공/확인 */
19
+ --warning: #ff9500; /* 경고/주의 */
20
+ --error: #ff3b30; /* 오류/삭제 */
21
+
22
+ /* 중립 컬러 */
23
+ --neutral-100: #f8f9fa;
24
+ --neutral-200: #e9ecef;
25
+ --neutral-300: #dee2e6;
26
+ --neutral-400: #ced4da;
27
+ }
28
+
29
+ body {
30
+ font-family: 'Inter', system-ui, sans-serif;
31
+ background: var(--background);
32
+ color: var(--text-primary);
33
+ line-height: 1.5;
34
+ }
35
+
36
+ .left_header {
37
+ display: flex;
38
+ flex-direction: column;
39
+ justify-content: center;
40
+ align-items: center;
41
+ background: linear-gradient(135deg, var(--surface), var(--neutral-100));
42
+ backdrop-filter: blur(10px);
43
+ border-radius: 24px;
44
+ padding: 2rem;
45
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
46
+ border: 1px solid var(--neutral-200);
47
+ text-align: center;
48
+ margin-bottom: 2rem;
49
+ }
50
+
51
+ .left_header img {
52
+ width: 180px;
53
+ margin-bottom: 1rem;
54
+ border-radius: 12px;
55
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
56
+ }
57
+
58
+ .left_header h1 {
59
+ margin: 0.5rem 0;
60
+ font-weight: 600;
61
+ color: var(--text-primary);
62
+ }
63
+
64
+ .render_header {
65
+ height: 30px;
66
+ width: 100%;
67
+ padding: 5px 16px;
68
+ background-color: var(--neutral-100);
69
+ border-radius: 8px 8px 0 0;
70
+ margin-top: 0; /* 수정: 상단 여백 제거 */
71
+ }
72
+
73
+ .header_btn {
74
+ display: inline-block;
75
+ height: 10px;
76
+ width: 10px;
77
+ border-radius: 50%;
78
+ margin-right: 4px;
79
+ }
80
+
81
+ .render_header > .header_btn:nth-child(1) {
82
+ background-color: var(--error);
83
+ }
84
+
85
+ .render_header > .header_btn:nth-child(2) {
86
+ background-color: var(--warning);
87
+ }
88
+
89
+ .render_header > .header_btn:nth-child(3) {
90
+ background-color: var(--success);
91
+ }
92
+
93
+ .right_content {
94
+ height: 600px; /* 수정: 높이 일관성 */
95
+ display: flex;
96
+ flex-direction: column;
97
+ justify-content: center;
98
+ align-items: center;
99
+ background: var(--surface);
100
+ border-radius: 0 0 8px 8px;
101
+ }
102
+
103
+ .history_chatbot button {
104
+ background: none;
105
+ border: none;
106
+ }
107
+
108
+ footer, .footer, div[class*="footer"], #footer {
109
+ display: none !important;
110
+ }
111
+
112
+ #component-0 textarea,
113
+ .gradio-container textarea,
114
+ .ant-input-textarea-large textarea {
115
+ height: 300px !important;
116
+ min-height: 300px !important;
117
+ resize: vertical !important;
118
+ border: 2px solid var(--neutral-200);
119
+ border-radius: 12px;
120
+ transition: all 0.3s;
121
+ background: var(--surface);
122
+ color: var(--text-primary);
123
+ padding: 1rem;
124
+ flex-grow: 1; /* 수정: 공간을 채우도록 */
125
+ }
126
+
127
+ #component-0 textarea:focus,
128
+ .gradio-container textarea:focus,
129
+ .ant-input-textarea-large textarea:focus {
130
+ border-color: var(--accent);
131
+ box-shadow: 0 0 0 3px rgba(102, 163, 255, 0.2);
132
+ }
133
+
134
+ .setting-buttons {
135
+ position: sticky;
136
+ top: 1rem;
137
+ right: 0;
138
+ z-index: 1000;
139
+ display: flex;
140
+ gap: 8px;
141
+ padding: 12px;
142
+ background: rgba(255, 255, 255, 0.9);
143
+ backdrop-filter: blur(8px);
144
+ border-radius: 12px;
145
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
146
+ border: 1px solid var(--neutral-200);
147
+ }
148
+
149
+ /* 패널 레이아웃 조정 */
150
+ .equal-height-container {
151
+ display: flex;
152
+ min-height: 600px; /* 최소 높이 설정 */
153
+ }
154
+
155
+ .equal-height-col {
156
+ display: flex;
157
+ flex-direction: column;
158
+ height: 100%;
159
+ }
160
+
161
+ .right_panel {
162
+ position: relative;
163
+ height: 600px; /* 명시적 높이 지정 */
164
+ display: flex;
165
+ flex-direction: column;
166
+ padding-top: 0; /* 수정: 패딩 제거 */
167
+ }
168
+
169
+ .panel {
170
+ display: flex;
171
+ flex-direction: column;
172
+ height: 600px; /* 명시적 높이 지정 */
173
+ background: var(--surface);
174
+ border-radius: 8px;
175
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
176
+ }
177
+
178
+ .input-panel {
179
+ display: flex;
180
+ flex-direction: column;
181
+ height: 600px; /* 명시적 높이 지정 */
182
+ }
183
+
184
+ .html_content {
185
+ flex: 1;
186
+ height: 570px; /* 수정: 헤더를 고려한 높이 */
187
+ border-radius: 0 0 8px 8px;
188
+ overflow: hidden;
189
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
190
+ background: var(--surface);
191
+ }
192
+
193
+ .ant-input-textarea {
194
+ display: flex;
195
+ flex-direction: column;
196
+ flex: 1;
197
+ }
198
+
199
+ /* 탭 컨텐츠 높이 조정 */
200
+ .ant-tabs-content {
201
+ height: 100%;
202
+ }
203
+
204
+ .ant-tabs-tabpane {
205
+ height: 100%;
206
+ display: flex;
207
+ flex-direction: column;
208
+ }
209
+
210
+ .ant-btn {
211
+ flex: 1;
212
+ min-width: 80px;
213
+ border-radius: 8px;
214
+ font-weight: 500;
215
+ transition: all 0.3s;
216
+ height: 40px;
217
+ display: flex;
218
+ align-items: center;
219
+ justify-content: center;
220
+ }
221
+
222
+ .ant-btn-primary {
223
+ background: linear-gradient(to right, var(--primary), var(--secondary));
224
+ border: none;
225
+ color: white;
226
+ }
227
+
228
+ .ant-btn-primary:hover {
229
+ transform: translateY(-2px);
230
+ box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
231
+ }
232
+
233
+ .ant-btn-default {
234
+ background: var(--surface);
235
+ border: 1px solid var(--primary);
236
+ color: var(--primary);
237
+ }
238
+
239
+ .ant-btn-default:hover {
240
+ color: var(--secondary);
241
+ border-color: var(--secondary);
242
+ transform: translateY(-2px);
243
+ box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
244
+ }
245
+
246
+ .ant-btn-default[title="Code 실행"] {
247
+ background-color: var(--success);
248
+ color: white;
249
+ border: none;
250
+ }
251
+
252
+ .ant-btn-default[title="Code 실행"]:hover {
253
+ background-color: #40d869;
254
+ }
255
+
256
+ .session-drawer .chatbot {
257
+ height: calc(100vh - 200px);
258
+ overflow-y: auto;
259
+ }
260
+
261
+ .session-history {
262
+ height: 700px;
263
+ overflow-y: auto;
264
+ padding: 1rem;
265
+ }
266
+
267
+ .prompt-grid {
268
+ display: grid;
269
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
270
+ gap: 1.5rem;
271
+ padding: 1.5rem;
272
+ }
273
+
274
+ .prompt-card {
275
+ background: var(--surface);
276
+ border-radius: 16px;
277
+ padding: 1.25rem;
278
+ cursor: pointer;
279
+ transition: all 0.3s;
280
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
281
+ min-height: 300px;
282
+ border: 1px solid var(--neutral-200);
283
+ }
284
+
285
+ .prompt-card:hover {
286
+ transform: translateY(-4px);
287
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
288
+ }
289
+
290
+ .card-image {
291
+ width: 100%;
292
+ height: 200px;
293
+ object-fit: cover;
294
+ border-radius: 12px;
295
+ margin-bottom: 1rem;
296
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
297
+ }
298
+
299
+ .card-name {
300
+ font-weight: 600;
301
+ margin-bottom: 0.8rem;
302
+ font-size: 1.1rem;
303
+ color: var(--text-primary);
304
+ }
305
+
306
+ .card-prompt-container {
307
+ position: relative;
308
+ padding-right: 60px;
309
+ }
310
+
311
+ .card-prompt {
312
+ font-size: 0.9rem;
313
+ color: var(--text-secondary);
314
+ display: -webkit-box;
315
+ -webkit-line-clamp: 3;
316
+ -webkit-box-orient: vertical;
317
+ overflow: hidden;
318
+ background: var(--neutral-100);
319
+ padding: 0.8rem;
320
+ border-radius: 8px;
321
+ line-height: 1.5;
322
+ }
323
+
324
+ .copy-btn {
325
+ position: absolute;
326
+ right: 0;
327
+ top: 0;
328
+ padding: 6px 12px;
329
+ background: var(--accent);
330
+ color: white;
331
+ border: none;
332
+ border-radius: 6px;
333
+ cursor: pointer;
334
+ font-size: 0.9em;
335
+ transition: all 0.2s ease;
336
+ }
337
+
338
+ .copy-btn:hover {
339
+ background: var(--primary);
340
+ transform: translateY(-1px);
341
+ }
342
+
343
+ .copy-btn:active {
344
+ transform: translateY(0);
345
+ }
346
+
347
+ .template-buttons {
348
+ margin-top: 1rem;
349
+ display: flex;
350
+ gap: 0.5rem;
351
+ }
352
+
353
+ /* Custom scrollbar */
354
+ ::-webkit-scrollbar {
355
+ width: 8px;
356
+ height: 8px;
357
+ }
358
+
359
+ ::-webkit-scrollbar-track {
360
+ background: var(--neutral-100);
361
+ }
362
+
363
+ ::-webkit-scrollbar-thumb {
364
+ background: var(--neutral-300);
365
+ border-radius: 4px;
366
+ }
367
+
368
+ ::-webkit-scrollbar-thumb:hover {
369
+ background: var(--neutral-400);
370
+ }
371
+
372
+ /* Drawer customization */
373
+ .ant-drawer-content-wrapper {
374
+ border-radius: 16px 0 0 16px;
375
+ }
376
+
377
+ .ant-drawer-header {
378
+ background: var(--primary);
379
+ color: white;
380
+ border-radius: 16px 0 0 0;
381
+ }
382
+
383
+ .ant-drawer-title {
384
+ color: white;
385
+ font-weight: 500;
386
+ }
387
+
388
+ .ant-drawer-close {
389
+ color: white;
390
+ }
391
+
392
+ .ant-drawer-body {
393
+ background: var(--surface);
394
+ }
395
+
396
+ /* Responsive adjustments */
397
+ @media (max-width: 768px) {
398
+ .left_header {
399
+ padding: 1rem;
400
+ }
401
+
402
+ .prompt-grid {
403
+ grid-template-columns: 1fr;
404
+ }
405
+
406
+ .setting-buttons {
407
+ flex-wrap: wrap;
408
+ }
409
+
410
+ .ant-btn {
411
+ min-width: 60px;
412
+ font-size: 0.9rem;
413
+ }
414
+ }
415
+
416
+ /* Animations */
417
+ @keyframes fadeIn {
418
+ from { opacity: 0; transform: translateY(10px); }
419
+ to { opacity: 1; transform: translateY(0); }
420
+ }
421
+
422
+ .fade-in {
423
+ animation: fadeIn 0.5s ease-out;
424
+ }