From f61fb472e23bc808afcbad118dc8d4c362557df2 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Wed, 24 Apr 2024 15:38:45 +0100 Subject: [PATCH] Add LeafletJS map --- front/package-lock.json | 6 ++ front/package.json | 1 + front/src/pages/PageIndex.svelte | 97 ++++++++++++++++++-------------- front/src/pages/PageMenu.svelte | 41 +------------- front/src/styles/vars.scss | 2 +- front/src/testData.js | 41 ++++++++++++++ 6 files changed, 105 insertions(+), 83 deletions(-) create mode 100644 front/src/testData.js diff --git a/front/package-lock.json b/front/package-lock.json index 08ece96..50e1608 100644 --- a/front/package-lock.json +++ b/front/package-lock.json @@ -8,6 +8,7 @@ "name": "front", "version": "0.0.0", "dependencies": { + "leaflet": "^1.9.4", "svelte-spa-router": "^4.0.1" }, "devDependencies": { @@ -1003,6 +1004,11 @@ "node": ">=6" } }, + "node_modules/leaflet": { + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.9.4.tgz", + "integrity": "sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==" + }, "node_modules/locate-character": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz", diff --git a/front/package.json b/front/package.json index 5bb7bb3..b65de51 100644 --- a/front/package.json +++ b/front/package.json @@ -16,6 +16,7 @@ "vite": "^5.2.0" }, "dependencies": { + "leaflet": "^1.9.4", "svelte-spa-router": "^4.0.1" } } diff --git a/front/src/pages/PageIndex.svelte b/front/src/pages/PageIndex.svelte index adc950a..e464b67 100644 --- a/front/src/pages/PageIndex.svelte +++ b/front/src/pages/PageIndex.svelte @@ -1,53 +1,47 @@ + + + +
Learn More
+

Where to find us

+
+
+
+

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Perspiciatis dolore maiores, dolorem unde, illo vero dolores magnam omnis, explicabo vel eos voluptatem libero ullam ipsa molestias laboriosam voluptas nisi sunt.

+
+
+
+

Popular Today

See All @@ -59,12 +53,29 @@
diff --git a/front/src/pages/PageMenu.svelte b/front/src/pages/PageMenu.svelte index 2dd7707..91663c0 100644 --- a/front/src/pages/PageMenu.svelte +++ b/front/src/pages/PageMenu.svelte @@ -1,51 +1,14 @@