diff --git a/src/routes/(app)/diary/today/+page.svelte b/src/routes/(app)/diary/today/+page.svelte index f79938d..8b10bab 100644 --- a/src/routes/(app)/diary/today/+page.svelte +++ b/src/routes/(app)/diary/today/+page.svelte @@ -1,9 +1,160 @@ + +
+ +
+ goDate(-1)} + onNext={() => goDate(1)} + isToday={true} + onDateClick={() => calendarOpen = true} + /> +
+ + +
+ {#if diaryQuery.isPending} + +
+
+
+
+
+
+
+ {:else if diaryQuery.isError} +
+

Could not load diary

+

{diaryQuery.error.message}

+ +
+ {:else if diaryQuery.data} + {@const diary = diaryQuery.data} + +
+ +
+ +
+ + +
+ {#each diary.meals as meal (meal.id)} + + {/each} + + + +
+
+ {/if} +
+ + + {#if diaryQuery.data} + + {/if} + + calendarOpen = false}> + + + + commandOpen = false} /> +