Rammohan0504 commited on
Commit
c1d17e0
·
verified ·
1 Parent(s): f640367

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -81,6 +81,7 @@ menu_data = [
81
 
82
 
83
 
 
84
  # Spice levels and extras
85
  spice_levels = ["American Mild", "American Medium", "American Spicy",
86
  "Indian Mild", "Indian Medium", "Indian Spicy", "Indian Very Spicy"]
@@ -98,7 +99,7 @@ popup_js = """
98
  const popup = document.getElementById("custom-popup");
99
  const overlay = document.getElementById("overlay");
100
  popup.innerHTML = `
101
- <img src="${image}" alt="${name}" style="width: 100%; height: auto; border-radius: 10px;">
102
  <h3 style="margin-top: 10px;">${name}</h3>
103
  <p>${description}</p>
104
  <p style="font-weight: bold;">Price: ${price}</p>
@@ -141,7 +142,7 @@ popup_js = """
141
  popup_html = """
142
  <div id="overlay" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 999;"></div>
143
  <div id="custom-popup"
144
- style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; max-width: 900px; background: white; padding: 20px; border-radius: 10px; box-shadow: 0px 4px 6px rgba(0,0,0,0.1); display: none; z-index: 1000; text-align: center;">
145
  </div>
146
  """
147
 
 
81
 
82
 
83
 
84
+
85
  # Spice levels and extras
86
  spice_levels = ["American Mild", "American Medium", "American Spicy",
87
  "Indian Mild", "Indian Medium", "Indian Spicy", "Indian Very Spicy"]
 
99
  const popup = document.getElementById("custom-popup");
100
  const overlay = document.getElementById("overlay");
101
  popup.innerHTML = `
102
+ <img src="${image}" alt="${name}" style="width: 200px; height: auto; border-radius: 10px; margin-bottom: 10px;">
103
  <h3 style="margin-top: 10px;">${name}</h3>
104
  <p>${description}</p>
105
  <p style="font-weight: bold;">Price: ${price}</p>
 
142
  popup_html = """
143
  <div id="overlay" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 999;"></div>
144
  <div id="custom-popup"
145
+ style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50%; max-width: 400px; background: white; padding: 20px; border-radius: 10px; box-shadow: 0px 4px 6px rgba(0,0,0,0.1); display: none; z-index: 1000; text-align: center;">
146
  </div>
147
  """
148