diff --git a/.storybook/main.ts b/.storybook/main.ts
index 098b9bf9..8e29e059 100644
--- a/.storybook/main.ts
+++ b/.storybook/main.ts
@@ -12,7 +12,8 @@ const config: StorybookConfig = {
"@storybook/addon-essentials",
"@storybook/preset-create-react-app",
'storybook-addon-material-ui',
- "@storybook/addon-mdx-gfm"
+ "@storybook/addon-mdx-gfm",
+ '@storybook/addon-styling'
],
};
diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx
index 15f13738..fbfd551c 100644
--- a/.storybook/preview.tsx
+++ b/.storybook/preview.tsx
@@ -1,7 +1,23 @@
-import {muiTheme} from "storybook-addon-material-ui";
-import MackenziesMindTheme from "../src/theme/DigitalResumeTheme";
+import DigitalResumeTheme from "../src/theme/DigitalResumeTheme";
import {QueryClient, QueryClientProvider} from "react-query";
-import {BrowserRouter} from "react-router-dom";
+import {BrowserRouter, Navigate, Route, Routes} from "react-router-dom";
+import React from 'react';
+
+import {Preview} from '@storybook/react';
+import {CssBaseline, Grid, MuiThemeProvider} from "@material-ui/core";
+import WebDevSiteTheme from "../src/theme/WebDevSiteTheme";
+import TransformHWTheme from "../src/theme/TransformHWTheme";
+import {withThemeFromJSXProvider} from "@storybook/addon-styling";
+import PageProvider from "../src/components/page-context/PageProvider";
+import HomePageResumeData from "../src/stories/data/HomePageData";
+import ModalProvider from "../src/components/snackbar-context/ModalProvider";
+import SnackbarProvider
+ from "../src/components/modal-context/SnackbarProvider";
+import MediaQueriesProvider from "../src/components/media-queries-context/MediaQueriesProvider";
+import AmenityProvider from "../src/components/amenity-context/AmenityProvider";
+import PageMux from "../src/components/mackenzies-mind/pages/PageMux";
+import FourOhFour from "../src/components/transform-hw/pages/error-page/FourOhFour";
+import {RoutesEnum} from "../src/App";
//
// export const parameters = {
// actions: {argTypesRegex: "^on[A-Z].*"},
@@ -31,23 +47,35 @@ const mockedQueryClient = new QueryClient({
// muiTheme([MackenziesMindTheme]),
// ];
-
-import React from 'react';
-
-import { Preview } from '@storybook/react';
-import {MuiThemeProvider} from "@material-ui/core";
-import DigitalResumeTheme from "../src/theme/DigitalResumeTheme";
-
const preview: Preview = {
decorators: [
(Story) => (
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
),
-
+ withThemeFromJSXProvider({
+ themes: {
+ webDev: WebDevSiteTheme,
+ resume: DigitalResumeTheme,
+ thw: TransformHWTheme
+ },
+ Provider: MuiThemeProvider,
+ GlobalStyles: CssBaseline,
+ })
+// muiTheme([DigitalResumeTheme, WebDevSiteTheme, TransformHWTheme])
],
};
diff --git a/functions/src/groqQueries.ts b/functions/src/groqQueries.ts
index f241560d..3cd015cf 100644
--- a/functions/src/groqQueries.ts
+++ b/functions/src/groqQueries.ts
@@ -97,6 +97,7 @@ const HOMEPAGE = `_type,
${SERVICE}
},
"serviceAmenities": serviceAmenities[]->,
+ "prosList": prosList[]->,
"skillsets": skillsets[]{
...,
"skills": skills[]->{
diff --git a/package-lock.json b/package-lock.json
index d812b348..358c122e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15,6 +15,7 @@
"@sanity/client": "^2.8.0",
"@sanity/types": "^2.34.0",
"@storybook/addon-docs": "^7.4.5",
+ "@storybook/addon-styling": "^1.3.7",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
@@ -6796,6 +6797,109 @@
}
}
},
+ "node_modules/@storybook/addon-styling": {
+ "version": "1.3.7",
+ "resolved": "https://registry.npmjs.org/@storybook/addon-styling/-/addon-styling-1.3.7.tgz",
+ "integrity": "sha512-JSBZMOrSw/3rlq5YoEI7Qyq703KSNP0Jd+gxTWu3/tP6245mpjn2dXnR8FvqVxCi+FG4lt2kQyPzgsuwEw1SSA==",
+ "dependencies": {
+ "@babel/template": "^7.20.7",
+ "@babel/types": "^7.21.5",
+ "@storybook/api": "^7.0.12",
+ "@storybook/components": "^7.0.12",
+ "@storybook/core-common": "^7.0.12",
+ "@storybook/core-events": "^7.0.12",
+ "@storybook/manager-api": "^7.0.12",
+ "@storybook/node-logger": "^7.0.12",
+ "@storybook/preview-api": "^7.0.12",
+ "@storybook/theming": "^7.0.12",
+ "@storybook/types": "^7.0.12",
+ "css-loader": "^6.7.3",
+ "less-loader": "^11.1.0",
+ "postcss-loader": "^7.2.4",
+ "prettier": "^2.8.0",
+ "resolve-url-loader": "^5.0.0",
+ "sass-loader": "^13.2.2",
+ "style-loader": "^3.3.2"
+ },
+ "bin": {
+ "addon-styling-setup": "postinstall.js"
+ },
+ "peerDependencies": {
+ "less": "^3.5.0 || ^4.0.0",
+ "postcss": "^7.0.0 || ^8.0.1",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
+ "webpack": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "less": {
+ "optional": true
+ },
+ "postcss": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "react-dom": {
+ "optional": true
+ },
+ "webpack": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@storybook/addon-styling/node_modules/resolve-url-loader": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz",
+ "integrity": "sha512-uZtduh8/8srhBoMx//5bwqjQ+rfYOUq8zC9NrMUGtjBiGTtFJM42s58/36+hTqeqINcnYe08Nj3LkK9lW4N8Xg==",
+ "dependencies": {
+ "adjust-sourcemap-loader": "^4.0.0",
+ "convert-source-map": "^1.7.0",
+ "loader-utils": "^2.0.0",
+ "postcss": "^8.2.14",
+ "source-map": "0.6.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@storybook/addon-styling/node_modules/sass-loader": {
+ "version": "13.3.2",
+ "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-13.3.2.tgz",
+ "integrity": "sha512-CQbKl57kdEv+KDLquhC+gE3pXt74LEAzm+tzywcA0/aHZuub8wTErbjAoNI57rPUWRYRNC5WUnNl8eGJNbDdwg==",
+ "dependencies": {
+ "neo-async": "^2.6.2"
+ },
+ "engines": {
+ "node": ">= 14.15.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ },
+ "peerDependencies": {
+ "fibers": ">= 3.1.0",
+ "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
+ "sass": "^1.3.0",
+ "sass-embedded": "*",
+ "webpack": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "fibers": {
+ "optional": true
+ },
+ "node-sass": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@storybook/addon-toolbars": {
"version": "7.4.5",
"resolved": "https://registry.npmjs.org/@storybook/addon-toolbars/-/addon-toolbars-7.4.5.tgz",
@@ -6877,6 +6981,31 @@
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
}
},
+ "node_modules/@storybook/api": {
+ "version": "7.4.5",
+ "resolved": "https://registry.npmjs.org/@storybook/api/-/api-7.4.5.tgz",
+ "integrity": "sha512-NpdW54D/fG0QOHtzjMDEG9+zKjmdq1GdsfVX2YEA7s9vq9FTKpnhNSifphEmDEKzwIm64euRj7FEz8mUPbh27Q==",
+ "dependencies": {
+ "@storybook/client-logger": "7.4.5",
+ "@storybook/manager-api": "7.4.5"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/storybook"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ },
+ "peerDependenciesMeta": {
+ "react": {
+ "optional": true
+ },
+ "react-dom": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@storybook/blocks": {
"version": "7.4.5",
"resolved": "https://registry.npmjs.org/@storybook/blocks/-/blocks-7.4.5.tgz",
@@ -12143,18 +12272,18 @@
}
},
"node_modules/css-loader": {
- "version": "6.7.1",
- "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.1.tgz",
- "integrity": "sha512-yB5CNFa14MbPJcomwNh3wLThtkZgcNyI2bNMRt8iE5Z8Vwl7f8vQXFAzn2HDOJvtDq2NTZBUGMSUNNyrv3/+cw==",
+ "version": "6.8.1",
+ "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz",
+ "integrity": "sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==",
"dependencies": {
"icss-utils": "^5.1.0",
- "postcss": "^8.4.7",
+ "postcss": "^8.4.21",
"postcss-modules-extract-imports": "^3.0.0",
- "postcss-modules-local-by-default": "^4.0.0",
+ "postcss-modules-local-by-default": "^4.0.3",
"postcss-modules-scope": "^3.0.0",
"postcss-modules-values": "^4.0.0",
"postcss-value-parser": "^4.2.0",
- "semver": "^7.3.5"
+ "semver": "^7.3.8"
},
"engines": {
"node": ">= 12.13.0"
@@ -12167,17 +12296,6 @@
"webpack": "^5.0.0"
}
},
- "node_modules/css-loader/node_modules/icss-utils": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz",
- "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==",
- "engines": {
- "node": "^10 || ^12 || >= 14"
- },
- "peerDependencies": {
- "postcss": "^8.1.0"
- }
- },
"node_modules/css-loader/node_modules/postcss-modules-extract-imports": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz",
@@ -12189,22 +12307,6 @@
"postcss": "^8.1.0"
}
},
- "node_modules/css-loader/node_modules/postcss-modules-local-by-default": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz",
- "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==",
- "dependencies": {
- "icss-utils": "^5.0.0",
- "postcss-selector-parser": "^6.0.2",
- "postcss-value-parser": "^4.1.0"
- },
- "engines": {
- "node": "^10 || ^12 || >= 14"
- },
- "peerDependencies": {
- "postcss": "^8.1.0"
- }
- },
"node_modules/css-loader/node_modules/postcss-modules-scope": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz",
@@ -15751,6 +15853,17 @@
"node": ">=0.10.0"
}
},
+ "node_modules/icss-utils": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz",
+ "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==",
+ "engines": {
+ "node": "^10 || ^12 || >= 14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
"node_modules/idb": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/idb/-/idb-7.1.0.tgz",
@@ -18030,6 +18143,14 @@
"url": "https://github.com/chalk/supports-color?sponsor=1"
}
},
+ "node_modules/jiti": {
+ "version": "1.20.0",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.20.0.tgz",
+ "integrity": "sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==",
+ "bin": {
+ "jiti": "bin/jiti.js"
+ }
+ },
"node_modules/js-beautify": {
"version": "1.14.6",
"resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.6.tgz",
@@ -18477,6 +18598,22 @@
"node": ">=12"
}
},
+ "node_modules/less-loader": {
+ "version": "11.1.3",
+ "resolved": "https://registry.npmjs.org/less-loader/-/less-loader-11.1.3.tgz",
+ "integrity": "sha512-A5b7O8dH9xpxvkosNrP0dFp2i/dISOJa9WwGF3WJflfqIERE2ybxh1BFDj5CovC2+jCE4M354mk90hN6ziXlVw==",
+ "engines": {
+ "node": ">= 14.15.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ },
+ "peerDependencies": {
+ "less": "^3.5.0 || ^4.0.0",
+ "webpack": "^5.0.0"
+ }
+ },
"node_modules/leven": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
@@ -20120,9 +20257,15 @@
}
},
"node_modules/nanoid": {
- "version": "3.3.4",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
- "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==",
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
+ "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
"bin": {
"nanoid": "bin/nanoid.cjs"
},
@@ -20980,9 +21123,9 @@
"integrity": "sha512-Kjw8nKRl1m+VrSFCoVGPph93W/qrSO7ZkqPpTf7F4bk/sqcfWK019dWBUpE/fBOsOQY1dks/Bmcbfn1heM/IsA=="
},
"node_modules/postcss": {
- "version": "8.4.18",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.18.tgz",
- "integrity": "sha512-Wi8mWhncLJm11GATDaQKobXSNEYGUHeQLiQqDFG1qQ5UTDPTEvKw0Xt5NsTpktGTwLps3ByrWsBrG0rB8YQ9oA==",
+ "version": "8.4.30",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.30.tgz",
+ "integrity": "sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g==",
"funding": [
{
"type": "opencollective",
@@ -20991,10 +21134,14 @@
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
}
],
"dependencies": {
- "nanoid": "^3.3.4",
+ "nanoid": "^3.3.6",
"picocolors": "^1.0.0",
"source-map-js": "^1.0.2"
},
@@ -21452,13 +21599,13 @@
}
},
"node_modules/postcss-loader": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-7.0.1.tgz",
- "integrity": "sha512-VRviFEyYlLjctSM93gAZtcJJ/iSkPZ79zWbN/1fSH+NisBByEiVLqpdVDrPLVSi8DX0oJo12kL/GppTBdKVXiQ==",
+ "version": "7.3.3",
+ "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-7.3.3.tgz",
+ "integrity": "sha512-YgO/yhtevGO/vJePCQmTxiaEwER94LABZN0ZMT4A0vsak9TpO+RvKRs7EmJ8peIlB9xfXCsS7M8LjqncsUZ5HA==",
"dependencies": {
- "cosmiconfig": "^7.0.0",
- "klona": "^2.0.5",
- "semver": "^7.3.7"
+ "cosmiconfig": "^8.2.0",
+ "jiti": "^1.18.2",
+ "semver": "^7.3.8"
},
"engines": {
"node": ">= 14.15.0"
@@ -21472,6 +21619,47 @@
"webpack": "^5.0.0"
}
},
+ "node_modules/postcss-loader/node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
+ },
+ "node_modules/postcss-loader/node_modules/cosmiconfig": {
+ "version": "8.3.6",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz",
+ "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==",
+ "dependencies": {
+ "import-fresh": "^3.3.0",
+ "js-yaml": "^4.1.0",
+ "parse-json": "^5.2.0",
+ "path-type": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/d-fischer"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.9.5"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/postcss-loader/node_modules/js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
"node_modules/postcss-logical": {
"version": "5.0.4",
"resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-5.0.4.tgz",
@@ -21586,6 +21774,22 @@
"postcss": "^8.2.15"
}
},
+ "node_modules/postcss-modules-local-by-default": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz",
+ "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==",
+ "dependencies": {
+ "icss-utils": "^5.0.0",
+ "postcss-selector-parser": "^6.0.2",
+ "postcss-value-parser": "^4.1.0"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >= 14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
"node_modules/postcss-nested": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.0.tgz",
@@ -22121,7 +22325,6 @@
"version": "2.8.8",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
- "dev": true,
"bin": {
"prettier": "bin-prettier.js"
},
@@ -31872,6 +32075,53 @@
"ts-dedent": "^2.0.0"
}
},
+ "@storybook/addon-styling": {
+ "version": "1.3.7",
+ "resolved": "https://registry.npmjs.org/@storybook/addon-styling/-/addon-styling-1.3.7.tgz",
+ "integrity": "sha512-JSBZMOrSw/3rlq5YoEI7Qyq703KSNP0Jd+gxTWu3/tP6245mpjn2dXnR8FvqVxCi+FG4lt2kQyPzgsuwEw1SSA==",
+ "requires": {
+ "@babel/template": "^7.20.7",
+ "@babel/types": "^7.21.5",
+ "@storybook/api": "^7.0.12",
+ "@storybook/components": "^7.0.12",
+ "@storybook/core-common": "^7.0.12",
+ "@storybook/core-events": "^7.0.12",
+ "@storybook/manager-api": "^7.0.12",
+ "@storybook/node-logger": "^7.0.12",
+ "@storybook/preview-api": "^7.0.12",
+ "@storybook/theming": "^7.0.12",
+ "@storybook/types": "^7.0.12",
+ "css-loader": "^6.7.3",
+ "less-loader": "^11.1.0",
+ "postcss-loader": "^7.2.4",
+ "prettier": "^2.8.0",
+ "resolve-url-loader": "^5.0.0",
+ "sass-loader": "^13.2.2",
+ "style-loader": "^3.3.2"
+ },
+ "dependencies": {
+ "resolve-url-loader": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz",
+ "integrity": "sha512-uZtduh8/8srhBoMx//5bwqjQ+rfYOUq8zC9NrMUGtjBiGTtFJM42s58/36+hTqeqINcnYe08Nj3LkK9lW4N8Xg==",
+ "requires": {
+ "adjust-sourcemap-loader": "^4.0.0",
+ "convert-source-map": "^1.7.0",
+ "loader-utils": "^2.0.0",
+ "postcss": "^8.2.14",
+ "source-map": "0.6.1"
+ }
+ },
+ "sass-loader": {
+ "version": "13.3.2",
+ "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-13.3.2.tgz",
+ "integrity": "sha512-CQbKl57kdEv+KDLquhC+gE3pXt74LEAzm+tzywcA0/aHZuub8wTErbjAoNI57rPUWRYRNC5WUnNl8eGJNbDdwg==",
+ "requires": {
+ "neo-async": "^2.6.2"
+ }
+ }
+ }
+ },
"@storybook/addon-toolbars": {
"version": "7.4.5",
"resolved": "https://registry.npmjs.org/@storybook/addon-toolbars/-/addon-toolbars-7.4.5.tgz",
@@ -31913,6 +32163,15 @@
"@storybook/types": "7.4.5"
}
},
+ "@storybook/api": {
+ "version": "7.4.5",
+ "resolved": "https://registry.npmjs.org/@storybook/api/-/api-7.4.5.tgz",
+ "integrity": "sha512-NpdW54D/fG0QOHtzjMDEG9+zKjmdq1GdsfVX2YEA7s9vq9FTKpnhNSifphEmDEKzwIm64euRj7FEz8mUPbh27Q==",
+ "requires": {
+ "@storybook/client-logger": "7.4.5",
+ "@storybook/manager-api": "7.4.5"
+ }
+ },
"@storybook/blocks": {
"version": "7.4.5",
"resolved": "https://registry.npmjs.org/@storybook/blocks/-/blocks-7.4.5.tgz",
@@ -35828,40 +36087,25 @@
}
},
"css-loader": {
- "version": "6.7.1",
- "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.1.tgz",
- "integrity": "sha512-yB5CNFa14MbPJcomwNh3wLThtkZgcNyI2bNMRt8iE5Z8Vwl7f8vQXFAzn2HDOJvtDq2NTZBUGMSUNNyrv3/+cw==",
+ "version": "6.8.1",
+ "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz",
+ "integrity": "sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==",
"requires": {
"icss-utils": "^5.1.0",
- "postcss": "^8.4.7",
+ "postcss": "^8.4.21",
"postcss-modules-extract-imports": "^3.0.0",
- "postcss-modules-local-by-default": "^4.0.0",
+ "postcss-modules-local-by-default": "^4.0.3",
"postcss-modules-scope": "^3.0.0",
"postcss-modules-values": "^4.0.0",
"postcss-value-parser": "^4.2.0",
- "semver": "^7.3.5"
+ "semver": "^7.3.8"
},
"dependencies": {
- "icss-utils": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz",
- "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA=="
- },
"postcss-modules-extract-imports": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz",
"integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw=="
},
- "postcss-modules-local-by-default": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz",
- "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==",
- "requires": {
- "icss-utils": "^5.0.0",
- "postcss-selector-parser": "^6.0.2",
- "postcss-value-parser": "^4.1.0"
- }
- },
"postcss-modules-scope": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz",
@@ -38472,6 +38716,11 @@
"safer-buffer": ">= 2.1.2 < 3"
}
},
+ "icss-utils": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz",
+ "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA=="
+ },
"idb": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/idb/-/idb-7.1.0.tgz",
@@ -40181,6 +40430,11 @@
}
}
},
+ "jiti": {
+ "version": "1.20.0",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.20.0.tgz",
+ "integrity": "sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA=="
+ },
"js-beautify": {
"version": "1.14.6",
"resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.6.tgz",
@@ -40547,6 +40801,11 @@
}
}
},
+ "less-loader": {
+ "version": "11.1.3",
+ "resolved": "https://registry.npmjs.org/less-loader/-/less-loader-11.1.3.tgz",
+ "integrity": "sha512-A5b7O8dH9xpxvkosNrP0dFp2i/dISOJa9WwGF3WJflfqIERE2ybxh1BFDj5CovC2+jCE4M354mk90hN6ziXlVw=="
+ },
"leven": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
@@ -41680,9 +41939,9 @@
}
},
"nanoid": {
- "version": "3.3.4",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
- "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw=="
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
+ "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA=="
},
"natural-compare": {
"version": "1.4.0",
@@ -42320,11 +42579,11 @@
"integrity": "sha512-Kjw8nKRl1m+VrSFCoVGPph93W/qrSO7ZkqPpTf7F4bk/sqcfWK019dWBUpE/fBOsOQY1dks/Bmcbfn1heM/IsA=="
},
"postcss": {
- "version": "8.4.18",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.18.tgz",
- "integrity": "sha512-Wi8mWhncLJm11GATDaQKobXSNEYGUHeQLiQqDFG1qQ5UTDPTEvKw0Xt5NsTpktGTwLps3ByrWsBrG0rB8YQ9oA==",
+ "version": "8.4.30",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.30.tgz",
+ "integrity": "sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g==",
"requires": {
- "nanoid": "^3.3.4",
+ "nanoid": "^3.3.6",
"picocolors": "^1.0.0",
"source-map-js": "^1.0.2"
}
@@ -42548,13 +42807,39 @@
}
},
"postcss-loader": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-7.0.1.tgz",
- "integrity": "sha512-VRviFEyYlLjctSM93gAZtcJJ/iSkPZ79zWbN/1fSH+NisBByEiVLqpdVDrPLVSi8DX0oJo12kL/GppTBdKVXiQ==",
+ "version": "7.3.3",
+ "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-7.3.3.tgz",
+ "integrity": "sha512-YgO/yhtevGO/vJePCQmTxiaEwER94LABZN0ZMT4A0vsak9TpO+RvKRs7EmJ8peIlB9xfXCsS7M8LjqncsUZ5HA==",
"requires": {
- "cosmiconfig": "^7.0.0",
- "klona": "^2.0.5",
- "semver": "^7.3.7"
+ "cosmiconfig": "^8.2.0",
+ "jiti": "^1.18.2",
+ "semver": "^7.3.8"
+ },
+ "dependencies": {
+ "argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
+ },
+ "cosmiconfig": {
+ "version": "8.3.6",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz",
+ "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==",
+ "requires": {
+ "import-fresh": "^3.3.0",
+ "js-yaml": "^4.1.0",
+ "parse-json": "^5.2.0",
+ "path-type": "^4.0.0"
+ }
+ },
+ "js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "requires": {
+ "argparse": "^2.0.1"
+ }
+ }
}
},
"postcss-logical": {
@@ -42623,6 +42908,16 @@
"postcss-selector-parser": "^6.0.5"
}
},
+ "postcss-modules-local-by-default": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz",
+ "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==",
+ "requires": {
+ "icss-utils": "^5.0.0",
+ "postcss-selector-parser": "^6.0.2",
+ "postcss-value-parser": "^4.1.0"
+ }
+ },
"postcss-nested": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.0.tgz",
@@ -42944,8 +43239,7 @@
"prettier": {
"version": "2.8.8",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
- "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
- "dev": true
+ "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q=="
},
"pretty-bytes": {
"version": "5.6.0",
diff --git a/package.json b/package.json
index b5ea1b78..ee4090be 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
"@sanity/client": "^2.8.0",
"@sanity/types": "^2.34.0",
"@storybook/addon-docs": "^7.4.5",
+ "@storybook/addon-styling": "^1.3.7",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
@@ -95,7 +96,6 @@
]
},
"devDependencies": {
-
"@sanity/image-url": "^0.140.22",
"@storybook/addon-actions": "^7.4.5",
"@storybook/addon-essentials": "^7.4.5",
diff --git a/src/App.tsx b/src/App.tsx
index fc72255e..6ae2665c 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -35,6 +35,7 @@ function App() {
return (
+
@@ -63,6 +64,7 @@ function App() {
+
)
diff --git a/src/components/BlockContentTypes.ts b/src/components/BlockContentTypes.ts
index d28fd351..df9e712c 100644
--- a/src/components/BlockContentTypes.ts
+++ b/src/components/BlockContentTypes.ts
@@ -35,7 +35,7 @@ export type WhySwitchReasonType = {
}
export type WhySwitchSectionType = {
- _id:string
+ _id: string
imageSrc: SanityImageAsset
imageAlt: string
reasons: WhySwitchReasonType[]
@@ -54,10 +54,10 @@ export type CryptoInYourPocketSectionType = {
}
export type SanityImageAsset = SanityImageSource | {
- _type:string,
+ _type: string,
asset: {
- _ref:string,
- _type:"reference"
+ _ref: string,
+ _type: "reference"
}
}
@@ -79,29 +79,29 @@ export type ThwHeroContentSectionType = {
export type ServiceAmenityTypeRef = SanityRef
export type ServiceAmenityType = {
name: string
- imageSrc: SanityImageAsset
+ imageSrc?: SanityImageAsset
title: string
description: string
-}
+} & SanityDocumentFields
export type ThwPositivePsychologySectionType = {
- name: string
- superTitle:string
- contentTitle: string
- contentText: string
- contentBullets: string[]
- imageSrc: SanityImageAsset
- imageSrcAltText: string
- ctaButtonText: string
- ctaButtonLink: string
+ name?: string
+ superTitle?: string
+ contentTitle?: string
+ contentText?: string
+ contentBullets?: string[]
+ imageSrc?: SanityImageAsset
+ imageSrcAltText?: string
+ ctaButtonText?: string
+ ctaButtonLink?: string
}
export type ProprietorAtAGlanceType = {
serviceName: string
- serviceTitle:string
+ serviceTitle: string
sessionList: string[]
- dividerImage: SanityImageAsset
+ dividerImage?: SanityImageAsset
amenitiesSectionTitle: string
amenities: string[]
ctaButtonText: string
@@ -110,14 +110,14 @@ export type ProprietorAtAGlanceType = {
export type ThwAboutProprietorSectionType = {
name: string
- proprietorImage: SanityImageAsset
- proprietorName:string
+ proprietorImage?: SanityImageAsset
+ proprietorName: string
proprietorTitle: string
proprietorServices: ProprietorAtAGlanceType
contentTitle: string
contentText: string[]
proprietorImageAltText: string
- proprietorSignatureImage: SanityImageAsset
+ proprietorSignatureImage?: SanityImageAsset
proprietorSignatureImageAltText: string
ctaButtonText: string
ctaButtonLink: string
@@ -125,9 +125,10 @@ export type ThwAboutProprietorSectionType = {
export type ThwMottoSectionType = {
name: string
+ _type?: "transformMottoSection",
contentText: string
parallaxImage: SanityImageAsset
- contentSuperTitle:string
+ contentSuperTitle: string
}
export type ThwServiceItemType = {
@@ -143,16 +144,16 @@ export type ThwServiceItemType = {
educationPageTitle: string
educationPageSlimHeroImage: SanityImageAsset
extendedDescriptions: string[]
- benefitsOfServiceTitle:string
- benefitsOfServiceContents:string[]
- benefitsOfServiceBullets:string[]
+ benefitsOfServiceTitle: string
+ benefitsOfServiceContents: string[]
+ benefitsOfServiceBullets: string[]
serviceAmenities: ServiceAmenityType[]
slug: SanitySlug
}
export type ThwServiceItemNoRefType = {
name: string
- imageSrc: SanityImageAsset
+ imageSrc?: SanityImageAsset
imageSrcAltText: string
contentTitle: string
contentText: string
@@ -163,12 +164,12 @@ export type ThwServiceItemNoRefType = {
educationPageTitle: string
educationPageSlimHeroImage: SanityImageAsset
extendedDescriptions: string[]
- benefitsOfServiceTitle:string
- benefitsOfServiceContents:string[]
- benefitsOfServiceBullets:string[]
+ benefitsOfServiceTitle: string
+ benefitsOfServiceContents: string[]
+ benefitsOfServiceBullets: string[]
serviceAmenities: ServiceAmenityType[]
slug: SanitySlug
-}
+} & SanityDocumentFields
export type ThwServicesSectionType = {
@@ -180,18 +181,18 @@ export type ThwServicesSectionType = {
servicesList: ThwServiceItemNoRefType[]
}
export type ThwWhyChooseUsSectionType = {
- name: string
- sectionTitle: string
- prosList: SanityRef[]
- imageSrc: SanityImageAsset
- imageSrcAltText: string
- ctaButtonText: string
- ctaButtonLink: string
+ name?: string
+ sectionTitle?: string
+ prosList?: ThwWhyChooseUsItemType[]
+ imageSrc?: SanityImageAsset
+ imageSrcAltText?: string
+ ctaButtonText?: string
+ ctaButtonLink?: string
}
export type ThwWhyChooseUsItemType = {
name: string
- imageSrc: SanityImageAsset
+ imageSrc?: SanityImageAsset
imageSrcAltText: string
contentTitle: string
contentText: string
@@ -199,7 +200,7 @@ export type ThwWhyChooseUsItemType = {
export type ThwContactUsSectionType = {
name: string
- bgImageSrc: SanityImageAsset
+ bgImageSrc?: SanityImageAsset
lhsTitle: string
lhsContentText: string
phone?: string
@@ -208,7 +209,7 @@ export type ThwContactUsSectionType = {
twitter?: string,
linkedIn?: string,
youtube?: string,
- rhsTitle:string,
+ rhsTitle: string,
formSubmitButtonText: string
}
@@ -275,9 +276,12 @@ export type ResumeBioSectionType = {
}
-
export type ResumeSkill = {
_id?: string
+ _createdAt?: string
+ _updatedAt?: string
+ _rev?: string
+ _type?: "ResumeSkill"
name?: string
title?: string
}
@@ -296,23 +300,29 @@ export type ResumeSkillSectionType = {
}
-
-
export type ResumeExperience = {
name?: string
+ _id?: string
+ _rev?: string
+ "_type": "ResumeExperience"
title?: string
companySubtitle?: string
companyName?: string
locationCity?: string
locationState?: string
- dateStart?: Date
- dateEnd?: Date
+ dateStart?: Date | string
+ dateEnd?: Date | string
description?: string
+ _createdAt?: string
+ _updatedAt?: string
skillsUsed?: ResumeSkill[]
+
}
export type ResumeExperienceSectionType = {
name?: string
+ _type?: "ResumeExperienceSection"
+
title?: string
introduction?: string
experiences?: ResumeExperience[]
@@ -321,16 +331,18 @@ export type ResumeExperienceSectionType = {
export type ResumeEducation = {
name?: string
institutionName?: string
- qualification?:string
+ qualification?: string
locationCity?: string
locationState?: string
- dateStart?: Date
- dateEnd?: Date
+ dateStart?: Date | string
+ dateEnd?: Date | string
+ _type: "ResumeEducation"
description?: string
}
export type ResumeEducationSectionType = {
name?: string
+ "_type": "ResumeEducationSection"
title?: string
introduction?: string
educationExperiences?: ResumeEducation[]
@@ -341,12 +353,14 @@ export type ResumeFeedback = {
customerName?: string
customerTitle?: string
companyName?: string
- qualification?:string
+ qualification?: string
quote?: string
- imageSrc?:SanityImageAsset
+ imageSrc?: SanityImageAsset
+ _type?: "ResumeFeedback"
}
export type ResumeFeedbackSectionType = {
+ _type?: "ResumeFeedbackSection"
name?: string
title?: string
introduction?: string
@@ -354,22 +368,24 @@ export type ResumeFeedbackSectionType = {
}
export type ResumePortfolioItem = {
+ _type?: "ResumePortfolioItem"
name?: string
title?: string
coverImage?: SanityImageAsset
- inceptionDate?: Date
+ inceptionDate?: Date | string
slug?: SanitySlug
- skillsHighlighted?:ResumeSkill[]
+ skillsHighlighted?: ResumeSkill[]
detailTitle?: string
detailDescription?: string
linkToProd?: string
linkToDev?: string
- imageGallery?:SanityImageAsset[]
+ imageGallery?: SanityImageAsset[]
}
export type ResumePortfolioSectionType = {
name?: string
- preTitle?:string
+ _type?: "ResumePortfolioSection"
+ preTitle?: string
title?: string
introduction?: string
portfolioEntries?: ResumePortfolioItem[]
@@ -378,6 +394,7 @@ export type ResumePortfolioSectionType = {
export type ResumeContactUsSectionType = {
name: string
+ _type?: "ResumeContactUsSection"
title?: string
introduction?: string
formSubmitButtonText: string
@@ -397,7 +414,7 @@ export type WebDevHeroContentSectionType = {
export type WebDevStatsCounterSectionType = {
name: string
title: string
- stats: {statValue: string, statContent:string}[]
+ stats: { statValue: string, statContent: string }[]
}
@@ -414,7 +431,7 @@ export type WebDevAboutUsSectionType = {
export type ServiceItemNoRefType = {
name: string
- imageSrc: SanityImageAsset
+ imageSrc?: SanityImageAsset
imageSrcAltText: string
contentTitle: string
contentText: string
@@ -425,9 +442,9 @@ export type ServiceItemNoRefType = {
educationPageTitle: string
educationPageSlimHeroImage: SanityImageAsset
extendedDescriptions: string[]
- benefitsOfServiceTitle:string
- benefitsOfServiceContents:string[]
- benefitsOfServiceBullets:string[]
+ benefitsOfServiceTitle: string
+ benefitsOfServiceContents: string[]
+ benefitsOfServiceBullets: string[]
serviceAmenities: ServiceAmenityType[]
slug: SanitySlug
}
@@ -446,10 +463,10 @@ export type WebDevTestimonialsType = {
customerName?: string
customerTitle?: string
companyName?: string
- qualification?:string
+ qualification?: string
quoteSummary?: string
quote?: string
- imageSrc?:SanityImageAsset
+ imageSrc?: SanityImageAsset
}
export type WebDevTestimonialsSectionType = {
@@ -482,18 +499,26 @@ export type HowItWorksSectionType = {
}
export type DevelopmentHeaderSectionType = {
- name:string
+ name: string
headerMenuRef: SanityMenuContainer
}
export type HeaderSectionType = {
- name:string
+ name: string
headerMenuRef: SanityMenuContainer
}
export type DevelopmentFooterSectionType = {
- name:string
+ name: string
footerMenuRef: SanityMenuContainer
}
export type FooterSectionType = {
- name:string
+ name: string
footerMenuRef: SanityMenuContainer
+}
+
+export type SanityDocumentFields = {
+ _rev?: string
+ _createdAt?: string
+ _updatedAt?: string
+ _type?: string
+ _id?: string
}
\ No newline at end of file
diff --git a/src/components/BusinessCard.tsx b/src/components/BusinessCard.tsx
index 05f1ecc1..7a4d487b 100644
--- a/src/components/BusinessCard.tsx
+++ b/src/components/BusinessCard.tsx
@@ -16,9 +16,8 @@ import {Close, FileCopy} from "@material-ui/icons";
import DigitalResumeTheme, {COLORS} from "../theme/DigitalResumeTheme";
import ResumeSocialMedia from "./my-digital-resume/ResumeSocialMedia";
import {urlFor} from "./block-content-ui/static-pages/cmsStaticPagesClient";
-import {MainMenuAnchorType, SanityMenuContainer} from "../common/sanityIo/Types";
+import {MainMenuAnchorType, SanityMenuContainer, SanityTransformHwHomePage} from "../common/sanityIo/Types";
import PageContext from "./page-context/PageContext";
-import Logo from "./transform-hw/logo/Logo";
import {ResumeBioSectionType} from "./BlockContentTypes";
import MailTo from "./mail-to/MailTo";
import QrCodeContext from "./qr-code-context/QrCodeContext";
@@ -47,11 +46,12 @@ const useStyles = makeStyles((theme: Theme) =>
);
interface MainMenuProps {
- menu: SanityMenuContainer
+ // menu: SanityMenuContainer
+ homePage: SanityTransformHwHomePage
anchor: MainMenuAnchorType
}
-const BusinessCard: FunctionComponent = ({menu, anchor}) => {
+const BusinessCard: FunctionComponent = ({anchor,homePage}) => {
const [isDrawerOpen, setIsDrawerOpen] = useState()
const location = useLocation()
@@ -71,13 +71,13 @@ const BusinessCard: FunctionComponent = ({menu, anchor}) => {
const classes = useStyles(DigitalResumeTheme)
const theme = useTheme()
- const pageContext = useContext(PageContext)
+ // const pageContext = useContext(PageContext)
const [userBio, setUserBio] = React.useState()
React.useEffect(() => {
//find the bio in pagecontent
- const bioSection = pageContext.page?.pageContent.content.filter((content: any) => {
+ const bioSection = homePage.pageContent.content.filter((content: any) => {
if (content._type === "ResumeBioSection") {
return true
}
@@ -88,7 +88,7 @@ const BusinessCard: FunctionComponent = ({menu, anchor}) => {
setUserBio(bioSection[0])
- }, [pageContext.page?.pageContent])
+ }, [homePage.pageContent])
const qrCodeContext = useContext(QrCodeContext)
const share = async (url: string) => {
@@ -118,7 +118,7 @@ const BusinessCard: FunctionComponent = ({menu, anchor}) => {
backgroundSize: "cover",
overflow: "visible",
position: "relative",
- backgroundImage: `url(${urlFor(pageContext.page?.businessCardImageSrc ?? "").url()})`
+ backgroundImage: `url(${urlFor(homePage.businessCardImageSrc ?? "").url()})`
}} justifyContent='center' alignContent='flex-end'>
= ({menu, anchor}) => {
height: "max-content",
padding: theme.spacing(2, 3)
}}>
-
+
@@ -150,7 +150,7 @@ const BusinessCard: FunctionComponent = ({menu, anchor}) => {
- {pageContext.page?.phone}
+ {homePage.phone}
@@ -163,12 +163,12 @@ const BusinessCard: FunctionComponent = ({menu, anchor}) => {
-
{pageContext.page?.email}
+ align='right'>{homePage.email}
- {/*{pageContext.page?.email}*/}
+ {/*{homePage.email}*/}
@@ -177,21 +177,21 @@ const BusinessCard: FunctionComponent = ({menu, anchor}) => {
Website
+ align='center'>{homePage.website}
@@ -224,7 +224,7 @@ const BusinessCard: FunctionComponent = ({menu, anchor}) => {
Virtual Meeting
+ align='center'>{homePage.bookAppointmentLink}
@@ -320,7 +320,7 @@ const BusinessCard: FunctionComponent = ({menu, anchor}) => {