feat: add more food and food type along with new icons

This commit is contained in:
2025-09-04 11:40:53 -03:00
parent 71564b1c80
commit 07eba9b64a
3 changed files with 49 additions and 18 deletions
+7 -6
View File
@@ -486,12 +486,13 @@ function displaySearchResults(results: FoodItem[]) {
searchResults.innerHTML = '<div class="no-results">No foods found. Try a different search term.</div>';
} else {
const icons = {
'fats': '🥑',
'proteins': '🫘',
'carbs (high)': '🍞',
'leaves': '🥬',
'fruits': '🍊',
'carbs (low)': '🍍'
'fats': '🥑 🍳 🍟',
'proteins': '🫘 🥩 🥚',
'carbs (high)': '🍞 🥔 🍠',
'leaves': '🥬 🥗 🌿',
'fruits': '🍊 🍇 🍎',
'carbs (low)': '🥦 🍅 🍓',
'dairy': '🧀 🧈 🥛'
};
searchResults.innerHTML = results.map((food, index) => `