nagasurendra commited on
Commit
d59f645
·
verified ·
1 Parent(s): 15d82c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -91,11 +91,11 @@ def filter_menu(preference):
91
  for section, items in filtered_data.items():
92
  if items:
93
  html_content += f"<h2 style='text-align: center;'>{section}</h2>"
94
- html_content += '<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; justify-content: center;">'
95
  for item in items:
96
  html_content += f"""
97
  <div style="border: 1px solid #ddd; border-radius: 10px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden;">
98
- <img src="{item.get('Image1__c', '')}" style="width: 100%; height: 300px; object-fit: cover;">
99
  <div style="padding: 10px;">
100
  <h3 style='font-size: 1.2em; text-align: center;'>{item['Name']}</h3>
101
  <p style='font-size: 1.1em; color: green; text-align: center;'>${item['Price__c']}</p>
 
91
  for section, items in filtered_data.items():
92
  if items:
93
  html_content += f"<h2 style='text-align: center;'>{section}</h2>"
94
+ html_content += '<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; justify-content: center;">'
95
  for item in items:
96
  html_content += f"""
97
  <div style="border: 1px solid #ddd; border-radius: 10px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden;">
98
+ <img src="{item.get('Image1__c', '')}" style="width: 100%; height: 250px; object-fit: cover;">
99
  <div style="padding: 10px;">
100
  <h3 style='font-size: 1.2em; text-align: center;'>{item['Name']}</h3>
101
  <p style='font-size: 1.1em; color: green; text-align: center;'>${item['Price__c']}</p>