Alsmwal commited on
Commit
b119b8b
·
verified ·
1 Parent(s): 60ac85c

Update chat.html

Browse files
Files changed (1) hide show
  1. chat.html +66 -34
chat.html CHANGED
@@ -165,6 +165,10 @@
165
  transition: all 0.3s ease;
166
  }
167
 
 
 
 
 
168
  .menu-toggle:hover {
169
  transform: scale(1.1);
170
  }
@@ -243,13 +247,14 @@
243
  }
244
 
245
  .conversation-item:hover {
246
- background: var(--olive-light);
247
- color: white;
248
  }
249
 
250
  .conversation-item.active {
251
  background: var(--olive-light);
252
  color: white;
 
253
  }
254
 
255
  .conversation-title {
@@ -385,24 +390,32 @@
385
  }
386
 
387
  .message-content {
388
- max-width: 70%;
389
- padding: 15px 20px;
390
- border-radius: 12px;
391
  line-height: 1.6;
392
  word-wrap: break-word;
 
 
 
393
  }
394
 
395
  .message.user .message-content {
396
  background: var(--olive-light);
397
  color: white;
 
398
  }
399
 
400
  .light-mode .message.ai .message-content {
401
- background: var(--bg-light);
 
 
402
  }
403
 
404
  .dark-mode .message.ai .message-content {
405
  background: var(--bg-dark);
 
 
406
  }
407
 
408
  /* Feedback Buttons */
@@ -445,22 +458,31 @@
445
 
446
  .chat-input-area {
447
  padding: 20px;
448
- border-top: 2px solid var(--olive-light);
449
  }
450
 
451
  .input-wrapper {
452
  display: flex;
453
  gap: 10px;
454
  align-items: flex-end;
 
 
 
 
 
 
 
 
 
 
455
  }
456
 
457
  #messageInput {
458
  flex: 1;
459
- padding: 15px;
460
- border-radius: 8px;
461
- border: 2px solid transparent;
462
  font-size: 16px;
463
- transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
464
  resize: none;
465
  font-family: inherit;
466
  height: 54px;
@@ -469,42 +491,37 @@
469
  }
470
 
471
  .light-mode #messageInput {
472
- background: var(--bg-light);
473
  color: var(--text-light);
474
- border-color: #e0e0e0;
475
  }
476
 
477
  .dark-mode #messageInput {
478
- background: var(--bg-dark);
479
  color: var(--text-dark);
480
- border-color: #444;
481
  }
482
 
483
  #messageInput:focus {
484
  outline: none;
485
- border-color: var(--olive-light);
486
  }
487
 
488
  .send-btn {
489
- width: 50px;
490
- height: 50px;
491
- padding: 0;
492
  display: flex;
493
  align-items: center;
494
  justify-content: center;
495
- background: var(--olive-light);
496
- color: white;
497
  border: none;
498
- border-radius: 50%;
499
  cursor: pointer;
500
- font-size: 20px;
501
  transition: all 0.3s ease;
502
  position: relative;
503
  }
504
 
505
  .send-btn:hover:not(:disabled) {
506
- transform: translateY(-2px);
507
- box-shadow: 0 5px 15px rgba(58, 102, 42, 0.4);
 
508
  }
509
 
510
  .send-btn:disabled {
@@ -516,9 +533,9 @@
516
  display: inline-block;
517
  width: 16px;
518
  height: 16px;
519
- border: 2px solid rgba(255,255,255,.3);
520
  border-radius: 50%;
521
- border-top-color: white;
522
  animation: spin 0.8s linear infinite;
523
  }
524
 
@@ -652,7 +669,7 @@
652
 
653
  .main-content {
654
  margin-left: 0;
655
- padding: 80px 20px 20px 20px;
656
  height: 100dvh; /* Full viewport height on mobile */
657
  }
658
 
@@ -667,6 +684,10 @@
667
  .header-bar h1 {
668
  font-size: 24px;
669
  }
 
 
 
 
670
 
671
  .modal-content {
672
  margin: 10% auto;
@@ -847,7 +868,9 @@
847
  autocomplete="off"
848
  ></textarea>
849
  <button class="send-btn" id="sendBtn" data-tooltip="Send Message">
850
-
 
 
851
  </button>
852
  </div>
853
  </div>
@@ -1035,13 +1058,20 @@
1035
  toggleSidebar() {
1036
  this.elements.sidebar.classList.toggle('active');
1037
  this.elements.sidebarOverlay.classList.toggle('active');
 
 
 
 
 
 
 
1038
  },
1039
 
1040
  closeSidebar() {
1041
- if (state.isMobile) {
1042
- this.elements.sidebar.classList.remove('active');
1043
- this.elements.sidebarOverlay.classList.remove('active');
1044
- }
1045
  },
1046
 
1047
  clearEmptyState() {
@@ -1119,7 +1149,9 @@
1119
  if (disabled) {
1120
  this.elements.sendBtn.innerHTML = '<span class="spinner"></span>';
1121
  } else {
1122
- this.elements.sendBtn.innerHTML = '➤';
 
 
1123
  }
1124
  },
1125
 
 
165
  transition: all 0.3s ease;
166
  }
167
 
168
+ .menu-toggle.active {
169
+ left: 260px;
170
+ }
171
+
172
  .menu-toggle:hover {
173
  transform: scale(1.1);
174
  }
 
247
  }
248
 
249
  .conversation-item:hover {
250
+ background: rgba(58, 102, 42, 0.1);
251
+ color: var(--olive-light);
252
  }
