From 41ed9c06c171f0006fd22d9d089f5baad4e2387c Mon Sep 17 00:00:00 2001 From: vcoppe Date: Tue, 3 Sep 2024 15:51:15 +0200 Subject: [PATCH] add faq section --- .../src/lib/components/docs/DocsLoader.svelte | 174 +++++++++--------- website/src/lib/components/docs/docs.ts | 2 + website/src/lib/docs/en/faq.mdx | 39 ++++ website/src/routes/+layout.svelte | 103 ++++++----- .../routes/[[language]]/help/+layout.svelte | 76 ++++---- 5 files changed, 219 insertions(+), 175 deletions(-) create mode 100644 website/src/lib/docs/en/faq.mdx diff --git a/website/src/lib/components/docs/DocsLoader.svelte b/website/src/lib/components/docs/DocsLoader.svelte index 5f388da3..24777557 100644 --- a/website/src/lib/components/docs/DocsLoader.svelte +++ b/website/src/lib/components/docs/DocsLoader.svelte @@ -1,112 +1,112 @@ {#if module !== undefined} - {#if titleOnly} - {metadata.title} - {:else} -
- -
- {/if} + {#if titleOnly} + {metadata.title} + {:else} +
+ +
+ {/if} {/if} diff --git a/website/src/lib/components/docs/docs.ts b/website/src/lib/components/docs/docs.ts index e4cb12d2..eec7b1f2 100644 --- a/website/src/lib/components/docs/docs.ts +++ b/website/src/lib/components/docs/docs.ts @@ -9,6 +9,7 @@ export const guides: Record = { 'map-controls': [], 'gpx': [], 'integration': [], + 'faq': [], }; export const guideIcons: Record> = { @@ -31,6 +32,7 @@ export const guideIcons: Record> = { "map-controls": "🗺", "gpx": "💾", "integration": "{ 👩‍💻 }", + "faq": "🔮", }; export function getPreviousGuide(currentGuide: string): string | undefined { diff --git a/website/src/lib/docs/en/faq.mdx b/website/src/lib/docs/en/faq.mdx new file mode 100644 index 00000000..df8878dc --- /dev/null +++ b/website/src/lib/docs/en/faq.mdx @@ -0,0 +1,39 @@ +--- +title: FAQ +--- + + + +# { title } + +### Do I need to donate to use the website? + +No, you don't need to donate to use the website or unlock any features. +The website is free to use and always will be (as long as it is financially sustainable). +However, donations are appreciated and help keep the website running. + +### Why is this route chosen over that one? *Or* how can I add something to the map? + +**gpx.studio** uses data from OpenStreetMap, which is a crowd-sourced map of the world. +This means you can contribute to the map by adding or editing data on OpenStreetMap. + +If you have never used OpenStreetMap before, you can: +1. Go to the location where you want to add or edit data on the map. +2. Use the tool on the right to inspect the existing data. +3. Right-click on the location and select . +4. Explain what is incorrect or missing in the note and click to submit it. + +Someone more experienced with OpenStreetMap will then review your note and take the necessary action. + + + +More information on how to contribute to OpenStreetMap can be found here. + + + +### Why is the elevation profile for my GPX file empty? + +If the elevation profile for your GPX file is empty, it means that the GPX file does not contain elevation data. +You can add elevation data to your GPX file by using GPS Visualizer. \ No newline at end of file diff --git a/website/src/routes/+layout.svelte b/website/src/routes/+layout.svelte index 9aa43925..13b0e51f 100644 --- a/website/src/routes/+layout.svelte +++ b/website/src/routes/+layout.svelte @@ -1,62 +1,63 @@
- {#if !$isLoading} - {#if showNavAndFooter} -
diff --git a/website/src/routes/[[language]]/help/+layout.svelte b/website/src/routes/[[language]]/help/+layout.svelte index ae54b33e..00c9e6d9 100644 --- a/website/src/routes/[[language]]/help/+layout.svelte +++ b/website/src/routes/[[language]]/help/+layout.svelte @@ -1,41 +1,43 @@ -
- -
- -
+
+ +
+ +