akhaliq HF Staff commited on
Commit
8adba6b
·
verified ·
1 Parent(s): c480f99

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +421 -50
style.css CHANGED
@@ -1,76 +1,447 @@
1
  * {
2
- box-sizing: border-box;
3
- padding: 0;
4
- margin: 0;
5
- font-family: sans-serif;
6
  }
7
 
8
- html,
9
- body {
10
- height: 100%;
 
 
 
 
 
 
 
 
 
11
  }
12
 
13
  body {
14
- padding: 32px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  }
16
 
17
- body,
18
- #container {
19
- display: flex;
20
- flex-direction: column;
21
- justify-content: center;
22
- align-items: center;
23
  }
24
 
25
- #container {
26
- position: relative;
27
- gap: 0.4rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
- width: 640px;
30
- height: 640px;
31
- max-width: 100%;
32
- max-height: 100%;
 
 
 
 
33
 
34
- border: 2px dashed #D1D5DB;
35
- border-radius: 0.75rem;
36
- overflow: hidden;
37
- cursor: pointer;
38
- margin: 1rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
- background-size: 100% 100%;
41
- background-position: center;
42
- background-repeat: no-repeat;
43
- font-size: 18px;
44
  }
45
 
46
- #upload {
47
- display: none;
 
 
 
 
 
 
 
48
  }
49
 
50
- svg {
51
- pointer-events: none;
52
  }
53
 
54
- #example {
55
- font-size: 14px;
56
- text-decoration: underline;
57
- cursor: pointer;
58
  }
59
 
60
- #example:hover {
61
- color: #2563EB;
 
 
 
 
62
  }
63
 
64
- .bounding-box {
65
- position: absolute;
66
- box-sizing: border-box;
67
- border: solid 2px;
68
  }
69
 
70
- .bounding-box-label {
71
- color: white;
72
- position: absolute;
73
- font-size: 12px;
74
- margin: -16px 0 0 -2px;
75
- padding: 1px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
 
1
  * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
 
5
  }
6
 
7
+ :root {
8
+ --primary-color: #007AFF;
9
+ --secondary-color: #5856D6;
10
+ --background: #F5F5F7;
11
+ --surface: #FFFFFF;
12
+ --text-primary: #1D1D1F;
13
+ --text-secondary: #86868B;
14
+ --border-color: #D2D2D7;
15
+ --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
16
+ --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
17
+ --radius: 18px;
18
+ --radius-small: 12px;
19
  }
20
 
21
  body {
22
+ font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
23
+ background: var(--background);
24
+ color: var(--text-primary);
25
+ line-height: 1.6;
26
+ -webkit-font-smoothing: antialiased;
27
+ -moz-osx-font-smoothing: grayscale;
28
+ }
29
+
30
+ .container {
31
+ max-width: 900px;
32
+ margin: 0 auto;
33
+ padding: 20px;
34
+ min-height: 100vh;
35
+ display: flex;
36
+ flex-direction: column;
37
+ }
38
+
39
+ /* Header */
40
+ .header {
41
+ text-align: center;
42
+ padding: 40px 20px 30px;
43
+ display: flex;
44
+ flex-direction: column;
45
+ align-items: center;
46
+ gap: 15px;
47
+ }
48
+
49
+ .header-content {
50
+ display: flex;
51
+ flex-direction: column;
52
+ gap: 8px;
53
+ }
54
+
55
+ .title {
56
+ font-size: 48px;
57
+ font-weight: 700;
58
+ letter-spacing: -0.5px;
59
+ }
60
+
61
+ .gradient-text {
62
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
63
+ -webkit-background-clip: text;
64
+ -webkit-text-fill-color: transparent;
65
+ background-clip: text;
66
+ }
67
+
68
+ .subtitle {
69
+ font-size: 16px;
70
+ color: var(--text-secondary);
71
+ font-weight: 400;
72
+ }
73
+
74
+ .built-with {
75
+ display: inline-flex;
76
+ align-items: center;
77
+ gap: 6px;
78
+ padding: 8px 16px;
79
+ background: rgba(0, 122, 255, 0.1);
80
+ color: var(--primary-color);
81
+ text-decoration: none;
82
+ border-radius: 20px;
83
+ font-size: 14px;
84
+ font-weight: 500;
85
+ transition: all 0.3s ease;
86
+ }
87
+
88
+ .built-with:hover {
89
+ background: rgba(0, 122, 255, 0.15);
90
+ transform: translateY(-2px);
91
+ }
92
+
93
+ /* Model Status */
94
+ .model-status {
95
+ background: var(--surface);
96
+ border-radius: var(--radius);
97
+ padding: 20px;
98
+ margin-bottom: 20px;
99
+ box-shadow: var(--shadow);
100
+ }
101
+
102
+ .status-content {
103
+ display: flex;
104
+ align-items: center;
105
+ gap: 12px;
106
+ margin-bottom: 12px;
107
+ }
108
+
109
+ .loader {
110
+ width: 20px;
111
+ height: 20px;
112
+ border: 3px solid var(--border-color);
113
+ border-top-color: var(--primary-color);
114
+ border-radius: 50%;
115
+ animation: spin 1s linear infinite;
116
+ }
117
+
118
+ @keyframes spin {
119
+ to { transform: rotate(360deg); }
120
+ }
121
+
122
+ .model-status.ready .loader {
123
+ display: none;
124
+ }
125
+
126
+ .model-status.ready .status-content::before {
127
+ content: "✓";
128
+ width: 20px;
129
+ height: 20px;
130
+ background: #34C759;
131
+ color: white;
132
+ border-radius: 50%;
133
+ display: flex;
134
+ align-items: center;
135
+ justify-content: center;
136
+ font-size: 14px;
137
+ font-weight: 700;
138
  }
