Skip to content

Commit

Permalink
fixed sanity config
Browse files Browse the repository at this point in the history
  • Loading branch information
tmanundercover committed Dec 5, 2023
1 parent 0940f40 commit b16e31d
Show file tree
Hide file tree
Showing 8 changed files with 365 additions and 170 deletions.
320 changes: 205 additions & 115 deletions sanityIo/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sanityIo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"dependencies": {
"@sanity/block-content-to-react": "^3.0.0",
"@sanity/cli": "^3.19.1",
"@sanity/cli": "^3.20.2",
"@sanity/code-input": "^2.30.0",
"@sanity/components": "^2.14.0",
"@sanity/vision": "^3.16.7",
Expand Down
65 changes: 65 additions & 0 deletions sanityIo/sanity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"root": true,
"api": {
"projectId": "e5l5k4i5",
"dataset": "production"
},
"project": {
"name": "The handsomest Nerd Website"
},
"__experimental_spaces": [
{
"name": "production",
"title": "Production",
"api": {
"projectId": "e5l5k4i5",
"dataset": "production"
}
},
{
"name": "development",
"title": "Development",
"default": true,
"api": {
"projectId": "e5l5k4i5",
"dataset": "development"
}
}
],
"plugins": [
"@sanity/base",
"@sanity/components",
"@sanity/default-layout",
"@sanity/default-login",
"@sanity/desk-tool",
"color-list",
"@sanity/code-input",
"json-input",
"media"
],
"env": {
"development": {
"plugins": [
"@sanity/vision"
]
}
},
"parts": [
{
"name": "part:@sanity/base/schema",
"path": "./schemas/schema"
},
{
"name": "part:@sanity/desk-tool/structure",
"path": "./parts/deskStructure.js"
},
{
"implements": "part:@sanity/form-builder/input/image/asset-sources",
"path": "./parts/assetSources.js"
},
{
"implements": "part:@sanity/form-builder/input/file/asset-sources",
"path": "./parts/assetSources.js"
}
]
}
6 changes: 6 additions & 0 deletions sanityIo/schemas/sections/web-dev/FooterSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ export default {
title: 'Name',
type: 'string',
},
{
name: 'topPadding',
title: 'Top Padding',
type: 'string',
},
{
name: 'backgroundImgSrc',
title: 'Background Image',
Expand All @@ -18,6 +23,7 @@ export default {
hotspot: true,
},
},

