From 99d0cb478a08766067f2a7e84e524e2a2baf5890 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Sun, 5 Mar 2023 09:10:17 +0100 Subject: [PATCH] Add bicycle page --- webui/src/lib/Header.svelte | 3 +- webui/src/lib/images/wheels.svg | 53 +++++++++++++++++++++++++++ webui/src/routes/bicycle/+page.js | 2 + webui/src/routes/bicycle/+page.svelte | 50 +++++++++++++++++++++++++ 4 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 webui/src/lib/images/wheels.svg create mode 100644 webui/src/routes/bicycle/+page.js create mode 100644 webui/src/routes/bicycle/+page.svelte diff --git a/webui/src/lib/Header.svelte b/webui/src/lib/Header.svelte index fc2fdde..56096a7 100644 --- a/webui/src/lib/Header.svelte +++ b/webui/src/lib/Header.svelte @@ -15,7 +15,8 @@ diff --git a/webui/src/lib/images/wheels.svg b/webui/src/lib/images/wheels.svg new file mode 100644 index 0000000..b6e8e33 --- /dev/null +++ b/webui/src/lib/images/wheels.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/webui/src/routes/bicycle/+page.js b/webui/src/routes/bicycle/+page.js new file mode 100644 index 0000000..ba58d86 --- /dev/null +++ b/webui/src/routes/bicycle/+page.js @@ -0,0 +1,2 @@ +export const prerender = true; +export const trailingSlash = 'always'; diff --git a/webui/src/routes/bicycle/+page.svelte b/webui/src/routes/bicycle/+page.svelte new file mode 100644 index 0000000..52c0652 --- /dev/null +++ b/webui/src/routes/bicycle/+page.svelte @@ -0,0 +1,50 @@ + + + + Bicycle + + + +
+

Bicycle

+
+ Bicycle +
+

Total distance: {total_distance_value} {total_distance_unit}

+

Year result: {year_result_value} {year_result_unit}

+