diff --git a/frontend/src/routes/LunchPage.svelte b/frontend/src/routes/LunchPage.svelte new file mode 100644 index 0000000..b010425 --- /dev/null +++ b/frontend/src/routes/LunchPage.svelte @@ -0,0 +1,112 @@ + + +
Add your children in Settings first.
+{:else} +No lunch menu is set up for {child?.display_name}. Add a source with the “Lunch menu” layout in Settings, then scan the menu.
+ {:else if error} +{error}
+ {:else if days === null} +Loading…
+ {:else if !days.length} +No published menu for {monthLabel(month)} yet. Scan it from the Scans tab.
+ {:else} +{child?.display_name}: tap the days to pack lunch. {picked} picked. Each pick goes on the calendar as “Pack lunch”.
+{d.closed ?? 'No lunch this day'}
+ {:else} + {#each d.menus as m} + {#if d.menus.length > 1}{m.source_name}
{/if} +{m.items.join(' · ')}
+ {/each} + {/if} + {#if !d.greyed || d.picked} + + {/if} +