diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 4394e58..84c98fb 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -37,15 +37,27 @@ // Assuming the items are in the 'items' property of the result actions = result.items; } + + $: isLastActionAsleep = actions.length > 0 && actions[actions.length - 1].type === 'asleep'; + $: isLastActionAwake = actions.length > 0 && actions[actions.length - 1].type === 'awake'; + $: isLastActionDiaper = actions.length > 0 && actions[actions.length - 1].type === 'diaper'; {#if $currentUser}
diff --git a/src/styles/app.css b/src/styles/app.css index 7b3c52b..1634e25 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -63,6 +63,8 @@ section { margin-top: 4rem; } +/* https://coolors.co/palette/5f0f40-9a031e-fb8b24-e36414-0f4c5c */ + [class*='--food'] { --color: #136f63; }