FYRGPT commited on
Commit
ff86a29
·
verified ·
1 Parent(s): c6977f3

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +536 -18
style.css CHANGED
@@ -1,28 +1,546 @@
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
 
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
 
 
 
 
 
 
 
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
  body {
6
+ margin: 0;
7
+ font-family: Arial, Helvetica, sans-serif;
8
+ background: #f5f6fa;
9
+ color: #111827;
10
+ }
11
+
12
+ button,
13
+ textarea {
14
+ font: inherit;
15
+ }
16
+
17
+ .app {
18
+ height: 100vh;
19
+ display: flex;
20
+ }
21
+
22
+ /* MODEL PICKER */
23
+
24
+ .model-picker {
25
+ position: fixed;
26
+ inset: 0;
27
+ z-index: 9999;
28
+
29
+ background: rgba(15, 23, 42, 0.97);
30
+
31
+ display: flex;
32
+ justify-content: center;
33
+ align-items: center;
34
+
35
+ padding: 20px;
36
+ }
37
+
38
+ .model-window {
39
+ width: min(900px, 100%);
40
+ max-height: 94vh;
41
+
42
+ overflow-y: auto;
43
+
44
+ background: white;
45
+
46
+ border-radius: 24px;
47
+
48
+ padding: 30px;
49
+ }
50
+
51
+ .model-window > h1,
52
+ .model-window > p {
53
+ text-align: center;
54
+ }
55
+
56
+ .model-window > p {
57
+ color: #6b7280;
58
+ }
59
+
60
+ .model-grid {
61
+ display: grid;
62
+
63
+ grid-template-columns: 1fr 1fr;
64
+
65
+ gap: 16px;
66
+
67
+ margin-top: 25px;
68
+ }
69
+
70
+ .model-card {
71
+ position: relative;
72
+
73
+ border: 2px solid #e5e7eb;
74
+
75
+ border-radius: 18px;
76
+
77
+ padding: 22px;
78
+ }
79
+
80
+ .model-card.recommended {
81
+ border-color: #6366f1;
82
+
83
+ background: #f7f7ff;
84
+ }
85
+
86
+ .badge {
87
+ position: absolute;
88
+
89
+ top: -12px;
90
+ right: 16px;
91
+
92
+ background: #6366f1;
93
+
94
+ color: white;
95
+
96
+ padding: 6px 10px;
97
+
98
+ border-radius: 999px;
99
+
100
+ font-size: 10px;
101
+
102
+ font-weight: bold;
103
+ }
104
+
105
+ .model-icon {
106
+ font-size: 36px;
107
+ }
108
+
109
+ .model-card h2 {
110
+ margin-bottom: 5px;
111
+ }
112
+
113
+ .tag {
114
+ display: inline-block;
115
+
116
+ background: #eef2ff;
117
+
118
+ color: #4338ca;
119
+
120
+ padding: 5px 9px;
121
+
122
+ border-radius: 999px;
123
+
124
+ font-size: 11px;
125
+
126
+ font-weight: bold;
127
+ }
128
+
129
+ .model-details {
130
+ margin: 18px 0;
131
+
132
+ line-height: 1.7;
133
+
134
+ font-size: 14px;
135
+
136
+ color: #374151;
137
  }
138
 
139
+ .model-button {
140
+ width: 100%;
141
+
142
+ border: 0;
143
+
144
+ border-radius: 12px;
145
+
146
+ padding: 13px;
147
+
148
+ cursor: pointer;
149
+
150
+ background: #374151;
151
+
152
+ color: white;
153
+
154
+ font-weight: bold;
155
  }
156
 
157
+ .model-button.qwen {
158
+ background: #6366f1;
 
 
 
159
  }
160
 
161
+ .free-note {
162
+ margin-top: 25px;
163
+
164
+ text-align: center;
165
+
166
+ color: #6b7280;
167
+
168
+ font-size: 13px;
169
  }
170
 