253
 
254
  .conversation-item.active {
255
  background: var(--olive-light);
256
  color: white;
257
+ box-shadow: 0 4px 12px rgba(58, 102, 42, 0.3);
258
  }
259
 
260
  .conversation-title {
 
390
  }
391
 
392
  .message-content {
393
+ max-width: 75%;
394
+ padding: 12px 18px;
395
+ border-radius: 18px;
396
  line-height: 1.6;
397
  word-wrap: break-word;
398
+ box-shadow: 0 2px 5px rgba(0,0,0,0.05);
399
+ position: relative;
400
+ font-size: 15px;
401
  }
402
 
403
  .message.user .message-content {
404
  background: var(--olive-light);
405
  color: white;
406
+ border-bottom-right-radius: 4px;
407
  }
408
 
409
  .light-mode .message.ai .message-content {
410
+ background: white;
411
+ border: 1px solid rgba(0,0,0,0.05);
412
+ border-bottom-left-radius: 4px;
413
  }
414
 
415
  .dark-mode .message.ai .message-content {
416
  background: var(--bg-dark);
417
+ border: 1px solid rgba(255,255,255,0.05);
418
+ border-bottom-left-radius: 4px;
419
  }
420
 
421
  /* Feedback Buttons */
 
458
 
459
  .chat-input-area {
460
  padding: 20px;
461
+ background: transparent;
462
  }
463
 
464
  .input-wrapper {
465
  display: flex;
466
  gap: 10px;
467
  align-items: flex-end;
468
+ background: var(--bg-light);
469
+ padding: 10px;
470
+ border-radius: 26px;
471
+ box-shadow: 0 5px 20px rgba(0,0,0,0.08);
472
+ border: 1px solid rgba(0,0,0,0.05);
473
+ }
474
+
475
+ .dark-mode .input-wrapper {
476
+ background: var(--bg-dark);
477
+ border-color: rgba(255,255,255,0.1);
478
  }
479
 
480
  #messageInput {
481
  flex: 1;
482
+ padding: 12px 15px;
483
+ border: none;
484
+ background: transparent;
485
  font-size: 16px;
 
486
  resize: none;
487
  font-family: inherit;
488
  height: 54px;
 
491
  }
492
 
493
  .light-mode #messageInput {
 
494
  color: var(--text-light);
 
495
  }
496
 
497
  .dark-mode #messageInput {
 
498
  color: var(--text-dark);
 
499
  }
500
 
501
  #messageInput:focus {
502
  outline: none;
 
503
  }
504
 
505
  .send-btn {
506
+ width: auto;
507
+ height: auto;
508
+ padding: 10px;
509
  display: flex;
510
  align-items: center;
511
  justify-content: center;
512
+ background: transparent;
513
+ color: var(--olive-light);
514
  border: none;
 
515
  cursor: pointer;
516
+ font-size: 24px;
517
  transition: all 0.3s ease;
518
  position: relative;
519
  }
520
 
521
  .send-btn:hover:not(:disabled) {
522
+ transform: scale(1.1);
523
+ box-shadow: none;
524
+ background: transparent;
525
  }
526
 
527
  .send-btn:disabled {
 
533
  display: inline-block;
534
  width: 16px;
535
  height: 16px;
536
+ border: 2px solid rgba(58, 102, 42, 0.3);
537
  border-radius: 50%;
538
+ border-top-color: var(--olive-light);
539
  animation: spin 0.8s linear infinite;
540
  }
541
 
 
669
 
670
  .main-content {
671
  margin-left: 0;
672
+ padding: 80px 10px 20px 10px;
673
  height: 100dvh; /* Full viewport height on mobile */
674
  }
675
 
 
684
  .header-bar h1 {
685
  font-size: 24px;
686
  }
687
+
688
+ .chat-input-area {
689
+ padding: 10px 0;
690
+ }
691
 
692
  .modal-content {
693
  margin: 10% auto;
 
868
  autocomplete="off"
869
  ></textarea>
870
  <button class="send-btn" id="sendBtn" data-tooltip="Send Message">
871
+ <svg viewBox="0 0 24 24" width="28" height="28" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
872
+ <path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"></path>
873
+ </svg>
874
  </button>
875
  </div>
876
  </div>
 
1058
  toggleSidebar() {
1059
  this.elements.sidebar.classList.toggle('active');
1060
  this.elements.sidebarOverlay.classList.toggle('active');
1061
+ this.elements.menuToggle.classList.toggle('active');
1062
+
1063
+ if (this.elements.menuToggle.classList.contains('active')) {
1064
+ this.elements.menuToggle.innerHTML = '←';
1065
+ } else {
1066
+ this.elements.menuToggle.innerHTML = '☰';
1067
+ }
1068
  },
1069
 
1070
  closeSidebar() {
1071
+ this.elements.sidebar.classList.remove('active');
1072
+ this.elements.sidebarOverlay.classList.remove('active');
1073
+ this.elements.menuToggle.classList.remove('active');
1074
+ this.elements.menuToggle.innerHTML = '☰';
1075
  },
1076
 
1077
  clearEmptyState() {
 
1149
  if (disabled) {
1150
  this.elements.sendBtn.innerHTML = '<span class="spinner"></span>';
1151
  } else {
1152
+ this.elements.sendBtn.innerHTML = `<svg viewBox="0 0 24 24" width="28" height="28" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
1153
+ <path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"></path>
1154
+ </svg>`;
1155
  }
1156
  },
1157