From 26784b4aba401d69aba001845d09c50b2318e69f Mon Sep 17 00:00:00 2001 From: Spencer Flagg Date: Tue, 6 Feb 2024 15:40:39 +0100 Subject: [PATCH] active nav style; fixed stats; added age; fixed sunday issue; frame style, 1st step; --- src/lib/components/counters.svelte | 11 +---- src/lib/utils.ts | 9 ++++ src/routes/+layout.svelte | 13 ++--- src/routes/calendar/+page.svelte | 3 +- src/routes/stats/+page.svelte | 79 ++++++++++++++++++++++++++---- src/styles/app.css | 21 ++++++++ 6 files changed, 110 insertions(+), 26 deletions(-) create mode 100644 src/lib/utils.ts diff --git a/src/lib/components/counters.svelte b/src/lib/components/counters.svelte index b5ab93c..3412455 100644 --- a/src/lib/components/counters.svelte +++ b/src/lib/components/counters.svelte @@ -1,6 +1,7 @@

Stats

-

(diapers and meals should be correct now)

+

Input

+ +

Output

+ +

Downtime

+
diff --git a/src/styles/app.css b/src/styles/app.css index 1176b35..fc696e8 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -90,6 +90,10 @@ nav ul li { list-style: none; } +nav ul li a.active{ + font-weight: bold; +} + header { position: sticky; @@ -98,6 +102,11 @@ header { z-index: 1; margin: 0 -2rem; padding: 2rem 2rem 0 2rem; + border-radius: 3rem 3rem 0 0; +} + +h1 a { + color: inherit; } /* aside { @@ -139,4 +148,16 @@ section { line-height: 1; min-width: 10ch; text-align: center; +} + +main.container { + max-width: 80rem; + background: var(--c-bkg); + border-radius: 3rem; + margin: 3rem auto; + padding-bottom: 3rem; +} + +body { + background: #303443; } \ No newline at end of file