openfree commited on
Commit
6c56a5e
·
verified ·
1 Parent(s): c1d9468

Update app.css

Browse files
Files changed (1) hide show
  1. app.css +202 -72
app.css CHANGED
@@ -1,8 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .left_header {
2
  display: flex;
3
  flex-direction: column;
4
  justify-content: center;
5
  align-items: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  }
7
 
8
  .render_header {
@@ -47,144 +82,239 @@
47
  }
48
 
49
  footer, .footer, div[class*="footer"], #footer {
50
- display: none !important;
51
  }
52
 
53
  #component-0 textarea,
54
  .gradio-container textarea,
55
  .ant-input-textarea-large textarea {
56
- height: 300px !important;
57
- min-height: 300px !important;
58
- resize: vertical !important;
 
 
 
 
 
 
 
 
 
 
59
  }
60
 
61
  .setting-buttons {
62
- position: absolute;
63
- top: 0;
64
- right: 0;
65
- z-index: 1000;
66
- display: flex;
67
- gap: 8px;
68
- padding: 10px;
69
- background-color: white;
 
 
 
70
  }
71
 
72
  .right_panel {
73
- position: relative;
74
- min-height: 600px;
75
- padding-top: 50px;
76
  }
77
 
78
  .html_content {
79
- height: 100%;
 
 
 
80
  }
81
 
82
  .ant-btn {
83
- flex: 1;
84
- min-width: 80px;
 
 
 
 
 
 
 
 
 
 
85
  }
86
 
87
  .ant-btn-primary {
88
- background-color: #1890ff;
 
 
 
 
 
 
89
  }
90
 
91
  .ant-btn-default:hover {
92
- color: #1890ff;
93
- border-color: #1890ff;
94
  }
95
 
96
  .ant-btn-default[title="Code 실행"] {
97
- background-color: #52c41a;
98
- color: white;
99
- border: none;
100
  }
101
 
102
  .ant-btn-default[title="Code 실행"]:hover {
103
- background-color: #73d13d;
104
  }
105
 
106
  .session-drawer .chatbot {
107
- height: calc(100vh - 200px);
108
- overflow-y: auto;
109
  }
110
 
111
  .session-history {
112
- height: 700px;
113
- overflow-y: auto;
114
  }
115
 
116
  .prompt-grid {
117
- display: grid;
118
- grid-template-columns: repeat(3, 1fr);
119
- gap: 20px;
120
- padding: 20px;
121
  }
122
 
123
  .prompt-card {
124
- background: white;
125
- border: 1px solid #eee;
126
- border-radius: 8px;
127
- padding: 15px;
128
- cursor: pointer;
129
- transition: all 0.3s ease;
130
- box-shadow: 0 2px 5px rgba(0,0,0,0.1);
131
- min-height: 300px;
132
  }
133
 
134
  .prompt-card:hover {
135
- transform: translateY(-2px);
136
- box-shadow: 0 4px 10px rgba(0,0,0,0.15);
137
  }
138
 
139
  .card-image {
140
- width: 100%;
141
- height: 200px;
142
- object-fit: cover;
143
- border-radius: 4px;
144
- margin-bottom: 10px;
145
  }
146
 
147
  .card-name {
148
- font-weight: bold;
149
- margin-bottom: 8px;
150
- font-size: 16px;
 
151
  }
152
 
153
  .card-prompt-container {
154
- position: relative;
155
- padding-right: 60px;
156
  }
157
 
158
  .card-prompt {
159
- font-size: 0.9em;
160
- color: #666;
161
- display: -webkit-box;
162
- -webkit-line-clamp: 3;
163
- -webkit-box-orient: vertical;
164
- overflow: hidden;
 
 
 
165
  }
166
 
167
  .copy-btn {
168
- position: absolute;
169
- right: 0;
170
- top: 0;
171
- padding: 4px 8px;
172
- background: #f0f0f0;
173
- border: 1px solid #ddd;
174
- border-radius: 4px;
175
- cursor: pointer;
176
- font-size: 0.9em;
177
- transition: all 0.2s ease;
 
178
  }
179
 
180
  .copy-btn:hover {
181
- background: #e0e0e0;
 
182
  }
183
 
184
  .copy-btn:active {
185
- background: #d0d0d0;
186
  }
187
 
188
  .template-buttons {
189
- margin-top: 10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  }
 
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
+
17
  .left_header {
18
  display: flex;
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
+ }
31
+
32
+ .left_header img {
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 {
 
82
  }
83
 
84
  footer, .footer, div[class*="footer"], #footer {
85
+ display: none !important;
86
  }
87
 
88
  #component-0 textarea,
89
  .gradio-container textarea,
90
  .ant-input-textarea-large textarea {
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 {
107
+ position: sticky;
108
+ top: 1rem;
109
+ right: 0;
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 {
121
+ position: relative;
122
+ min-height: 600px;
123
+ padding-top: 50px;
124
  }
125
 
126
  .html_content {
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 {
174
+ height: calc(100vh - 200px);
175
+ overflow-y: auto;
176
  }
177
 
178
  .session-history {
179
+ height: 700px;
180
+ overflow-y: auto;
181
  }
182
 
183
  .prompt-grid {
184
+ display: grid;
185
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
186
+ gap: 1.5rem;
187
+ padding: 1.5rem;
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 {
206
+ width: 100%;
207
+ height: 200px;
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 {
221
+ position: relative;
222
+ padding-right: 60px;
223
  }
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;
245
+ border-radius: 6px;
246
+ cursor: pointer;
247
+ font-size: 0.9em;
248
+ transition: all 0.2s ease;
249
  }
250
 
251
  .copy-btn:hover {
252
+ background: var(--primary);
253
+ transform: translateY(-1px);
254
  }
255
 
256
  .copy-btn:active {
257
+ transform: translateY(0);
258
  }
259
 
260
  .template-buttons {
261
+ margin-top: 10px;
262
+ }
263
+
264
+ /* Custom scrollbar */
265
+ ::-webkit-scrollbar {
266
+ width: 8px;
267
+ height: 8px;
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;
282
+ }
283
+
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 {
300
+ padding: 1rem;
301
+ }
302
+
303
+ .prompt-grid {
304
+ grid-template-columns: 1fr;
305
+ }
306
+
307
+ .setting-buttons {
308
+ flex-wrap: wrap;
309
+ }
310
+ }
311
+
312
+ /* Animations */
313
+ @keyframes fadeIn {
314
+ from { opacity: 0; transform: translateY(10px); }
315
+ to { opacity: 1; transform: translateY(0); }
316
+ }
317
+
318
+ .fade-in {
319
+ animation: fadeIn 0.5s ease-out;
320
  }