Skip to content

Commit

Permalink
adds menupic for menu card
Browse files Browse the repository at this point in the history
  • Loading branch information
motocarota committed Aug 20, 2024
1 parent 919178d commit 12a4f1f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/MenuCards.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<div class="flex justify-center gap-5 flex-wrap px-4">
{#each menus as menu}
<Card img={menu.pic} href={`/view/${menu.id}`}>
<Card img={menu.menupic ?? menu.pic} href={`/view/${menu.id}`}>
<h5 class="mb-2 text-2xl font-bold text-gray-900 dark:text-white">
{menu.subtitle}
</h5>
Expand Down
2 changes: 2 additions & 0 deletions src/menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export const menus = {
subtitle: "Enoteca d'autore",
type: 'food',
clientId: 'mb',
menupic: '/img/ape.webp',
...clients.mb,
},
'monna-bianca-vini-calice': {
Expand All @@ -155,6 +156,7 @@ export const menus = {
subtitle: "Vini al Calice",
type: 'wine',
clientId: 'mb',
menupic: '/img/calice.webp',
...clients.mb,
},
};
Binary file added static/img/ape.webp
Binary file not shown.
Binary file added static/img/calice.webp
Binary file not shown.

0 comments on commit 12a4f1f

Please sign in to comment.