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 @@ + + +

Lunch

+ +{#if !kids.length} +

Add your children in Settings first.

+{:else} +
+ {#each kids as c (c.id)} + + {/each} +
+ +
+ + {monthLabel(month)} + +
+ + {#if !hasMenu} +

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”.

+ + {/if} +{/if} + +