139
 
140
+ #statusText {
141
+ font-size: 14px;
142
+ font-weight: 500;
143
+ color: var(--text-primary);
 
 
144
  }
145
 
146
+ .progress-bar {
147
+ width: 100%;
148
+ height: 4px;
149
+ background: var(--border-color);
150
+ border-radius: 2px;
151
+ overflow: hidden;
152
+ }
153
+
154
+ .progress-fill {
155
+ height: 100%;
156
+ background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
157
+ width: 0%;
158
+ transition: width 0.3s ease;
159
+ }
160
+
161
+ .model-status.ready .progress-bar {
162
+ display: none;
163
+ }
164
+
165
+ /* Chat Container */
166
+ .chat-container {
167
+ flex: 1;
168
+ background: var(--surface);
169
+ border-radius: var(--radius);
170
+ box-shadow: var(--shadow);
171
+ display: flex;
172
+ flex-direction: column;
173
+ overflow: hidden;
174
+ }
175
 
176
+ .chat-messages {
177
+ flex: 1;
178
+ overflow-y: auto;
179
+ padding: 30px;
180
+ display: flex;
181
+ flex-direction: column;
182
+ gap: 20px;
183
+ }
184
 
185
+ .chat-messages::-webkit-scrollbar {
186
+ width: 8px;
187
+ }
188
+
189
+ .chat-messages::-webkit-scrollbar-track {
190
+ background: transparent;
191
+ }
192
+
193
+ .chat-messages::-webkit-scrollbar-thumb {
194
+ background: var(--border-color);
195
+ border-radius: 4px;
196
+ }
197
+
198
+ .chat-messages::-webkit-scrollbar-thumb:hover {
199
+ background: var(--text-secondary);
200
+ }
201
+
202
+ /* Welcome Message */
203
+ .welcome-message {
204
+ text-align: center;
205
+ padding: 60px 20px;
206
+ color: var(--text-secondary);
207
+ }
208
+
209
+ .welcome-icon {
210
+ font-size: 64px;
211
+ margin-bottom: 20px;
212
+ }
213
+
214
+ .welcome-message h2 {
215
+ font-size: 28px;
216
+ font-weight: 600;
217
+ color: var(--text-primary);
218
+ margin-bottom: 12px;
219
+ }
220
+
221
+ .welcome-message p {
222
+ font-size: 16px;
223
+ max-width: 400px;
224
+ margin: 0 auto;
225
+ }
226
+
227
+ /* Message Bubbles */
228
+ .message {
229
+ display: flex;
230
+ gap: 12px;
231
+ animation: slideIn 0.3s ease;
232
+ }
233
+
234
+ @keyframes slideIn {
235
+ from {
236
+ opacity: 0;
237
+ transform: translateY(10px);
238
+ }
239
+ to {
240
+ opacity: 1;
241
+ transform: translateY(0);
242
+ }
243
+ }
244
 
245
+ .message.user {
246
+ flex-direction: row-reverse;
 
 
247
  }
248
 
249
+ .message-avatar {
250
+ width: 36px;
251
+ height: 36px;
252
+ border-radius: 50%;
253
+ display: flex;
254
+ align-items: center;
255
+ justify-content: center;
256
+ font-size: 18px;
257
+ flex-shrink: 0;
258
  }
259
 
260
+ .message.user .message-avatar {
261
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
262
  }
263
 
264
+ .message.assistant .message-avatar {
265
+ background: var(--border-color);
 
 
266
  }
267
 
268
+ .message-content {
269
+ max-width: 70%;
270
+ padding: 14px 18px;
271
+ border-radius: var(--radius-small);
272
+ font-size: 15px;
273
+ line-height: 1.5;
274
  }
