akhaliq HF Staff commited on
Commit
d10841b
·
verified ·
1 Parent(s): 448d765

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +379 -50
style.css CHANGED
@@ -1,76 +1,405 @@
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
+ --assistant-bg: #F5F5F7;
16
+ --user-bg: #007AFF;
17
+ --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
18
+ --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
19
  }
20
 
21
  body {
22
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
23
+ background: var(--background);
24
+ color: var(--text-primary);
25
+ line-height: 1.6;
26
+ overflow: hidden;
27
+ }
28
+
29
+ .container {
30
+ max-width: 1200px;
31
+ margin: 0 auto;
32
+ height: 100vh;
33
+ display: flex;
34
+ flex-direction: column;
35
+ background: var(--surface);
36
+ box-shadow: var(--shadow-lg);
37
+ }
38
+
39
+ header {
40
+ background: rgba(255, 255, 255, 0.8);
41
+ backdrop-filter: blur(20px);
42
+ -webkit-backdrop-filter: blur(20px);
43
+ border-bottom: 1px solid var(--border-color);
44
+ padding: 16px 24px;
45
+ position: sticky;
46
+ top: 0;
47
+ z-index: 100;
48
+ }
49
+
50
+ .header-content {
51
+ display: flex;
52
+ justify-content: space-between;
53
+ align-items: center;
54
+ }
55
+
56
+ .logo {
57
+ display: flex;
58
+ align-items: center;
59
+ gap: 12px;
60
+ color: var(--primary-color);
61
+ }
62
+
63
+ .logo svg {
64
+ color: var(--primary-color);
65
+ }
66
+
67
+ .logo h1 {
68
+ font-size: 20px;
69
+ font-weight: 600;
70
+ color: var(--text-primary);
71
  }
72
 
73
+ .built-with {
74
+ color: var(--text-secondary);
75
+ text-decoration: none;
76
+ font-size: 14px;
77
+ font-weight: 500;
78
+ padding: 8px 16px;
79
+ border-radius: 20px;
80
+ transition: all 0.3s ease;
81
  }
82
 
83
+ .built-with:hover {
84
+ background: var(--background);
85
+ color: var(--primary-color);
86
+ }
87
+
88
+ .chat-container {
89
+ flex: 1;
90
+ display: flex;
91
+ flex-direction: column;
92
+ overflow: hidden;
93
+ position: relative;
94
+ }
95
 
96
+ .loading-screen {
97
+ display: flex;
98
+ align-items: center;
99
+ justify-content: center;
100
+ height: 100%;
101
+ background: var(--surface);
102
+ }
103
 
104
+ .loading-content {
105
+ text-align: center;
106
+ max-width: 400px;
107
+ padding: 40px;
108
+ }
109
+
110
+ .spinner {
111
+ width: 60px;
112
+ height: 60px;
113
+ border: 3px solid var(--border-color);
114
+ border-top-color: var(--primary-color);
115
+ border-radius: 50%;
116
+ animation: spin 1s linear infinite;
117
+ margin: 0 auto 24px;
118
+ }
119
+
120
+ @keyframes spin {
121
+ to { transform: rotate(360deg); }
122
+ }
123
+
124
+ .loading-content h2 {
125
+ font-size: 24px;
126
+ font-weight: 600;
127
+ margin-bottom: 12px;
128
+ color: var(--text-primary);
129
+ }
130
+
131
+ #loading-status {
132
+ color: var(--text-secondary);
133
+ margin-bottom: 24px;
134
+ font-size: 15px;
135
+ }
136
 
137
+ .progress-bar {
138
+ width: 100%;
139
+ height: 4px;
140
+ background: var(--border-color);
141
+ border-radius: 2px;
142
+ overflow: hidden;
143
+ margin-bottom: 16px;
144
  }
145
 
146
+ .progress-fill {
147
+ height: 100%;
148
+ background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
149
+ border-radius: 2px;
150
+ transition: width 0.3s ease;
151
+ width: 0%;
152
  }
153
 
154
+ .loading-info {
155
+ color: var(--text-secondary);
156
+ font-size: 13px;
157
  }
158
 
159
+ .chat-area {
160
+ flex: 1;
161
+ display: flex;
162
+ flex-direction: column;
163
+ overflow: hidden;
164
  }
165
 
166
+ .messages {
167
+ flex: 1;
168
+ overflow-y: auto;
169
+ padding: 24px;
170
+ scroll-behavior: smooth;
171
  }
172
 
173
+ .messages::-webkit-scrollbar {
174
+ width: 8px;
 
 
175
  }
176
 
