akhaliq HF Staff commited on
Commit
dcb77a3
·
verified ·
1 Parent(s): 0e33773

Upload style.css with huggingface_hub

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