openfree commited on
Commit
8046094
·
verified ·
1 Parent(s): a86eee6

Update app.css

Browse files
Files changed (1) hide show
  1. app.css +145 -131
app.css CHANGED
@@ -31,8 +31,6 @@ body {
31
  background: var(--background);
32
  color: var(--text-primary);
33
  line-height: 1.5;
34
- margin: 0;
35
- padding: 0;
36
  }
37
 
38
  .left_header {
@@ -41,7 +39,6 @@ body {
41
  justify-content: center;
42
  align-items: center;
43
  background: linear-gradient(135deg, var(--surface), var(--neutral-100));
44
- -webkit-backdrop-filter: blur(10px);
45
  backdrop-filter: blur(10px);
46
  border-radius: 24px;
47
  padding: 2rem;
@@ -64,43 +61,21 @@ body {
64
  color: var(--text-primary);
65
  }
66
 
67
- .right_panel {
68
- position: relative;
69
- height: 100%;
70
- display: flex;
71
- flex-direction: column;
72
- }
73
-
74
- .html_content {
75
- flex: 1;
76
- display: flex;
77
- flex-direction: column;
78
- height: 100%;
79
- }
80
-
81
- .html_content iframe {
82
- flex: 1;
83
- width: 100%;
84
- height: 100%;
85
- border: none;
86
- display: block;
87
- }
88
-
89
  .render_header {
90
  height: 30px;
91
- background: var(--neutral-100);
 
 
 
92
  border-radius: 8px 8px 0 0;
93
- display: flex;
94
- align-items: center;
95
- padding: 0 12px;
96
- gap: 6px;
97
- flex-shrink: 0;
98
  }
99
 
100
  .header_btn {
101
- width: 12px;
102
- height: 12px;
 
103
  border-radius: 50%;
 
104
  }
105
 
106
  .render_header > .header_btn:nth-child(1) {
@@ -116,37 +91,18 @@ body {
116
  }
117
 
118
  .right_content {
119
- flex: 1;
120
- display: flex;
121
- justify-content: center;
122
- align-items: center;
123
- background: var(--surface);
124
- }
125
-
126
- .ant-tabs-content {
127
- height: 100%;
128
- display: flex;
129
- flex-direction: column;
130
- }
131
-
132
- .ant-tabs-tabpane {
133
- flex: 1;
134
- display: flex;
135
  flex-direction: column;
136
- }
137
-
138
- .ant-empty,
139
- .ant-spin-container {
140
- flex: 1;
141
- display: flex;
142
  justify-content: center;
143
  align-items: center;
 
 
144
  }
145
 
146
  .history_chatbot button {
147
  background: none;
148
  border: none;
149
- cursor: pointer;
150
  }
151
 
152
  footer, .footer, div[class*="footer"], #footer {
@@ -161,7 +117,7 @@ footer, .footer, div[class*="footer"], #footer {
161
  resize: vertical !important;
162
  border: 2px solid var(--neutral-200);
163
  border-radius: 12px;
164
- transition: all 0.3s ease;
165
  background: var(--surface);
166
  color: var(--text-primary);
167
  padding: 1rem;
@@ -172,7 +128,6 @@ footer, .footer, div[class*="footer"], #footer {
172
  .ant-input-textarea-large textarea:focus {
173
  border-color: var(--accent);
174
  box-shadow: 0 0 0 3px rgba(102, 163, 255, 0.2);
175
- outline: none;
176
  }
177
 
178
  .setting-buttons {
@@ -184,24 +139,36 @@ footer, .footer, div[class*="footer"], #footer {
184
  gap: 8px;
185
  padding: 12px;
186
  background: rgba(255, 255, 255, 0.9);
187
- -webkit-backdrop-filter: blur(8px);
188
  backdrop-filter: blur(8px);
189
  border-radius: 12px;
190
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
191
  border: 1px solid var(--neutral-200);
192
  }
193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  .ant-btn {
195
  flex: 1;
196
  min-width: 80px;
197
  border-radius: 8px;
198
  font-weight: 500;
199
- transition: all 0.3s ease;
200
  height: 40px;
201
  display: flex;
202
  align-items: center;
203
  justify-content: center;
204
- cursor: pointer;
205
  }
206
 
207
  .ant-btn-primary {
@@ -228,72 +195,14 @@ footer, .footer, div[class*="footer"], #footer {
228
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
229
  }
230
 
231
- ::-webkit-scrollbar {
232
- width: 8px;
233
- height: 8px;
234
- }
235
-
236
- ::-webkit-scrollbar-track {
237
- background: var(--neutral-100);
238
- }
239
-
240
- ::-webkit-scrollbar-thumb {
241
- background: var(--neutral-300);
242
- border-radius: 4px;
243
- }
244
-
245
- ::-webkit-scrollbar-thumb:hover {
246
- background: var(--neutral-400);
247
- }
248
-
249
- @media (max-width: 768px) {
250
- .right_panel {
251
- height: 400px;
252
- margin: 10px;
253
- }
254
-
255
- .setting-buttons {
256
- flex-wrap: wrap;
257
- }
258
-
259
- .ant-btn {
260
- min-width: 60px;
261
- font-size: 0.9rem;
262
- }
263
- }
264
-
265
- .right_panel::after {
266
- content: '';
267
- position: absolute;
268
- bottom: 0;
269
- left: 0;
270
- right: 0;
271
- height: 6px;
272
- background: var(--neutral-200);
273
- cursor: ns-resize;
274
- }
275
-
276
- .ant-drawer-content-wrapper {
277
- border-radius: 16px 0 0 16px;
278
- }
279
-
280
- .ant-drawer-header {
281
- background: var(--primary);
282
- color: white;
283
- border-radius: 16px 0 0 0;
284
- }
285
-
286
- .ant-drawer-title {
287
- color: white;
288
- font-weight: 500;
289
- }
290
-
291
- .ant-drawer-close {
292
  color: white;
 
293
  }
294
 
295
- .ant-drawer-body {
296
- background: var(--surface);
297
  }
298
 
299
  .session-drawer .chatbot {
@@ -319,8 +228,9 @@ footer, .footer, div[class*="footer"], #footer {
319
  border-radius: 16px;
320
  padding: 1.25rem;
321
  cursor: pointer;
322
- transition: all 0.3s ease;
323
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
 
324
  border: 1px solid var(--neutral-200);
325
  }
326
 
@@ -335,6 +245,7 @@ footer, .footer, div[class*="footer"], #footer {
335
  object-fit: cover;
336
  border-radius: 12px;
337
  margin-bottom: 1rem;
 
338
  }
339
 
340
  .card-name {
@@ -344,20 +255,123 @@ footer, .footer, div[class*="footer"], #footer {
344
  color: var(--text-primary);
345
  }
346
 
 
 
 
 
 
347
  .card-prompt {
348
  font-size: 0.9rem;
349
  color: var(--text-secondary);
 
 
 
 
350
  background: var(--neutral-100);
351
  padding: 0.8rem;
352
  border-radius: 8px;
353
  line-height: 1.5;
354
  }
355
 
356
- .error {
357
- color: var(--error);
358
- padding: 1rem;
359
- text-align: center;
360
- background: rgba(255, 59, 48, 0.1);
361
- border-radius: 8px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
362
  }
363
 
 
31
  background: var(--background);
32
  color: var(--text-primary);
33
  line-height: 1.5;
 
 
34
  }
35
 
36
  .left_header {
 
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;
 
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
+ margin-top: 50px;
70
  border-radius: 8px 8px 0 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) {
 
91
  }
92
 
93
  .right_content {
94
+ height: 920px;
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 {
 
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;
 
128
  .ant-input-textarea-large textarea:focus {
129
  border-color: var(--accent);
130
  box-shadow: 0 0 0 3px rgba(102, 163, 255, 0.2);
 
131
  }
132
 
133
  .setting-buttons {
 
139
  gap: 8px;
140
  padding: 12px;
141
  background: rgba(255, 255, 255, 0.9);
 
142
  backdrop-filter: blur(8px);
143
  border-radius: 12px;
144
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
145
  border: 1px solid var(--neutral-200);
146
  }
147
 
148
+ .right_panel {
149
+ position: relative;
150
+ min-height: 600px;
151
+ padding-top: 50px;
152
+ }
153
+
154
+ .html_content {
155
+ height: 100%;
156
+ border-radius: 12px;
157
+ overflow: hidden;
158
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
159
+ background: var(--surface);
160
+ }
161
+
162
  .ant-btn {
163
  flex: 1;
164
  min-width: 80px;
165
  border-radius: 8px;
166
  font-weight: 500;
167
+ transition: all 0.3s;
168
  height: 40px;
169
  display: flex;
170
  align-items: center;
171
  justify-content: center;
 
172
  }
173
 
174
  .ant-btn-primary {
 
195
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
196
  }
197
 
198
+ .ant-btn-default[title="Code 실행"] {
199
+ background-color: var(--success);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  color: white;
201
+ border: none;
202
  }
203
 
204
+ .ant-btn-default[title="Code 실행"]:hover {
205
+ background-color: #40d869;
206
  }
207
 
208
  .session-drawer .chatbot {
 
228
  border-radius: 16px;
229
  padding: 1.25rem;
230
  cursor: pointer;
231
+ transition: all 0.3s;
232
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
233
+ min-height: 300px;
234
  border: 1px solid var(--neutral-200);
235
  }
236
 
 
245
  object-fit: cover;
246
  border-radius: 12px;
247
  margin-bottom: 1rem;
248
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
249
  }
250
 
251
  .card-name {
 
255
  color: var(--text-primary);
256
  }
257
 
258
+ .card-prompt-container {
259
+ position: relative;
260
+ padding-right: 60px;
261
+ }
262
+
263
  .card-prompt {
264
  font-size: 0.9rem;
265
  color: var(--text-secondary);
266
+ display: -webkit-box;
267
+ -webkit-line-clamp: 3;
268
+ -webkit-box-orient: vertical;
269
+ overflow: hidden;
270
  background: var(--neutral-100);
271
  padding: 0.8rem;
272
  border-radius: 8px;
273
  line-height: 1.5;
274
  }
275
 
276
+ .copy-btn {
277
+ position: absolute;
278
+ right: 0;
279
+ top: 0;
280
+ padding: 6px 12px;
281
+ background: var(--accent);
282
+ color: white;
283
+ border: none;
284
+ border-radius: 6px;
285
+ cursor: pointer;
286
+ font-size: 0.9em;
287
+ transition: all 0.2s ease;
288
+ }
289
+
290
+ .copy-btn:hover {
291
+ background: var(--primary);
292
+ transform: translateY(-1px);
293
+ }
294
+
295
+ .copy-btn:active {
296
+ transform: translateY(0);
297
+ }
298
+
299
+ .template-buttons {
300
+ margin-top: 1rem;
301
+ display: flex;
302
+ gap: 0.5rem;
303
+ }
304
+
305
+ /* Custom scrollbar */
306
+ ::-webkit-scrollbar {
307
+ width: 8px;
308
+ height: 8px;
309
+ }
310
+
311
+ ::-webkit-scrollbar-track {
312
+ background: var(--neutral-100);
313
+ }
314
+
315
+ ::-webkit-scrollbar-thumb {
316
+ background: var(--neutral-300);
317
+ border-radius: 4px;
318
+ }
319
+
320
+ ::-webkit-scrollbar-thumb:hover {
321
+ background: var(--neutral-400);
322
+ }
323
+
324
+ /* Drawer customization */
325
+ .ant-drawer-content-wrapper {
326
+ border-radius: 16px 0 0 16px;
327
+ }
328
+
329
+ .ant-drawer-header {
330
+ background: var(--primary);
331
+ color: white;
332
+ border-radius: 16px 0 0 0;
333
+ }
334
+
335
+ .ant-drawer-title {
336
+ color: white;
337
+ font-weight: 500;
338
+ }
339
+
340
+ .ant-drawer-close {
341
+ color: white;
342
+ }
343
+
344
+ .ant-drawer-body {
345
+ background: var(--surface);
346
+ }
347
+
348
+ /* Responsive adjustments */
349
+ @media (max-width: 768px) {
350
+ .left_header {
351
+ padding: 1rem;
352
+ }
353
+
354
+ .prompt-grid {
355
+ grid-template-columns: 1fr;
356
+ }
357
+
358
+ .setting-buttons {
359
+ flex-wrap: wrap;
360
+ }
361
+
362
+ .ant-btn {
363
+ min-width: 60px;
364
+ font-size: 0.9rem;
365
+ }
366
+ }
367
+
368
+ /* Animations */
369
+ @keyframes fadeIn {
370
+ from { opacity: 0; transform: translateY(10px); }
371
+ to { opacity: 1; transform: translateY(0); }
372
+ }
373
+
374
+ .fade-in {
375
+ animation: fadeIn 0.5s ease-out;
376
  }
377