Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
motocarota committed Jun 23, 2024
1 parent f98ec55 commit 9607d77
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 8 deletions.
38 changes: 36 additions & 2 deletions src/customers.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,49 @@ const customers = {
'bagni-giovanni': {
url: 'https://docs.google.com/spreadsheets/d/e/2PACX-1vS8qhCOv9jDeoTc9afdaTMEvCh9yXXFjVRg855B9WSmr7jrgQipflrQ0cD3Q87bLQ5QvpsWaekF0Nyl/pub?gid=0&single=true&output=tsv',
title: 'Bagni Giovanni',
subtitle: 'Bagni e Ristorante a Cavi Borgo',
subtitle: 'Menu Ristorante',
address: "Via Lungomare Cavi di Lavagna (GE)",
website: "www.bagnigiovanni.it",
email: "[email protected]",
phone: ["+39 0185 696948"],
vat: "01002240990",

// theme
pic: '/img/bagni-giovanni.webp',
pic: 'https://bagnigiovanni.it/images/logo.png',
bgColor: '#fdfdfd',
primaryColor: '#213f63',
secondaryColor: '#999999',
accentColor: '#296fae',
},
'bagni-giovanni-vini': {
url: 'https://docs.google.com/spreadsheets/d/e/2PACX-1vS8qhCOv9jDeoTc9afdaTMEvCh9yXXFjVRg855B9WSmr7jrgQipflrQ0cD3Q87bLQ5QvpsWaekF0Nyl/pub?gid=2022557443&single=true&output=tsv',
title: 'Bagni Giovanni',
subtitle: 'Menu dei vini',
address: "Via Lungomare Cavi di Lavagna (GE)",
website: "www.bagnigiovanni.it",
email: "[email protected]",
phone: ["+39 0185 696948"],
vat: "01002240990",

// theme
pic: 'https://bagnigiovanni.it/images/logo.png',
bgColor: '#fdfdfd',
primaryColor: '#213f63',
secondaryColor: '#999999',
accentColor: '#296fae',
},
'bagni-giovanni-tavola-fredda': {
url: 'https://docs.google.com/spreadsheets/d/e/2PACX-1vS8qhCOv9jDeoTc9afdaTMEvCh9yXXFjVRg855B9WSmr7jrgQipflrQ0cD3Q87bLQ5QvpsWaekF0Nyl/pub?gid=1620509354&single=true&output=tsv',
title: 'Bagni Giovanni',
subtitle: 'Menu tavola fredda',
address: "Via Lungomare Cavi di Lavagna (GE)",
website: "www.bagnigiovanni.it",
email: "[email protected]",
phone: ["+39 0185 696948"],
vat: "01002240990",

// theme
pic: 'https://bagnigiovanni.it/images/logo.png',
bgColor: '#fdfdfd',
primaryColor: '#213f63',
secondaryColor: '#999999',
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<footer class="bg-white text-slate-800 p pb-10 text-center opacity-60 text-sm">
<a href="https://simone-poggi.com">made in Italy with ❤️</a>
<footer class="bg-white text-slate-800 p-2 text-right opacity-60 text-sm">
<a href="https://simone-poggi.com">made in Italy</a>
</footer>
9 changes: 6 additions & 3 deletions src/lib/MenuWineRow.svelte
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
<script>
export let post;
const [
name, type, canteen, location, price, qty = 0, color = ""
color = "", name, notes, desc, price, qty = 0,
] = post ?? [];
const n = notes ? `(${notes}) ` : '';
</script>
{#if qty && qty > 0}
<tr>
{#if !price}
<th colspan="4" class="pt-5 text-xl">{name}</th>
<th colspan="5" class="pt-5 text-xl font-extrabold">{name}</th>
{:else}
<td>
<div style="background: {color}" class='dot'></div>
</td>
<td><span class="text-xl">{name}</span> {type} - {canteen} - {location}</td>
<td><span class="text-xl">{name}</span></td>
<td>{n} {desc}</td>
<td class="price">{price}</td>
{/if}
</tr>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/view/[menuId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<main style="background-color: {data.bgColor};">
<h1>{data.title}</h1>
<h3>{data.subtitle}</h3>
<img src="/img/{data.id}.webp" alt="" />
<img src="{data.pic}" alt="" />
<table>
{#if loading}
<p>Caricamento...</p>
Expand Down

0 comments on commit 9607d77

Please sign in to comment.