177
+ .messages::-webkit-scrollbar-track {
178
+ background: transparent;
179
+ }
180
+
181
+ .messages::-webkit-scrollbar-thumb {
182
+ background: var(--border-color);
183
+ border-radius: 4px;
184
+ }
185
+
186
+ .messages::-webkit-scrollbar-thumb:hover {
187
+ background: var(--text-secondary);
188
+ }
189
+
190
+ .message {
191
+ display: flex;
192
+ gap: 12px;
193
+ margin-bottom: 24px;
194
+ animation: fadeIn 0.3s ease;
195
+ }
196
+
197
+ @keyframes fadeIn {
198
+ from {
199
+ opacity: 0;
200
+ transform: translateY(10px);
201
+ }
202
+ to {
203
+ opacity: 1;
204
+ transform: translateY(0);
205
+ }
206
+ }
207
+
208
+ .message-avatar {
209
+ width: 32px;
210
+ height: 32px;
211
+ border-radius: 50%;
212
+ display: flex;
213
+ align-items: center;
214
+ justify-content: center;
215
+ flex-shrink: 0;
216
+ }
217
+
218
+ .assistant-avatar {
219
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
220
+ color: white;
221
+ }
222
+
223
+ .user-avatar {
224
+ background: var(--text-secondary);
225
+ color: white;
226
+ font-weight: 600;
227
+ font-size: 14px;
228
+ }
229
+
230
+ .message-content {
231
+ flex: 1;
232
+ max-width: 70%;
233
+ }
234
+
235
+ .message-header {
236
+ font-size: 13px;
237
+ font-weight: 600;
238
+ margin-bottom: 4px;
239
+ color: var(--text-secondary);
240
+ }
241
+
242
+ .message-text {
243
+ background: var(--assistant-bg);
244
+ padding: 12px 16px;
245
+ border-radius: 16px;
246
+ font-size: 15px;
247
+ line-height: 1.5;
248
+ white-space: pre-wrap;
249
+ word-wrap: break-word;
250
+ }
251
+
252
+ .user-message {
253
+ flex-direction: row-reverse;
254
+ }
255
+
256
+ .user-message .message-content {
257
+ display: flex;
258
+ flex-direction: column;
259
+ align-items: flex-end;
260
+ }
261
+
262
+ .user-message .message-text {
263
+ background: var(--user-bg);
264
+ color: white;
265
+ }
266
+
267
+ .typing-indicator {
268
+ display: flex;
269
+ gap: 4px;
270
+ padding: 12px 16px;
271
+ }
272
+
273
+ .typing-dot {
274
+ width: 8px;
275
+ height: 8px;
276
+ border-radius: 50%;
277
+ background: var(--text-secondary);
278
+ animation: typing 1.4s infinite;
279
+ }
280
+
281
+ .typing-dot:nth-child(2) {
282
+ animation-delay: 0.2s;
283
+ }
284
+
285
+ .typing-dot:nth-child(3) {
286
+ animation-delay: 0.4s;
287
+ }
288
+
289
+ @keyframes typing {
290
+ 0%, 60%, 100% {
291
+ transform: translateY(0);
292
+ opacity: 0.5;
293
+ }
294
+ 30% {
295
+ transform: translateY(-10px);
296
+ opacity: 1;
297
+ }
298
+ }
299
+
300
+ .input-area {
301
+ padding: 16px 24px 24px;
302
+ background: var(--surface);
303
+ border-top: 1px solid var(--border-color);
304
+ }
305
+
306
+ .input-container {
307
+ display: flex;
308
+ gap: 12px;
309
+ align-items: flex-end;
310
+ background: var(--background);
311
+ border-radius: 20px;
312
+ padding: 8px 12px;
313
+ border: 2px solid transparent;
314
+ transition: all 0.3s ease;
315
+ }
316
+
317
+ .input-container:focus-within {
318
+ border-color: var(--primary-color);
319
+ background: var(--surface);
320
+ }
321
+
322
+ #user-input {
323
+ flex: 1;
324
+ border: none;
325
+ background: transparent;
326
+ resize: none;
327
+ font-size: 15px;
328
+ font-family: inherit;
329
+ color: var(--text-primary);
330
+ outline: none;
331
+ max-height: 120px;
332
+ padding: 8px;
333
+ }
334
+
335
+ #user-input::placeholder {
336
+ color: var(--text-secondary);
337
+ }
338
+
339
+ .send-button {
340
+ width: 36px;
341
+ height: 36px;
342
+ border-radius: 50%;
343
+ border: none;
344
+ background: var(--primary-color);
345
+ color: white;
346
+ cursor: pointer;
347
+ display: flex;
348
+ align-items: center;
349
+ justify-content: center;
350
+ transition: all 0.3s ease;
351
+ flex-shrink: 0;
352
+ }
353
+
354
+ .send-button:hover:not(:disabled) {
355
+ background: var(--secondary-color);
356
+ transform: scale(1.05);
357
+ }
358
+
359
+ .send-button:active:not(:disabled) {
360
+ transform: scale(0.95);
361
+ }
362
+
363
+ .send-button:disabled {
364
+ opacity: 0.5;
365
+ cursor: not-allowed;
366
+ }
367
+
368
+ .input-footer {
369
+ display: flex;
370
+ justify-content: space-between;
371
+ align-items: center;
372
+ margin-top: 8px;
373
+ padding: 0 8px;
374
+ }
375
+
376
+ .model-info {
377
+ font-size: 12px;
378
+ color: var(--text-secondary);
379
+ }
380
+
381
+ @media (max-width: 768px) {
382
+ .container {
383
+ max-width: 100%;
384
+ }
385
+
386
+ header {
387
+ padding: 12px 16px;
388
+ }
389
+
390
+ .logo h1 {
391
+ font-size: 18px;
392
+ }
393
+
394
+ .messages {
395
+ padding: 16px;
396
+ }
397
+
398
+ .message-content {
399
+ max-width: 85%;
400
+ }
401
+
402
+ .input-area {
403
+ padding: 12px 16px 16px;
404
+ }
405
  }