diff --git a/.gitignore b/.gitignore index 88b7219..537d189 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,5 @@ coverage *.sln *.sw? .vercel + +.env \ No newline at end of file diff --git a/README.md b/README.md index b1dee80..7fa80bd 100644 --- a/README.md +++ b/README.md @@ -27,3 +27,23 @@ In your terminal: ### Staging Merge into the `dev` branch, allow 5 minutes for the auto-deploy, and visit pdap.dev. + +### For local development: Add environment secrets + +Either add a `.env` file to your local root directory or manually export these secrets. Reach out to contact@pdap.io or make noise in Discord if you'd like access. + +#### Sample `.env` file +``` +# Local development +#Airtable API key +VITE_AIRTABLE_API_KEY=secret + +#PDAP data sources API key +VITE_PDAP_API_KEY=secret +``` + +#### shell +``` +export VITE_AIRTABLE_API_KEY=secret +export VITE_PDAP_API_KEY=secret +``` diff --git a/package-lock.json b/package-lock.json index c13a823..74bcc73 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@vitejs/plugin-vue-jsx": "^3.0.2", "autoprefixer": "^10.4.16", "npm-run-all2": "^6.0.6", - "pdap-design-system": "^2.1.8", + "pdap-design-system": "^2.7.0", "postcss": "^8.4.32", "tailwindcss": "^3.3.5", "vite": "^4.4.9", @@ -2837,9 +2837,9 @@ "dev": true }, "node_modules/pdap-design-system": { - "version": "2.1.8", - "resolved": "https://registry.npmjs.org/pdap-design-system/-/pdap-design-system-2.1.8.tgz", - "integrity": "sha512-K3JGG95PR7Xc2LB3fdynUCuKS2UHqkHWGLi7qVaSqr8cECB29239WnIELJB8NzmtvZwMwaPBW9GhqsG0559cCw==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/pdap-design-system/-/pdap-design-system-2.7.0.tgz", + "integrity": "sha512-Yq5oICH95Wtn1qgVRwNG/ifPamG4q6ILuTJDjA3UbqH+dKHyBOQMO37C7QXGSpUrAUxp/Th3yTLTXobPszLEsw==", "dev": true, "dependencies": { "@vuelidate/core": "^2.0.3", @@ -2850,9 +2850,6 @@ "vue": "^3.3.7", "vue-router": "^4.2.5" }, - "bin": { - "pdap-design-system": "bin/pdap-design-system-cli.js" - }, "engines": { "node": ">=18.13.0", "npm": ">=8.19.3" diff --git a/package.json b/package.json index 5b6cc54..14d3b19 100644 --- a/package.json +++ b/package.json @@ -20,10 +20,10 @@ "@vitejs/plugin-vue-jsx": "^3.0.2", "autoprefixer": "^10.4.16", "npm-run-all2": "^6.0.6", - "pdap-design-system": "^2.1.8", + "pdap-design-system": "^2.7.0", "postcss": "^8.4.32", "tailwindcss": "^3.3.5", "vite": "^4.4.9", "vite-svg-loader": "^4.0.0" } -} \ No newline at end of file +} diff --git a/src/App.vue b/src/App.vue index 3689bc1..94419c4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -78,4 +78,20 @@ provide('footerLinks', [ body { overflow: auto; } + +.pdap-grid-container{ + padding: 32px; +} + +.pdap-grid-container-columns-2{ + grid-template-columns: repeat(auto-fit, minmax(336px, 1fr)); +} +.loading-shimmer{ + animation-duration: 800ms; +} + +h3{ + margin-top: 0px; +} + diff --git a/src/main.js b/src/main.js index 1880446..fa09bbb 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,5 @@ import './main.css'; -import { FlexContainer, GridContainer, GridItem } from 'pdap-design-system'; +// import { FlexContainer, GridContainer, GridItem } from 'pdap-design-system'; import 'pdap-design-system/styles'; import { createApp } from 'vue'; @@ -15,8 +15,8 @@ app.use(router); components does not properly register them for passing to the prop. So we register globally for now 🤷🏻‍♂️. */ -app.component('FlexContainer', FlexContainer); -app.component('GridContainer', GridContainer); -app.component('GridItem', GridItem); +// app.component('FlexContainer', FlexContainer); +// app.component('GridContainer', GridContainer); +// app.component('GridItem', GridItem); app.mount('#app'); diff --git a/src/views/AboutView.vue b/src/views/AboutView.vue index 67b1154..125f768 100644 --- a/src/views/AboutView.vue +++ b/src/views/AboutView.vue @@ -1,12 +1,14 @@ \ No newline at end of file diff --git a/src/views/CommunityView.vue b/src/views/CommunityView.vue index 684ec9b..6e0cb9d 100644 --- a/src/views/CommunityView.vue +++ b/src/views/CommunityView.vue @@ -1,7 +1,7 @@ diff --git a/src/views/DataView.vue b/src/views/DataView.vue index 3cd6d7b..f3a44fd 100644 --- a/src/views/DataView.vue +++ b/src/views/DataView.vue @@ -1,6 +1,6 @@ diff --git a/src/views/DonateView.vue b/src/views/DonateView.vue index e8415e9..1f92c22 100644 --- a/src/views/DonateView.vue +++ b/src/views/DonateView.vue @@ -1,10 +1,10 @@ diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 4af2df2..e2682e0 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/src/views/JobsView.vue b/src/views/JobsView.vue index bee38da..7143150 100644 --- a/src/views/JobsView.vue +++ b/src/views/JobsView.vue @@ -1,10 +1,12 @@