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/CropCards.vue b/vacs-map-app/src/components/CropCards.vue
new file mode 100644
index 0000000..e2100d7
--- /dev/null
+++ b/vacs-map-app/src/components/CropCards.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
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 @@
+
+
+ crop filters
+
+
+
+
+
+
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/OverviewTop.vue b/vacs-map-app/src/components/OverviewTop.vue
index 18d40da..c6ff012 100644
--- a/vacs-map-app/src/components/OverviewTop.vue
+++ b/vacs-map-app/src/components/OverviewTop.vue
@@ -2,28 +2,20 @@
- How does impact decisions about food security?
+ What crops have the most potential in a changing climate?
-
Explore the map
-
-
- Go Back
+ 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 @@
+
+
+ {{ slug }}
+
+
+
+
+
+
diff --git a/vacs-map-app/src/components/pages/CropTypeOverview.vue b/vacs-map-app/src/components/pages/CropTypeOverview.vue
index 229bb73..e41225a 100644
--- a/vacs-map-app/src/components/pages/CropTypeOverview.vue
+++ b/vacs-map-app/src/components/pages/CropTypeOverview.vue
@@ -1,12 +1,20 @@
-
- crop type
+
+
+
+
+
diff --git a/vacs-map-app/src/constants/topics.js b/vacs-map-app/src/constants/topics.js
index 5466c28..19c5eb8 100644
--- a/vacs-map-app/src/constants/topics.js
+++ b/vacs-map-app/src/constants/topics.js
@@ -1,7 +1,7 @@
export const topicUrlOptions = [
{
label: 'crop type',
- value: '/crop-type',
+ value: '/crops',
},
{
label: 'climate change',
diff --git a/vacs-map-app/src/main.js b/vacs-map-app/src/main.js
index 77e935c..e246650 100644
--- a/vacs-map-app/src/main.js
+++ b/vacs-map-app/src/main.js
@@ -7,6 +7,7 @@ import App from './App.vue';
import LandingPage from './LandingPage.vue';
import MapExplorer from './MapExplorer.vue';
import ClimateChangeOverview from '@/components/pages/ClimateChangeOverview.vue';
+import CropDetail from '@/components/pages/CropDetail.vue';
import CropTypeOverview from '@/components/pages/CropTypeOverview.vue';
import GeographyOverview from '@/components/pages/GeographyOverview.vue';
import QueryPlugin from '@/store-plugins/query';
@@ -16,7 +17,8 @@ const app = createApp(App)
const routes = [
{ path: '/', component: LandingPage },
- { path: '/crop-type', component: CropTypeOverview },
+ { path: '/crops', component: CropTypeOverview },
+ { path: '/crops/:slug', component: CropDetail },
{ path: '/climate-change', component: ClimateChangeOverview },
{ path: '/geography', component: GeographyOverview },
{ path: '/map-explore', component: MapExplorer },
diff --git a/vacs-map-app/src/stores/filters.js b/vacs-map-app/src/stores/filters.js
index bbc3ee5..e0384a6 100644
--- a/vacs-map-app/src/stores/filters.js
+++ b/vacs-map-app/src/stores/filters.js
@@ -24,7 +24,7 @@ export const useFiltersStore = defineStore('filters', () => {
.map(k => k.split('_')[0])
)).sort();
if (!selectedMetric.value) {
- selectedMetric.value = availableMetrics.value[0];
+ selectedMetric.value = 'yieldratio';
}
availableCrops.value = Array.from(new Set(