From 4efcd4835a41218302d7af6d327ae43d0184174f Mon Sep 17 00:00:00 2001 From: Michael Allen Smith Date: Sun, 21 Sep 2025 13:05:56 -0700 Subject: [PATCH] Refactor header and result components for improved clarity; update BMR and Potato Hack descriptions for conciseness; implement global unit toggle in calculations. --- .vscode/tasks.json | 8 +++ src/components/Header.astro | 4 +- src/components/ResultValue.astro | 4 ++ src/pages/bmr.astro | 4 +- src/pages/potato-hack.astro | 111 +++++++++++++++++++------------ 5 files changed, 86 insertions(+), 45 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index b9746e3..ae5bf4b 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -11,6 +11,14 @@ "$tsc" ], "group": "build" + }, + { + "label": "Dev server (Astro)", + "type": "shell", + "command": "npm run dev", + "args": [], + "isBackground": true, + "group": "build" } ] } \ No newline at end of file diff --git a/src/components/Header.astro b/src/components/Header.astro index 2fa7c8a..b1e3b2c 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -27,7 +27,7 @@ function isActivePath(linkPath: string, currentPath: string): boolean {