Update backend/templates/base.html

#1
by NourSh2001 - opened
Files changed (1) hide show
  1. backend/templates/base.html +64 -0
backend/templates/base.html CHANGED
@@ -775,6 +775,70 @@
775
 
776
  {% block content %}{% endblock %}
777
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
778
  </main>
779
 
780
  <footer>
 
775
 
776
  {% block content %}{% endblock %}
777
  </div>
778
+
779
+ #CHATBOT START
780
+ <!-- Chatbot Toggle Button -->
781
+ <div id="chatbot-toggle" onclick="toggleChatbot()">💬 Chat</div>
782
+
783
+ <!-- Chatbox Popup -->
784
+ <div id="chatbot-box">
785
+ <div id="chat-header">LUNA AI</div>
786
+ <div id="chat-messages"></div>
787
+ <input id="chat-input" type="text" placeholder="Ask me anything..." onkeydown="sendChat(event)">
788
+ </div>
789
+
790
+ <style>
791
+ #chatbot-toggle {
792
+ position: fixed;
793
+ bottom: 20px;
794
+ right: 20px;
795
+ background-color: #4caf50;
796
+ color: white;
797
+ padding: 12px 15px;
798
+ border-radius: 30px;
799
+ cursor: pointer;
800
+ z-index: 1000;
801
+ }
802
+
803
+ #chatbot-box {
804
+ position: fixed;
805
+ bottom: 80px;
806
+ right: 20px;
807
+ width: 300px;
808
+ height: 400px;
809
+ background: white;
810
+ border: 2px solid #ccc;
811
+ border-radius: 10px;
812
+ display: none;
813
+ flex-direction: column;
814
+ z-index: 1000;
815
+ }
816
+
817
+ #chat-header {
818
+ background-color: #4caf50;
819
+ color: white;
820
+ padding: 10px;
821
+ text-align: center;
822
+ font-weight: bold;
823
+ }
824
+
825
+ #chat-messages {
826
+ flex: 1;
827
+ padding: 10px;
828
+ overflow-y: auto;
829
+ max-height: 300px;
830
+ }
831
+
832
+ #chat-input {
833
+ border: none;
834
+ border-top: 1px solid #ccc;
835
+ padding: 10px;
836
+ width: 100%;
837
+ box-sizing: border-box;
838
+ }
839
+ </style>
840
+
841
+ #CHATBOT END
842
  </main>
843
 
844
  <footer>