openfree commited on
Commit
23f5049
·
verified ·
1 Parent(s): 3c9f072

Update app-backup.css

Browse files
Files changed (1) hide show
  1. app-backup.css +102 -45
app-backup.css CHANGED
@@ -1,16 +1,35 @@
1
  /* Modern color scheme */
2
  :root {
3
- --primary: #2563eb;
4
- --secondary: #3b82f6;
5
- --accent: #60a5fa;
6
- --background: #f8fafc;
7
- --text: #1e293b;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  }
9
 
10
  body {
11
  font-family: 'Inter', system-ui, sans-serif;
12
  background: var(--background);
13
- color: var(--text);
14
  line-height: 1.5;
15
  }
16
 
@@ -19,12 +38,12 @@ body {
19
  flex-direction: column;
20
  justify-content: center;
21
  align-items: center;
22
- background: rgba(255, 255, 255, 0.7);
23
  backdrop-filter: blur(10px);
24
  border-radius: 24px;
25
  padding: 2rem;
26
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
27
- border: 1px solid rgba(255, 255, 255, 0.2);
28
  text-align: center;
29
  margin-bottom: 2rem;
30
  }
@@ -33,19 +52,22 @@ body {
33
  width: 180px;
34
  margin-bottom: 1rem;
35
  border-radius: 12px;
 
36
  }
37
 
38
  .left_header h1 {
39
  margin: 0.5rem 0;
40
  font-weight: 600;
 
41
  }
42
 
43
  .render_header {
44
  height: 30px;
45
  width: 100%;
46
  padding: 5px 16px;
47
- background-color: #f5f5f5;
48
  margin-top: 50px;
 
49
  }
50
 
51
  .header_btn {
@@ -57,15 +79,15 @@ body {
57
  }
58
 
59
  .render_header > .header_btn:nth-child(1) {
60
- background-color: #f5222d;
61
  }
62
 
63
  .render_header > .header_btn:nth-child(2) {
64
- background-color: #faad14;
65
  }
66
 
67
  .render_header > .header_btn:nth-child(3) {
68
- background-color: #52c41a;
69
  }
70
 
71
  .right_content {
@@ -74,6 +96,8 @@ body {
74
  flex-direction: column;
75
  justify-content: center;
76
  align-items: center;
 
 
77
  }
78
 
79
  .history_chatbot button {
@@ -91,16 +115,19 @@ footer, .footer, div[class*="footer"], #footer {
91
  height: 300px !important;
92
  min-height: 300px !important;
93
  resize: vertical !important;
94
- border: 2px solid transparent;
95
  border-radius: 12px;
96
  transition: all 0.3s;
 
 
 
97
  }
98
 
99
  #component-0 textarea:focus,
100
  .gradio-container textarea:focus,
101
  .ant-input-textarea-large textarea:focus {
102
  border-color: var(--accent);
103
- box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
104
  }
105
 
106
  .setting-buttons {
@@ -110,11 +137,12 @@ footer, .footer, div[class*="footer"], #footer {
110
  z-index: 1000;
111
  display: flex;
112
  gap: 8px;
113
- padding: 10px;
114
- background: rgba(255, 255, 255, 0.8);
115
  backdrop-filter: blur(8px);
116
  border-radius: 12px;
117
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
 
118
  }
119
 
120
  .right_panel {
@@ -127,47 +155,54 @@ footer, .footer, div[class*="footer"], #footer {
127
  height: 100%;
128
  border-radius: 12px;
129
  overflow: hidden;
130
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
 
131
  }
132
 
133
  .ant-btn {
134
  flex: 1;
135
  min-width: 80px;
136
- background-image: linear-gradient(to right, var(--primary), var(--secondary));
137
- border: none;
138
- color: white;
139
  font-weight: 500;
140
  transition: all 0.3s;
 
 
 
 
141
  }
142
 
143
- .ant-btn:hover {
144
- transform: translateY(-2px);
145
- box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
 
146
  }
147
 
148
- .ant-btn-primary {
149
- background-color: var(--primary);
 
150
  }
151
 
152
  .ant-btn-default {
153
- background: white;
154
  border: 1px solid var(--primary);
155
  color: var(--primary);
156
  }
157
 
158
  .ant-btn-default:hover {
159
- color: var(--accent);
160
- border-color: var(--accent);
 
 
161
  }
162
 
163
  .ant-btn-default[title="Code 실행"] {
164
- background-color: #52c41a;
165
  color: white;
166
  border: none;
167
  }
168
 
169
  .ant-btn-default[title="Code 실행"]:hover {
170
- background-color: #73d13d;
171
  }
172
 
173
  .session-drawer .chatbot {
@@ -178,6 +213,7 @@ footer, .footer, div[class*="footer"], #footer {
178
  .session-history {
179
  height: 700px;
180
  overflow-y: auto;
 
181
  }
182
 
183
  .prompt-grid {
@@ -188,18 +224,19 @@ footer, .footer, div[class*="footer"], #footer {
188
  }
189
 
190
  .prompt-card {
191
- background: white;
192
  border-radius: 16px;
193
- padding: 15px;
194
  cursor: pointer;
195
  transition: all 0.3s;
196
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
197
  min-height: 300px;
 
198
  }
199
 
200
  .prompt-card:hover {
201
  transform: translateY(-4px);
202
- box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
203
  }
204
 
205
  .card-image {
@@ -208,13 +245,14 @@ footer, .footer, div[class*="footer"], #footer {
208
  object-fit: cover;
209
  border-radius: 12px;
210
  margin-bottom: 1rem;
 
211
  }
212
 
213
  .card-name {
214
  font-weight: 600;
215
  margin-bottom: 0.8rem;
216
  font-size: 1.1rem;
217
- color: var(--text);
218
  }
219
 
220
  .card-prompt-container {
@@ -224,21 +262,22 @@ footer, .footer, div[class*="footer"], #footer {
224
 
225
  .card-prompt {
226
  font-size: 0.9rem;
227
- color: #666;
228
  display: -webkit-box;
229
  -webkit-line-clamp: 3;
230
  -webkit-box-orient: vertical;
231
  overflow: hidden;
232
- background-color: #f8f9fa;
233
- padding: 8px;
234
  border-radius: 8px;
 
235
  }
236
 
237
  .copy-btn {
238
  position: absolute;
239
  right: 0;
240
  top: 0;
241
- padding: 4px 8px;
242
  background: var(--accent);
243
  color: white;
244
  border: none;
@@ -258,7 +297,9 @@ footer, .footer, div[class*="footer"], #footer {
258
  }
259
 
260
  .template-buttons {
261
- margin-top: 10px;
 
 
262
  }
263
 
264
  /* Custom scrollbar */
@@ -268,14 +309,18 @@ footer, .footer, div[class*="footer"], #footer {
268
  }
269
 
270
  ::-webkit-scrollbar-track {
271
- background: #f1f5f9;
272
  }
273
 
274
  ::-webkit-scrollbar-thumb {
275
- background: #94a3b8;
276
  border-radius: 4px;
277
  }
278
 
 
 
 
 
279
  /* Drawer customization */
280
  .ant-drawer-content-wrapper {
281
  border-radius: 16px 0 0 16px;
@@ -284,16 +329,22 @@ footer, .footer, div[class*="footer"], #footer {
284
  .ant-drawer-header {
285
  background: var(--primary);
286
  color: white;
 
287
  }
288
 
289
  .ant-drawer-title {
290
  color: white;
 
291
  }
292
 
293
  .ant-drawer-close {
294
  color: white;
295
  }
296
 
 
 
 
 
297
  /* Responsive adjustments */
298
  @media (max-width: 768px) {
299
  .left_header {
@@ -307,6 +358,11 @@ footer, .footer, div[class*="footer"], #footer {
307
  .setting-buttons {
308
  flex-wrap: wrap;
309
  }
 
 
 
 
 
310
  }
311
 
312
  /* Animations */
@@ -317,4 +373,5 @@ footer, .footer, div[class*="footer"], #footer {
317
 
318
  .fade-in {
319
  animation: fadeIn 0.5s ease-out;
320
- }
 
 
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
 
 
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
  }
 
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
  margin-top: 50px;
70
+ border-radius: 8px 8px 0 0;
71
  }
72
 
73
  .header_btn {
 
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 {
 
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 {
 
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
  }
125
 
126
  #component-0 textarea:focus,
127
  .gradio-container textarea:focus,
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 {
 
137
  z-index: 1000;
138
  display: flex;
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 {
 
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 {
175
+ background: linear-gradient(to right, var(--primary), var(--secondary));
176
+ border: none;
177
+ color: white;
178
  }
179
 
180
+ .ant-btn-primary:hover {
181
+ transform: translateY(-2px);
182
+ box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
183
  }
184
 
185
  .ant-btn-default {
186
+ background: var(--surface);
187
  border: 1px solid var(--primary);
188
  color: var(--primary);
189
  }
190
 
191
  .ant-btn-default:hover {
192
+ color: var(--secondary);
193
+ border-color: var(--secondary);
194
+ transform: translateY(-2px);
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 {
 
213
  .session-history {
214
  height: 700px;
215
  overflow-y: auto;
216
+ padding: 1rem;
217
  }
218
 
219
  .prompt-grid {
 
224
  }
225
 
226
  .prompt-card {
227
+ background: var(--surface);
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
 
237
  .prompt-card:hover {
238
  transform: translateY(-4px);
239
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
240
  }
241
 
242
  .card-image {
 
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 {
252
  font-weight: 600;
253
  margin-bottom: 0.8rem;
254
  font-size: 1.1rem;
255
+ color: var(--text-primary);
256
  }
257
 
258
  .card-prompt-container {
 
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;
 
297
  }
298
 
299
  .template-buttons {
300
+ margin-top: 1rem;
301
+ display: flex;
302
+ gap: 0.5rem;
303
  }
304
 
305
  /* Custom scrollbar */
 
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;
 
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 {
 
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 */
 
373
 
374
  .fade-in {
375
  animation: fadeIn 0.5s ease-out;
376
+ }
377
+