{
name: 'backgroundColor',
title: 'Background Color',
Expand Down
137 changes: 84 additions & 53 deletions sanityIo/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"chalk" "^2.4.2"

"@babel/compat-data@^7.22.9":
"integrity" "sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw=="
"resolved" "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz"
"version" "7.22.20"
"integrity" "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw=="
"resolved" "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz"
"version" "7.23.5"

"@babel/core@^7.0.0", "@babel/core@^7.0.0-0", "@babel/core@^7.22.20":
"integrity" "sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ=="
Expand Down Expand Up @@ -100,9 +100,9 @@
"@babel/types" "^7.22.15"

"@babel/helper-module-transforms@^7.23.0":
"integrity" "sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw=="
"resolved" "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz"
"version" "7.23.0"
"integrity" "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ=="
"resolved" "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz"
"version" "7.23.3"
dependencies:
"@babel/helper-environment-visitor" "^7.22.20"
"@babel/helper-module-imports" "^7.22.15"
Expand All @@ -129,20 +129,20 @@
dependencies:
"@babel/types" "^7.22.5"

"@babel/helper-string-parser@^7.22.5":
"integrity" "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw=="
"resolved" "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz"
"version" "7.22.5"
"@babel/helper-string-parser@^7.23.4":
"integrity" "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ=="
"resolved" "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz"
"version" "7.23.4"

"@babel/helper-validator-identifier@^7.22.20":
"integrity" "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A=="
"resolved" "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz"
"version" "7.22.20"

"@babel/helper-validator-option@^7.22.15":
"integrity" "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA=="
"resolved" "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz"
"version" "7.22.15"
"integrity" "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw=="
"resolved" "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz"
"version" "7.23.5"

"@babel/helpers@^7.23.0":
"integrity" "sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA=="
Expand All @@ -168,9 +168,9 @@
"version" "7.23.0"

"@babel/plugin-syntax-jsx@^7.22.5":
"integrity" "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg=="
"resolved" "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz"
"version" "7.22.5"
"integrity" "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg=="
"resolved" "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz"
"version" "7.23.3"
dependencies:
"@babel/helper-plugin-utils" "^7.22.5"

Expand Down Expand Up @@ -221,11 +221,11 @@
"globals" "^11.1.0"

"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.22.15", "@babel/types@^7.22.5", "@babel/types@^7.23.0":
"integrity" "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg=="
"resolved" "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz"
"version" "7.23.0"
"integrity" "sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w=="
"resolved" "https://registry.npmjs.org/@babel/types/-/types-7.23.5.tgz"
"version" "7.23.5"
dependencies:
"@babel/helper-string-parser" "^7.22.5"
"@babel/helper-string-parser" "^7.23.4"
"@babel/helper-validator-identifier" "^7.22.20"
"to-fast-properties" "^2.0.0"

Expand Down Expand Up @@ -450,6 +450,14 @@
"resolved" "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz"
"version" "1.1.2"

"@jridgewell/source-map@^0.3.3":
"integrity" "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ=="
"resolved" "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz"
"version" "0.3.5"
dependencies:
"@jridgewell/gen-mapping" "^0.3.0"
"@jridgewell/trace-mapping" "^0.3.9"

"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14":
"integrity" "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw=="
"resolved" "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz"
Expand Down Expand Up @@ -791,10 +799,10 @@
"get-random-values-esm" "^1.0.0"
"lodash" "^4.17.21"

"@sanity/cli@^3.19.1":
"integrity" "sha512-4kjZzCgrXGhUD09AU/cj3gHQ/h30VJ4FZ+y9B7M8YNE/5GQL+S00mtt93J57AWARwuMpqXgVnCO3HINMvHthwQ=="
"resolved" "https://registry.npmjs.org/@sanity/cli/-/cli-3.19.1.tgz"
"version" "3.19.1"
"@sanity/cli@^3.20.2":
"integrity" "sha512-Xd61aTqzSZbGTpxkXznhb7+h9p3lWWoPmfwpDM2DxDNkjCYrGl+G5r8dLFTJ+W3FXD7zOd4jedqlVgpE5bu1gQ=="
"resolved" "https://registry.npmjs.org/@sanity/cli/-/cli-3.20.2.tgz"
"version" "3.20.2"
dependencies:
"@babel/traverse" "^7.19.0"
"chalk" "^4.1.2"
Expand Down Expand Up @@ -1857,7 +1865,7 @@
"resolved" "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz"
"version" "8.2.0"

"acorn@^8.1.0", "acorn@^8.8.1":
"acorn@^8.1.0", "acorn@^8.8.1", "acorn@^8.8.2":
"integrity" "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw=="
"resolved" "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz"
"version" "8.10.0"
Expand Down Expand Up @@ -2073,13 +2081,13 @@
"pako" "~0.2.0"

"browserslist@^4.21.9", "browserslist@>= 4.21.0":
"integrity" "sha512-xn1UXOKUz7DjdGlg9RrUr0GGiWzI97UQJnugHtH0OLDfJB7jMgoIkYvRIEO1l9EeEERVqeqLYOcFBW9ldjypbQ=="
"resolved" "https://registry.npmjs.org/browserslist/-/browserslist-4.21.11.tgz"
"version" "4.21.11"
"integrity" "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A=="
"resolved" "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz"
"version" "4.22.2"
dependencies:
"caniuse-lite" "^1.0.30001538"
"electron-to-chromium" "^1.4.526"
"node-releases" "^2.0.13"
"caniuse-lite" "^1.0.30001565"
"electron-to-chromium" "^1.4.601"
"node-releases" "^2.0.14"
"update-browserslist-db" "^1.0.13"

"buffer-crc32@^0.2.1", "buffer-crc32@^0.2.13":
Expand Down Expand Up @@ -2110,10 +2118,10 @@
"resolved" "https://registry.npmjs.org/camelize/-/camelize-1.0.1.tgz"
"version" "1.0.1"

"caniuse-lite@^1.0.30001538":
"integrity" "sha512-hfS5tE8bnNiNvEOEkm8HElUHroYwlqMMENEzELymy77+tJ6m+gA2krtHl5hxJaj71OlpC2cHZbdSMX1/YEqEkA=="
"resolved" "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001539.tgz"
"version" "1.0.30001539"
"caniuse-lite@^1.0.30001565":
"integrity" "sha512-ggIhCsTxmITBAMmK8yZjEhCO5/47jKXPu6Dha/wuCS4JePVL+3uiDEBuhu2aIoT+bqTOR8L76Ip1ARL9xYsEJA=="
"resolved" "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001566.tgz"
"version" "1.0.30001566"

"capture-stack-trace@^1.0.0":
"integrity" "sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw=="
Expand Down Expand Up @@ -2252,6 +2260,11 @@
"resolved" "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz"
"version" "1.0.8"

"commander@^2.20.0":
"integrity" "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
"resolved" "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz"
"version" "2.20.3"

"compress-commons@^4.1.2":
"integrity" "sha512-D3uMHtGc/fcO1Gt1/L7i1e33VOvD4A9hfQLP+6ewd+BvG/gQ84Yh4oftEhAdjSMgBgwGL+jsppT7JYNpo6MHHg=="
"resolved" "https://registry.npmjs.org/compress-commons/-/compress-commons-4.1.2.tgz"
Expand Down Expand Up @@ -2607,10 +2620,10 @@
"readable-stream" "^3.1.1"
"stream-shift" "^1.0.0"

"electron-to-chromium@^1.4.526":
"integrity" "sha512-UdREXMXzLkREF4jA8t89FQjA8WHI6ssP38PMY4/4KhXFQbtImnghh4GkCgrtiZwLKUKVD2iTVXvDVQjfomEQuA=="
"resolved" "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.528.tgz"
"version" "1.4.528"
"electron-to-chromium@^1.4.601":
"integrity" "sha512-SpwUMDWe9tQu8JX5QCO1+p/hChAi9AE9UpoC3rcHVc+gdCGlbT3SGb5I1klgb952HRIyvt9wZhSz9bNBYz9swA=="
"resolved" "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.601.tgz"
"version" "1.4.601"

"element-resize-detector@^1.1.14":
"integrity" "sha512-Fl5Ftk6WwXE0wqCgNoseKWndjzZlDCwuPTcoVZfCP9R3EHQF8qUtr3YUPNETegRBOKqQKPW3n4kiIWngGi8tKg=="
Expand Down Expand Up @@ -2972,9 +2985,9 @@
"xregexp" "2.0.0"

"function-bind@^1.1.1":
"integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
"resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
"version" "1.1.1"
"integrity" "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="
"resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz"
"version" "1.1.2"

"gensync@^1.0.0-beta.2":
"integrity" "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg=="
Expand Down Expand Up @@ -3111,9 +3124,9 @@
"version" "1.0.9"

"graceful-fs@^4.1.2", "graceful-fs@^4.1.6", "graceful-fs@^4.2.0":
"integrity" "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg=="
"resolved" "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz"
"version" "4.2.8"
"integrity" "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="
"resolved" "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz"
"version" "4.2.11"

"groq-js@^0.2.0":
"integrity" "sha512-qJeuEgziddryH1ClsJvMoZM9aXNQbBViNZZrJwhHKr2wU8HGGM7uNWNVFglWXMX60MMaa2SClX3UohP76Ut68g=="
Expand Down Expand Up @@ -3855,10 +3868,10 @@
"resolved" "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz"
"version" "3.3.6"

"node-releases@^2.0.13":
"integrity" "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ=="
"resolved" "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz"
"version" "2.0.13"
"node-releases@^2.0.14":
"integrity" "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw=="
"resolved" "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz"
"version" "2.0.14"

"normalize-package-data@^2.5.0":
"integrity" "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA=="
Expand Down Expand Up @@ -3898,9 +3911,9 @@
"version" "2.0.0"

"object-inspect@^1.6.0":
"integrity" "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ=="
"resolved" "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz"
"version" "1.12.2"
"integrity" "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ=="
"resolved" "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz"
"version" "1.13.1"

"observable-callback@^1.0.1", "observable-callback@^1.0.2":
"integrity" "sha512-VlS275UyPnwdMtzxDgr/lCiOUyq9uXNll3vdwzDcJ6PB/LuO7gLmxAQopcCA3JoFwwujBwyA7/tP5TXZwWSXew=="
Expand Down Expand Up @@ -5078,7 +5091,15 @@
"resolved" "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz"
"version" "1.0.2"

"source-map@~0.6.1":
"source-map-support@~0.5.20":
"integrity" "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w=="
"resolved" "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz"
"version" "0.5.21"
dependencies:
"buffer-from" "^1.0.0"
"source-map" "^0.6.0"

"source-map@^0.6.0", "source-map@~0.6.1":
"integrity" "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="
"resolved" "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz"
"version" "0.6.1"
Expand Down Expand Up @@ -5287,6 +5308,16 @@
"inherits" "^2.0.3"
"readable-stream" "^3.1.1"

"terser@^5.4.0":
"integrity" "sha512-ZpGR4Hy3+wBEzVEnHvstMvqpD/nABNelQn/z2r0fjVWGQsN3bpOLzQlqDxmb4CDZnXq5lpjnQ+mHQLAOpfM5iw=="
"resolved" "https://registry.npmjs.org/terser/-/terser-5.24.0.tgz"
"version" "5.24.0"
dependencies:
"@jridgewell/source-map" "^0.3.3"
"acorn" "^8.8.2"
"commander" "^2.20.0"
"source-map-support" "~0.5.20"

"through2@^2.0.3", "through2@~2.0.3":
"integrity" "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ=="
"resolved" "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz"
Expand Down
1 change: 1 addition & 0 deletions src/components/BlockContentTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ export type FooterSectionType = {
backgroundImgSrc?: SanityImageAsset
backgroundColor?: string
isSocialMediaBlock: boolean
topPadding?: string
footerMenuRef: SanityMenuContainer
}

Expand Down
1 change: 1 addition & 0 deletions src/components/FooterBlockContentLayoutContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const FooterBlockContentLayoutContainer: FunctionComponent<FooterBlockContentLay
<Link id={"BOTTOM_OF_PAGE"} underline="hover"><></>
</Link>
<Footer
topPadding={footer.topPadding}
backgroundColor={footer.backgroundColor}
backgroundImgSrc={footer.backgroundImgSrc}
isSocialMediaBlock={footer.isSocialMediaBlock}
Expand Down
3 changes: 2 additions & 1 deletion src/components/templates/mackenzies-mind/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ interface IProps {
isSocialMediaBlock?: boolean
backgroundImgSrc?: SanityImageAsset
backgroundColor?:string
topPadding?: string
}

const Footer: FunctionComponent<IProps> = (props: IProps) => {
Expand All @@ -69,7 +70,7 @@ const Footer: FunctionComponent<IProps> = (props: IProps) => {
<Grid container className={classes.root} sx={{
backgroundImage: `url(${urlFor(props.backgroundImgSrc ?? "").url()})`,
backgroundSize: "cover",}}>
<Grid container justifyContent="flex-start" sx={{paddingTop: mdDown ? 0 : "56px"}}>
<Grid container justifyContent="flex-start" sx={{paddingTop: mdDown ? 0 : (props.topPadding ?? "0px")}}>
<Grid item xs={12}>
{props.pageFooter && <FooterMenuContainer
isSocialMediaBlock={props.isSocialMediaBlock}
Expand Down

0 comments on commit b16e31d

Please sign in to comment.