Yaswanth56 commited on
Commit
cad87ca
·
verified ·
1 Parent(s): 3f01465

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +30 -0
templates/index.html CHANGED
@@ -5,6 +5,32 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Chef Bot</title>
7
  <link rel="stylesheet" href="/static/styles.css">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  </head>
9
  <body>
10
  <div class="chat-container">
@@ -17,6 +43,10 @@
17
  <button onclick="sendMessage()">Send</button>
18
  </div>
19
  </div>
 
 
 
 
20
  <script src="/static/script.js"></script>
21
  </body>
22
  </html>
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Chef Bot</title>
7
  <link rel="stylesheet" href="/static/styles.css">
8
+ <style>
9
+ .popup {
10
+ display: none;
11
+ position: fixed;
12
+ top: 50%;
13
+ left: 50%;
14
+ transform: translate(-50%, -50%);
15
+ background: white;
16
+ padding: 20px;
17
+ border: 1px solid #ccc;
18
+ border-radius: 5px;
19
+ box-shadow: 0 0 10px rgba(0,0,0,0.1);
20
+ z-index: 1000;
21
+ max-height: 80vh;
22
+ overflow-y: auto;
23
+ }
24
+ .popup-content {
25
+ max-width: 300px;
26
+ }
27
+ .close-btn {
28
+ position: absolute;
29
+ top: 10px;
30
+ right: 10px;
31
+ cursor: pointer;
32
+ }
33
+ </style>
34
  </head>
35
  <body>
36
  <div class="chat-container">
 
43
  <button onclick="sendMessage()">Send</button>
44
  </div>
45
  </div>
46
+ <div id="popup" class="popup">
47
+ <span class="close-btn" onclick="closePopup()">×</span>
48
+ <div class="popup-content" id="popupContent"></div>
49
+ </div>
50
  <script src="/static/script.js"></script>
51
  </body>
52
  </html>