diff --git a/frontend/src/routes/ScanPage.svelte b/frontend/src/routes/ScanPage.svelte new file mode 100644 index 0000000..0ecbfe3 --- /dev/null +++ b/frontend/src/routes/ScanPage.svelte @@ -0,0 +1,106 @@ + + +{#if error} +
{error}
+{:else if !scan} +Loading…
+{:else} +Reading the page. This usually takes under a minute; you can leave this screen.
+Reading failed: {scan.error}
+This scan was discarded.
+ {:else if scan.status === 'published'} +Published {scan.events.length} events{scan.menu_items.length ? ` and ${scan.menu_items.length} menu days` : ''}.
+ {#if scan.layout_type === 'menu'} + Pick lunch days + {/if} + {#each calendars as c (c.id)} + + {/each} + See the calendar +