171
+ /* SIDEBAR */
172
+
173
+ .sidebar {
174
+ width: 250px;
175
+
176
+ background: #111827;
177
+
178
+ color: white;
179
+
180
+ padding: 18px;
181
+
182
+ overflow-y: auto;
183
  }
184
+
185
+ .brand {
186
+ font-size: 21px;
187
+
188
+ font-weight: bold;
189
+
190
+ margin-bottom: 16px;
191
+ }
192
+
193
+ .sidebar-title {
194
+ font-size: 11px;
195
+
196
+ text-transform: uppercase;
197
+
198
+ color: #9ca3af;
199
+
200
+ margin-top: 20px;
201
+
202
+ margin-bottom: 6px;
203
+ }
204
+
205
+ .sidebar button {
206
+ width: 100%;
207
+
208
+ padding: 10px;
209
+
210
+ margin: 3px 0;
211
+
212
+ border: 0;
213
+
214
+ border-radius: 9px;
215
+
216
+ cursor: pointer;
217
+
218
+ text-align: left;
219
+ }
220
+
221
+ .new-chat {
222
+ background: #4f46e5;
223
+
224
+ color: white;
225
+
226
+ font-weight: bold;
227
+ }
228
+
229
+ .change-model {
230
+ background: #263244;
231
+
232
+ color: white;
233
+
234
+ font-weight: bold;
235
+ }
236
+
237
+ .option {
238
+ background: transparent;
239
+
240
+ color: #d1d5db;
241
+ }
242
+
243
+ .option:hover {
244
+ background: #1f2937;
245
+ }
246
+
247
+ .option.active {
248
+ background: #312e81;
249
+
250
+ color: white;
251
+ }
252
+
253
+ /* MAIN */
254
+
255
+ .main {
256
+ flex: 1;
257
+
258
+ min-width: 0;
259
+
260
+ display: flex;
261
+
262
+ flex-direction: column;
263
+ }
264
+
265
+ .topbar {
266
+ height: 70px;
267
+
268
+ background: white;
269
+
270
+ border-bottom: 1px solid #e5e7eb;
271
+
272
+ padding: 0 25px;
273
+
274
+ display: flex;
275
+
276
+ align-items: center;
277
+
278
+ justify-content: space-between;
279
+ }
280
+
281
+ .topbar h2 {
282
+ margin: 0;
283
+
284
+ font-size: 18px;
285
+ }
286
+
287
+ .topbar small {
288
+ color: #6b7280;
289
+ }
290
+
291
+ .status {
292
+ font-size: 12px;
293
+
294
+ color: #6366f1;
295
+
296
+ text-align: right;
297
+ }
298
+
299
+ /* CHAT */
300
+
301
+ .chat {
302
+ flex: 1;
303
+
304
+ overflow-y: auto;
305
+
306
+ padding: 30px max(
307
+ 20px,
308
+ calc((100% - 850px) / 2)
309
+ );
310
+ }
311
+
312
+ .welcome {
313
+ max-width: 700px;
314
+
315
+ margin: 10vh auto;
316
+
317
+ text-align: center;
318
+ }
319
+
320
+ .logo {
321
+ width: 70px;
322
+
323
+ height: 70px;
324
+
325
+ margin: auto;
326
+
327
+ display: grid;
328
+
329
+ place-items: center;
330
+
331
+ background: linear-gradient(
332
+ 135deg,
333
+ #6366f1,
334
+ #8b5cf6
335
+ );
336
+
337
+ border-radius: 20px;
338
+
339
+ color: white;
340
+
341
+ font-size: 30px;
342
+
343
+ font-weight: bold;
344
+ }
345
+
346
+ .welcome p {
347
+ color: #6b7280;
348
+ }
349
+
350
+ .examples {
351
+ display: grid;
352
+
353
+ grid-template-columns: 1fr 1fr;
354
+
355
+ gap: 10px;
356
+
357
+ margin-top: 25px;
358
+ }
359
+
360
+ .example {
361
+ padding: 15px;
362
+
363
+ border: 1px solid #e5e7eb;
364
+
365
+ background: white;
366
+
367
+ border-radius: 13px;
368
+
369
+ cursor: pointer;
370
+
371
+ text-align: left;
372
+ }
373
+
374
+ .example:hover {
375
+ border-color: #6366f1;
376
+ }
377
+
378
+ .message-row {
379
+ display: flex;
380
+
381
+ margin: 14px 0;
382
+ }
383
+
384
+ .message-row.user {
385
+ justify-content: flex-end;
386
+ }
387
+
388
+ .bubble {
389
+ max-width: 82%;
390
+
391
+ padding: 14px 16px;
392
+
393
+ border-radius: 16px;
394
+
395
+ line-height: 1.55;
396
+
397
+ white-space: pre-wrap;
398
+
399
+ overflow-wrap: anywhere;
400
+ }
401
+
402
+ .bubble.user {
403
+ background: #6366f1;
404
+
405
+ color: white;
406
+ }
407
+
408
+ .bubble.ai {
409
+ background: white;
410
+
411
+ border: 1px solid #e5e7eb;
412
+ }
413
+
414
+ /* INPUT */
415
+
416
+ .input-area {
417
+ padding: 10px 20px 18px;
418
+ }
419
+
420
+ .input-box {
421
+ max-width: 850px;
422
+
423
+ margin: auto;
424
+
425
+ display: flex;
426
+
427
+ gap: 8px;
428
+
429
+ align-items: flex-end;
430
+
431
+ background: white;
432
+
433
+ border: 1px solid #e5e7eb;
434
+
435
+ border-radius: 17px;
436
+
437
+ padding: 10px;
438
+ }
439
+
440
+ textarea {
441
+ flex: 1;
442
+
443
+ min-height: 42px;
444
+
445
+ max-height: 150px;
446
+
447
+ resize: none;
448
+
449
+ border: 0;
450
+
451
+ outline: 0;
452
+
453
+ padding: 9px;
454
+ }
455
+
456
+ #send {
457
+ width: 44px;
458
+
459
+ height: 44px;
460
+
461
+ border: 0;
462
+
463
+ border-radius: 11px;
464
+
465
+ background: #6366f1;
466
+
467
+ color: white;
468
+
469
+ cursor: pointer;
470
+ }
471
+
472
+ #send:disabled {
473
+ opacity: 0.5;
474
+ }
475
+
476
+ .progress,
477
+ .warning,
478
+ .error {
479
+ max-width: 850px;
480
+
481
+ margin: 7px auto 0;
482
+
483
+ text-align: center;
484
+
485
+ font-size: 11px;
486
+ }
487
+
488
+ .progress,
489
+ .warning {
490
+ color: #6b7280;
491
+ }
492
+
493
+ .error {
494
+ color: #dc2626;
495
+
496
+ white-space: pre-wrap;
497
+ }
498
+
499
+ /* MOBILE */
500
+
501
+ @media (max-width: 760px) {
502
+
503
+ .model-grid {
504
+ grid-template-columns: 1fr;
505
+ }
506
+
507
+ .sidebar {
508
+ width: 82px;
509
+
510
+ padding: 10px 7px;
511
+ }
512
+
513
+ .brand {
514
+ font-size: 0;
515
+
516
+ text-align: center;
517
+ }
518
+
519
+ .brand::after {
520
+ content: "📚";
521
+
522
+ font-size: 25px;
523
+ }
524
+
525
+ .sidebar-title {
526
+ display: none;
527
+ }
528
+
529
+ .sidebar button {
530
+ font-size: 0;
531
+
532
+ text-align: center;
533
+ }
534
+
535
+ .sidebar button::first-letter {
536
+ font-size: 20px;
537
+ }
538
+
539
+ .examples {
540
+ grid-template-columns: 1fr;
541
+ }
542
+
543
+ .bubble {
544
+ max-width: 93%;
545
+ }
546
+ }