Update frontend/src/App.css
Browse files- frontend/src/App.css +212 -144
frontend/src/App.css
CHANGED
@@ -9,6 +9,31 @@
|
|
9 |
background-repeat: no-repeat;
|
10 |
background-attachment: fixed;
|
11 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
.body{
|
13 |
background-image: url('../public/blurBackground.png');
|
14 |
background-size: cover;
|
@@ -18,41 +43,11 @@
|
|
18 |
}
|
19 |
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
display: flex;
|
25 |
-
justify-content: center;
|
26 |
-
margin: 15px 0;
|
27 |
-
padding: 10px;
|
28 |
-
background-color: rgba(255, 193, 7, 0.1);
|
29 |
-
border-radius: 8px;
|
30 |
}
|
31 |
|
32 |
-
.new-conversation-button {
|
33 |
-
background-color: #4D59FB;
|
34 |
-
color: white;
|
35 |
-
border: none;
|
36 |
-
border-radius: 20px;
|
37 |
-
padding: 10px 20px;
|
38 |
-
font-size: 14px;
|
39 |
-
font-weight: 500;
|
40 |
-
cursor: pointer;
|
41 |
-
transition: background-color 0.2s;
|
42 |
-
display: flex;
|
43 |
-
align-items: center;
|
44 |
-
gap: 8px;
|
45 |
-
}
|
46 |
-
|
47 |
-
.new-conversation-button:hover {
|
48 |
-
background-color: #3A46E8;
|
49 |
-
}
|
50 |
-
|
51 |
-
.new-conversation-button::before {
|
52 |
-
content: "+";
|
53 |
-
font-size: 18px;
|
54 |
-
font-weight: bold;
|
55 |
-
}
|
56 |
/* À ajouter dans votre fichier CSS */
|
57 |
.user-info {
|
58 |
display: flex;
|
@@ -107,6 +102,184 @@
|
|
107 |
transition: margin-left 0.3s ease;
|
108 |
|
109 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
.streaming-message {
|
112 |
position: relative;
|
@@ -144,6 +317,7 @@
|
|
144 |
|
145 |
.message.bot .message-content {
|
146 |
display: block !important;
|
|
|
147 |
width: 100% !important;
|
148 |
}
|
149 |
|
@@ -196,42 +370,6 @@
|
|
196 |
height: 20px;
|
197 |
fill: #ffffff;
|
198 |
}
|
199 |
-
|
200 |
-
.message-content h1, .message-content h2, .message-content h3 {
|
201 |
-
font-weight: bold;
|
202 |
-
margin: 0.8em 0 0.2em 0;
|
203 |
-
}
|
204 |
-
|
205 |
-
.message-content h1 {
|
206 |
-
font-size: 1.5em;
|
207 |
-
}
|
208 |
-
|
209 |
-
.message-content h2 {
|
210 |
-
font-size: 1.3em;
|
211 |
-
}
|
212 |
-
|
213 |
-
.message-content h3 {
|
214 |
-
font-size: 1.1em;
|
215 |
-
}
|
216 |
-
|
217 |
-
.message-content ul, .message-content ol {
|
218 |
-
padding-left: 20px;
|
219 |
-
margin: 0.5em 0;
|
220 |
-
}
|
221 |
-
|
222 |
-
.message-content code {
|
223 |
-
background-color: rgba(0, 0, 0, 0.1);
|
224 |
-
padding: 0.1em 0.2em;
|
225 |
-
border-radius: 3px;
|
226 |
-
font-family: monospace;
|
227 |
-
}
|
228 |
-
|
229 |
-
.message-content blockquote {
|
230 |
-
border-left: 3px solid #ccc;
|
231 |
-
margin-left: 5px;
|
232 |
-
padding-left: 10px;
|
233 |
-
color: #777;
|
234 |
-
}
|
235 |
/* ----- Header du chat ----- */
|
236 |
.chat-header {
|
237 |
display: flex;
|
@@ -375,41 +513,10 @@
|
|
375 |
line-height: 1.5;
|
376 |
border-bottom-left-radius: 4px;
|
377 |
}
|
378 |
-
/* token limit */
|
379 |
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
justify-content: center;
|
384 |
-
margin: 15px 0;
|
385 |
-
padding: 10px;
|
386 |
-
background-color: rgba(255, 193, 7, 0.1);
|
387 |
-
border-radius: 8px;
|
388 |
-
}
|
389 |
-
|
390 |
-
.new-conversation-button {
|
391 |
-
background-color: #4D59FB;
|
392 |
-
color: white;
|
393 |
-
border: none;
|
394 |
-
border-radius: 20px;
|
395 |
-
padding: 10px 20px;
|
396 |
-
font-size: 14px;
|
397 |
-
font-weight: 500;
|
398 |
-
cursor: pointer;
|
399 |
-
transition: background-color 0.2s;
|
400 |
-
display: flex;
|
401 |
-
align-items: center;
|
402 |
-
gap: 8px;
|
403 |
-
}
|
404 |
-
|
405 |
-
.new-conversation-button:hover {
|
406 |
-
background-color: #3A46E8;
|
407 |
-
}
|
408 |
-
|
409 |
-
.new-conversation-button::before {
|
410 |
-
content: "+";
|
411 |
-
font-size: 18px;
|
412 |
-
font-weight: bold;
|
413 |
}
|
414 |
|
415 |
/* ----- Animation pour l'apparition ----- */
|
@@ -417,10 +524,7 @@
|
|
417 |
from { opacity: 0; transform: translateY(5px); }
|
418 |
to { opacity: 1; transform: translateY(0); }
|
419 |
}
|
420 |
-
|
421 |
-
display: inline-block !important;
|
422 |
-
width: auto !important;
|
423 |
-
}
|
424 |
/* ----- Indicateur de chargement ----- */
|
425 |
.loading {
|
426 |
display: flex !important;
|
@@ -454,41 +558,6 @@
|
|
454 |
}
|
455 |
|
456 |
|
457 |
-
@keyframes loading-dots {
|
458 |
-
0%, 80%, 100% { transform: scale(0); }
|
459 |
-
40% { transform: scale(1); }
|
460 |
-
}.loading {
|
461 |
-
display: flex !important;
|
462 |
-
align-items: center;
|
463 |
-
justify-content: center;
|
464 |
-
}
|
465 |
-
|
466 |
-
.loading span {
|
467 |
-
display: inline-block !important;
|
468 |
-
animation: loading-dots 1.4s infinite ease-in-out;
|
469 |
-
font-size: 1.2rem;
|
470 |
-
margin-right: 4px;
|
471 |
-
width: auto !important;
|
472 |
-
}
|
473 |
-
|
474 |
-
.loading-container {
|
475 |
-
display: flex !important;
|
476 |
-
justify-content: center;
|
477 |
-
align-items: center;
|
478 |
-
}
|
479 |
-
|
480 |
-
.loading-dots {
|
481 |
-
font-size: 1.2rem;
|
482 |
-
letter-spacing: 2px;
|
483 |
-
animation: blink 1.4s infinite;
|
484 |
-
}
|
485 |
-
|
486 |
-
@keyframes blink {
|
487 |
-
0%, 100% { opacity: 0.2; }
|
488 |
-
50% { opacity: 1; }
|
489 |
-
}
|
490 |
-
|
491 |
-
|
492 |
@keyframes loading-dots {
|
493 |
0%, 80%, 100% { transform: scale(0); }
|
494 |
40% { transform: scale(1); }
|
@@ -721,7 +790,6 @@ h2{
|
|
721 |
cursor: pointer;
|
722 |
}
|
723 |
|
724 |
-
|
725 |
.sidebar-footer {
|
726 |
z-index:99999;
|
727 |
margin-top: auto;
|
@@ -768,4 +836,4 @@ h2{
|
|
768 |
|
769 |
.logout-btn:hover {
|
770 |
background-color: rgba(255, 82, 82, 0.2);
|
771 |
-
}
|
|
|
9 |
background-repeat: no-repeat;
|
10 |
background-attachment: fixed;
|
11 |
}
|
12 |
+
@keyframes smooth-typing {
|
13 |
+
from { opacity: 0; transform: translateY(2px); }
|
14 |
+
to { opacity: 1; transform: translateY(0); }
|
15 |
+
}
|
16 |
+
|
17 |
+
.streaming-text-chunk {
|
18 |
+
animation: smooth-typing 0.2s ease forwards;
|
19 |
+
}
|
20 |
+
|
21 |
+
.typing-indicator {
|
22 |
+
display: inline-block;
|
23 |
+
animation: blink 0.7s infinite alternate;
|
24 |
+
margin-left: 3px;
|
25 |
+
color: #4a7bff;
|
26 |
+
font-size: 1.2em;
|
27 |
+
}
|
28 |
+
|
29 |
+
@keyframes blink {
|
30 |
+
from { opacity: 0.2; }
|
31 |
+
to { opacity: 1; }
|
32 |
+
}
|
33 |
+
|
34 |
+
.streaming-message {
|
35 |
+
position: relative;
|
36 |
+
}
|
37 |
.body{
|
38 |
background-image: url('../public/blurBackground.png');
|
39 |
background-size: cover;
|
|
|
43 |
}
|
44 |
|
45 |
|
46 |
+
@keyframes cursor-blink {
|
47 |
+
from, to { border-right-color: transparent }
|
48 |
+
50% { border-right-color: #ffffff; }
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
/* À ajouter dans votre fichier CSS */
|
52 |
.user-info {
|
53 |
display: flex;
|
|
|
102 |
transition: margin-left 0.3s ease;
|
103 |
|
104 |
}
|
105 |
+
.message.bot .message-content h1 {
|
106 |
+
font-size: 1.6em;
|
107 |
+
margin-top: 0.8em;
|
108 |
+
margin-bottom: 0.4em;
|
109 |
+
font-weight: bold;
|
110 |
+
}
|
111 |
+
|
112 |
+
.message.bot .message-content h2 {
|
113 |
+
font-size: 1.4em;
|
114 |
+
margin-top: 0.7em;
|
115 |
+
margin-bottom: 0.3em;
|
116 |
+
font-weight: bold;
|
117 |
+
}
|
118 |
+
|
119 |
+
.message.bot .message-content h3 {
|
120 |
+
font-size: 1.2em;
|
121 |
+
margin-top: 0.6em;
|
122 |
+
margin-bottom: 0.3em;
|
123 |
+
font-weight: bold;
|
124 |
+
}
|
125 |
+
|
126 |
+
.message.bot .message-content strong,
|
127 |
+
.message.bot .message-content b {
|
128 |
+
font-weight: 700;
|
129 |
+
color: #ffffff;
|
130 |
+
}
|
131 |
+
|
132 |
+
.message.bot .message-content em,
|
133 |
+
.message.bot .message-content i {
|
134 |
+
font-style: italic;
|
135 |
+
}
|
136 |
+
|
137 |
+
.message.bot .message-content ul {
|
138 |
+
list-style-type: disc;
|
139 |
+
padding-left: 1.5em;
|
140 |
+
margin-top: 0.5em;
|
141 |
+
margin-bottom: 0.5em;
|
142 |
+
}
|
143 |
+
|
144 |
+
.message.bot .message-content ol {
|
145 |
+
list-style-type: decimal;
|
146 |
+
padding-left: 1.5em;
|
147 |
+
margin-top: 0.5em;
|
148 |
+
margin-bottom: 0.5em;
|
149 |
+
}
|
150 |
+
|
151 |
+
.message.bot .message-content blockquote {
|
152 |
+
border-left: 3px solid #4a7bff;
|
153 |
+
padding-left: 1em;
|
154 |
+
margin-left: 0;
|
155 |
+
color: #b3b3b3;
|
156 |
+
}
|
157 |
+
|
158 |
+
.message.bot .message-content code {
|
159 |
+
background-color: rgba(0, 0, 0, 0.2);
|
160 |
+
padding: 0.2em 0.4em;
|
161 |
+
border-radius: 3px;
|
162 |
+
font-family: monospace;
|
163 |
+
}
|
164 |
+
|
165 |
+
.message.bot .message-content pre {
|
166 |
+
background-color: rgba(0, 0, 0, 0.2);
|
167 |
+
padding: 1em;
|
168 |
+
border-radius: 5px;
|
169 |
+
overflow-x: auto;
|
170 |
+
margin: 0.5em 0;
|
171 |
+
}
|
172 |
+
|
173 |
+
.message.bot .message-content a {
|
174 |
+
color: #4a7bff;
|
175 |
+
text-decoration: underline;
|
176 |
+
}.message.bot .message-content h1 {
|
177 |
+
font-size: 1.6em;
|
178 |
+
margin-top: 0.8em;
|
179 |
+
margin-bottom: 0.4em;
|
180 |
+
font-weight: bold;
|
181 |
+
}
|
182 |
+
|
183 |
+
.message.bot .message-content h2 {
|
184 |
+
font-size: 1.4em;
|
185 |
+
margin-top: 0.7em;
|
186 |
+
margin-bottom: 0.3em;
|
187 |
+
font-weight: bold;
|
188 |
+
}
|
189 |
+
|
190 |
+
.message.bot .message-content h3 {
|
191 |
+
font-size: 1.2em;
|
192 |
+
margin-top: 0.6em;
|
193 |
+
margin-bottom: 0.3em;
|
194 |
+
font-weight: bold;
|
195 |
+
}
|
196 |
+
|
197 |
+
.message.bot .message-content strong,
|
198 |
+
.message.bot .message-content b {
|
199 |
+
font-weight: 700;
|
200 |
+
color: #ffffff;
|
201 |
+
}
|
202 |
+
|
203 |
+
.message.bot .message-content em,
|
204 |
+
.message.bot .message-content i {
|
205 |
+
font-style: italic;
|
206 |
+
}
|
207 |
+
|
208 |
+
.message.bot .message-content ul {
|
209 |
+
list-style-type: disc;
|
210 |
+
padding-left: 1.5em;
|
211 |
+
margin-top: 0.5em;
|
212 |
+
margin-bottom: 0.5em;
|
213 |
+
}
|
214 |
+
|
215 |
+
.message.bot .message-content ol {
|
216 |
+
list-style-type: decimal;
|
217 |
+
padding-left: 1.5em;
|
218 |
+
margin-top: 0.5em;
|
219 |
+
margin-bottom: 0.5em;
|
220 |
+
}
|
221 |
+
|
222 |
+
.message.bot .message-content blockquote {
|
223 |
+
border-left: 3px solid #4a7bff;
|
224 |
+
padding-left: 1em;
|
225 |
+
margin-left: 0;
|
226 |
+
color: #b3b3b3;
|
227 |
+
}
|
228 |
+
|
229 |
+
.message.bot .message-content code {
|
230 |
+
background-color: rgba(0, 0, 0, 0.2);
|
231 |
+
padding: 0.2em 0.4em;
|
232 |
+
border-radius: 3px;
|
233 |
+
font-family: monospace;
|
234 |
+
}
|
235 |
+
|
236 |
+
.message.bot .message-content pre {
|
237 |
+
background-color: rgba(0, 0, 0, 0.2);
|
238 |
+
padding: 1em;
|
239 |
+
border-radius: 5px;
|
240 |
+
overflow-x: auto;
|
241 |
+
margin: 0.5em 0;
|
242 |
+
}
|
243 |
+
|
244 |
+
.message.bot .message-content a {
|
245 |
+
color: #4a7bff;
|
246 |
+
text-decoration: underline;
|
247 |
+
}
|
248 |
+
|
249 |
+
|
250 |
+
.token-limit-warning {
|
251 |
+
display: flex;
|
252 |
+
justify-content: center;
|
253 |
+
margin: 15px 0;
|
254 |
+
padding: 10px;
|
255 |
+
background-color: rgba(255, 193, 7, 0.1);
|
256 |
+
border-radius: 8px;
|
257 |
+
}
|
258 |
+
|
259 |
+
.new-conversation-button {
|
260 |
+
background-color: #4D59FB;
|
261 |
+
color: white;
|
262 |
+
border: none;
|
263 |
+
border-radius: 20px;
|
264 |
+
padding: 10px 20px;
|
265 |
+
font-size: 14px;
|
266 |
+
font-weight: 500;
|
267 |
+
cursor: pointer;
|
268 |
+
transition: background-color 0.2s;
|
269 |
+
display: flex;
|
270 |
+
align-items: center;
|
271 |
+
gap: 8px;
|
272 |
+
}
|
273 |
+
|
274 |
+
.new-conversation-button:hover {
|
275 |
+
background-color: #3A46E8;
|
276 |
+
}
|
277 |
+
|
278 |
+
.new-conversation-button::before {
|
279 |
+
content: "+";
|
280 |
+
font-size: 18px;
|
281 |
+
font-weight: bold;
|
282 |
+
}
|
283 |
|
284 |
.streaming-message {
|
285 |
position: relative;
|
|
|
317 |
|
318 |
.message.bot .message-content {
|
319 |
display: block !important;
|
320 |
+
|
321 |
width: 100% !important;
|
322 |
}
|
323 |
|
|
|
370 |
height: 20px;
|
371 |
fill: #ffffff;
|
372 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
/* ----- Header du chat ----- */
|
374 |
.chat-header {
|
375 |
display: flex;
|
|
|
513 |
line-height: 1.5;
|
514 |
border-bottom-left-radius: 4px;
|
515 |
}
|
|
|
516 |
|
517 |
+
.message.bot .message-content.loading * {
|
518 |
+
display: inline-block !important;
|
519 |
+
width: auto !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
520 |
}
|
521 |
|
522 |
/* ----- Animation pour l'apparition ----- */
|
|
|
524 |
from { opacity: 0; transform: translateY(5px); }
|
525 |
to { opacity: 1; transform: translateY(0); }
|
526 |
}
|
527 |
+
|
|
|
|
|
|
|
528 |
/* ----- Indicateur de chargement ----- */
|
529 |
.loading {
|
530 |
display: flex !important;
|
|
|
558 |
}
|
559 |
|
560 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
561 |
@keyframes loading-dots {
|
562 |
0%, 80%, 100% { transform: scale(0); }
|
563 |
40% { transform: scale(1); }
|
|
|
790 |
cursor: pointer;
|
791 |
}
|
792 |
|
|
|
793 |
.sidebar-footer {
|
794 |
z-index:99999;
|
795 |
margin-top: auto;
|
|
|
836 |
|
837 |
.logout-btn:hover {
|
838 |
background-color: rgba(255, 82, 82, 0.2);
|
839 |
+
}
|