275
 
276
+ .message.user .message-content {
277
+ background: var(--primary-color);
278
+ color: white;
279
+ border-bottom-right-radius: 4px;
280
  }
281
 
282
+ .message.assistant .message-content {
283
+ background: var(--background);
284
+ color: var(--text-primary);
285
+ border-bottom-left-radius: 4px;
286
+ }
287
+
288
+ .message-content p {
289
+ margin: 0 0 8px 0;
290
+ }
291
+
292
+ .message-content p:last-child {
293
+ margin-bottom: 0;
294
+ }
295
+
296
+ .message-content code {
297
+ background: rgba(0, 0, 0, 0.1);
298
+ padding: 2px 6px;
299
+ border-radius: 4px;
300
+ font-family: 'SF Mono', Monaco, monospace;
301
+ font-size: 13px;
302
+ }
303
+
304
+ .message.user .message-content code {
305
+ background: rgba(255, 255, 255, 0.2);
306
+ }
307
+
308
+ .typing-indicator {
309
+ display: flex;
310
+ gap: 4px;
311
+ padding: 14px 18px;
312
+ }
313
+
314
+ .typing-dot {
315
+ width: 8px;
316
+ height: 8px;
317
+ background: var(--text-secondary);
318
+ border-radius: 50%;
319
+ animation: typing 1.4s infinite;
320
+ }
321
+
322
+ .typing-dot:nth-child(2) {
323
+ animation-delay: 0.2s;
324
+ }
325
+
326
+ .typing-dot:nth-child(3) {
327
+ animation-delay: 0.4s;
328
+ }
329
+
330
+ @keyframes typing {
331
+ 0%, 60%, 100% {
332
+ transform: translateY(0);
333
+ opacity: 0.7;
334
+ }
335
+ 30% {
336
+ transform: translateY(-10px);
337
+ opacity: 1;
338
+ }
339
+ }
340
+
341
+ /* Input Area */
342
+ .input-container {
343
+ padding: 20px;
344
+ border-top: 1px solid var(--border-color);
345
+ background: var(--surface);
346
+ }
347
+
348
+ .input-wrapper {
349
+ display: flex;
350
+ gap: 12px;
351
+ align-items: flex-end;
352
+ }
353
+
354
+ .user-input {
355
+ flex: 1;
356
+ padding: 14px 18px;
357
+ border: 2px solid var(--border-color);
358
+ border-radius: var(--radius-small);
359
+ font-size: 15px;
360
+ font-family: inherit;
361
+ resize: none;
362
+ max-height: 120px;
363
+ transition: all 0.3s ease;
364
+ background: var(--background);
365
+ }
366
+
367
+ .user-input:focus {
368
+ outline: none;
369
+ border-color: var(--primary-color);
370
+ background: var(--surface);
371
+ }
372
+
373
+ .user-input:disabled {
374
+ opacity: 0.5;
375
+ cursor: not-allowed;
376
+ }
377
+
378
+ .send-button {
379
+ width: 48px;
380
+ height: 48px;
381
+ border: none;
382
+ border-radius: 50%;
383
+ background: var(--primary-color);
384
+ color: white;
385
+ cursor: pointer;
386
+ display: flex;
387
+ align-items: center;
388
+ justify-content: center;
389
+ transition: all 0.3s ease;
390
+ flex-shrink: 0;
391
+ }
392
+
393
+ .send-button:hover:not(:disabled) {
394
+ background: var(--secondary-color);
395
+ transform: scale(1.05);
396
+ }
397
+
398
+ .send-button:active:not(:disabled) {
399
+ transform: scale(0.95);
400
+ }
401
+
402
+ .send-button:disabled {
403
+ opacity: 0.5;
404
+ cursor: not-allowed;
405
+ }
406
+
407
+ .input-hint {
408
+ margin-top: 8px;
409
+ font-size: 12px;
410
+ color: var(--text-secondary);
411
+ text-align: center;
412
+ }
413
+
414
+ /* Responsive */
415
+ @media (max-width: 768px) {
416
+ .container {
417
+ padding: 10px;
418
+ }
419
+
420
+ .header {
421
+ padding: 20px 10px 15px;
422
+ }
423
+
424
+ .title {
425
+ font-size: 36px;
426
+ }
427
+
428
+ .chat-messages {
429
+ padding: 20px 15px;
430
+ }
431
+
432
+ .message-content {
433
+ max-width: 85%;
434
+ }
435
+
436
+ .welcome-message {
437
+ padding: 40px 15px;
438
+ }
439
+
440
+ .welcome-icon {
441
+ font-size: 48px;
442
+ }
443
+
444
+ .welcome-message h2 {
445
+ font-size: 24px;
446
+ }
447
  }