From 04fdc5456eeed1326c08188fbd0bf212304044e8 Mon Sep 17 00:00:00 2001 From: Eric Brelsford Date: Fri, 17 Nov 2023 16:43:28 -0500 Subject: [PATCH 1/6] Update layout toward new designs --- vacs-map-app/package-lock.json | 9 +++++ vacs-map-app/package.json | 1 + vacs-map-app/src/App.vue | 8 +++++ vacs-map-app/src/LandingPage.vue | 22 +++++------- vacs-map-app/src/components/CropCards.vue | 36 +++++++++++++++++++ vacs-map-app/src/components/CropFilters.vue | 11 ++++++ vacs-map-app/src/components/OverviewTop.vue | 5 +-- .../src/components/pages/CropDetail.vue | 18 ++++++++++ .../src/components/pages/CropTypeOverview.vue | 5 ++- vacs-map-app/src/constants/topics.js | 2 +- vacs-map-app/src/main.js | 4 ++- 11 files changed, 101 insertions(+), 20 deletions(-) create mode 100644 vacs-map-app/src/components/CropCards.vue create mode 100644 vacs-map-app/src/components/CropFilters.vue create mode 100644 vacs-map-app/src/components/pages/CropDetail.vue diff --git a/vacs-map-app/package-lock.json b/vacs-map-app/package-lock.json index e0b89ed..914f1d4 100644 --- a/vacs-map-app/package-lock.json +++ b/vacs-map-app/package-lock.json @@ -15,6 +15,7 @@ "mapbox-gl": "^3.0.0-rc.2", "pinia": "^2.1.7", "qs": "^6.11.2", + "slugify": "^1.6.6", "vue": "^3.3.4", "vue-router": "^4.2.5" }, @@ -2975,6 +2976,14 @@ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, + "node_modules/slugify": { + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.6.tgz", + "integrity": "sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==", + "engines": { + "node": ">=8.0.0" + } + }, "node_modules/source-map-js": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", diff --git a/vacs-map-app/package.json b/vacs-map-app/package.json index 1ed9026..feb0eca 100644 --- a/vacs-map-app/package.json +++ b/vacs-map-app/package.json @@ -18,6 +18,7 @@ "mapbox-gl": "^3.0.0-rc.2", "pinia": "^2.1.7", "qs": "^6.11.2", + "slugify": "^1.6.6", "vue": "^3.3.4", "vue-router": "^4.2.5" }, diff --git a/vacs-map-app/src/App.vue b/vacs-map-app/src/App.vue index 2fb6d1c..12dce52 100644 --- a/vacs-map-app/src/App.vue +++ b/vacs-map-app/src/App.vue @@ -5,7 +5,15 @@ diff --git a/vacs-map-app/src/components/CropFilters.vue b/vacs-map-app/src/components/CropFilters.vue new file mode 100644 index 0000000..e7135fc --- /dev/null +++ b/vacs-map-app/src/components/CropFilters.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/vacs-map-app/src/components/OverviewTop.vue b/vacs-map-app/src/components/OverviewTop.vue index 18d40da..dae5586 100644 --- a/vacs-map-app/src/components/OverviewTop.vue +++ b/vacs-map-app/src/components/OverviewTop.vue @@ -2,11 +2,8 @@
- How does impact decisions about food security? + What crops have the most potential in climate change?
- Explore the map -
-
Go Back
diff --git a/vacs-map-app/src/components/pages/CropDetail.vue b/vacs-map-app/src/components/pages/CropDetail.vue new file mode 100644 index 0000000..931426f --- /dev/null +++ b/vacs-map-app/src/components/pages/CropDetail.vue @@ -0,0 +1,18 @@ + + + + + diff --git a/vacs-map-app/src/components/pages/CropTypeOverview.vue b/vacs-map-app/src/components/pages/CropTypeOverview.vue index 229bb73..be673ea 100644 --- a/vacs-map-app/src/components/pages/CropTypeOverview.vue +++ b/vacs-map-app/src/components/pages/CropTypeOverview.vue @@ -1,11 +1,14 @@ diff --git a/vacs-map-app/src/components/ExploreSidebar.vue b/vacs-map-app/src/components/ExploreSidebar.vue new file mode 100644 index 0000000..50d5861 --- /dev/null +++ b/vacs-map-app/src/components/ExploreSidebar.vue @@ -0,0 +1,89 @@ + + + + + \ No newline at end of file diff --git a/vacs-map-app/src/components/layouts/LayoutOverview.vue b/vacs-map-app/src/components/layouts/LayoutOverview.vue index 2b1df94..5c853d1 100644 --- a/vacs-map-app/src/components/layouts/LayoutOverview.vue +++ b/vacs-map-app/src/components/layouts/LayoutOverview.vue @@ -35,6 +35,6 @@ const topic = computed(() => topicUrlOptions } .layout-overview-content { - margin: 0 var(--page-horizontal-margin); + height: 100%; } From 7c4f3d9da8ff475067151105473c4714db895371 Mon Sep 17 00:00:00 2001 From: mwbernard Date: Sat, 18 Nov 2023 15:35:44 -0800 Subject: [PATCH 6/6] Add margin to back to crops page --- .../src/components/pages/CropTypeOverview.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vacs-map-app/src/components/pages/CropTypeOverview.vue b/vacs-map-app/src/components/pages/CropTypeOverview.vue index be673ea..e41225a 100644 --- a/vacs-map-app/src/components/pages/CropTypeOverview.vue +++ b/vacs-map-app/src/components/pages/CropTypeOverview.vue @@ -1,7 +1,9 @@ @@ -12,4 +14,7 @@ import CropFilters from '@/components/CropFilters.vue';