diff --git a/sanityIo/schemas/mui/ColorListing.js b/sanityIo/schemas/mui/ColorListing.js new file mode 100644 index 00000000..8ecd980c --- /dev/null +++ b/sanityIo/schemas/mui/ColorListing.js @@ -0,0 +1,23 @@ +export const ColorListing = [ + {value: "WHITESMOKE", title: "Whitesmoke"}, + {value: "DARKBLUE", title: "Dark Blue"}, + {value: "TRANSPARENT_DARKBLUE", title: "Transparent Dark Blue"}, + {value: "BLUE", title: "Blue"}, + {value: "GRAY", title: "Gray"}, + {value: "LIGHT_GRAY", title: "Light Gray"}, + {value: "TRANSPARENTWHITE", title: "Transparent White"}, + {value: "TRANSPARENTERWHITE", title: "Transparenter White"}, + {value: "LIGHTBLUE", title: "Light Blue"}, + {value: "ALMOST PURPLE", title: "Almost Purple"}, + {value: "LIGHTGRAY", title: "Light Gray"}, + {value: "TRANSPARENTLIGHTGRAY", title: "Transparent Light Gray"}, + {value: "MEDIUMGRAY", title: "Medium Gray"}, + {value: "DARKGRAY", title: "DarkGray"}, + {value: "TRANSPARENTDARKGRAY", title: "Transparent Dark Gray"}, + {value: "AQUA", title: "Aqua"}, + {value: "RED", title: "Red"}, + {value: "ALMOSTWHITE", title: "Almost White"}, + {value: "DARKERGRAY", title: "Darker Gray"}, + {value: "DARK_GRAY", title: "Dark Gray"}, + {value: "LIGHTER_GRAY", title: "Lighter Gray"}, +] \ No newline at end of file diff --git a/sanityIo/schemas/mui/MuiColorPalatte.js b/sanityIo/schemas/mui/MuiColorPalatte.js index 869e1a9d..38bbdc82 100644 --- a/sanityIo/schemas/mui/MuiColorPalatte.js +++ b/sanityIo/schemas/mui/MuiColorPalatte.js @@ -1,25 +1,27 @@ -const listing = [ - {value: "WHITESMOKE", title: "Whitesmoke"}, - {value: "DARKBLUE", title: "Dark Blue"}, - {value: "TRANSPARENT_DARKBLUE", title: "Transparent Dark Blue"}, - {value: "BLUE", title: "Blue"}, - {value: "GRAY", title: "Gray"}, - {value: "LIGHT_GRAY", title: "Light Gray"}, - {value: "TRANSPARENTWHITE", title: "Transparent White"}, - {value: "LIGHTBLUE", title: "Light Blue"}, - {value: "ALMOST PURPLE", title: "Almost Purple"}, - {value: "LIGHTGRAY", title: "Light Gray"}, - {value: "TRANSPARENTLIGHTGRAY", title: "Transparent Light Gray"}, - {value: "MEDIUMGRAY", title: "Medium Gray"}, - {value: "DARKGRAY", title: "DarkGray"}, - {value: "TRANSPARENTDARKGRAY", title: "Transparent Dark Gray"}, - {value: "AQUA", title: "Aqua"}, - {value: "RED", title: "Red"}, - {value: "ALMOSTWHITE", title: "Almost White"}, - {value: "DARKERGRAY", title: "Darker Gray"}, - {value: "DARK_GRAY", title: "Dark Gray"}, - {value: "LIGHTER_GRAY", title: "Lighter Gray"}, -] +// const listing = [ +// {value: "WHITESMOKE", title: "Whitesmoke"}, +// {value: "DARKBLUE", title: "Dark Blue"}, +// {value: "TRANSPARENT_DARKBLUE", title: "Transparent Dark Blue"}, +// {value: "BLUE", title: "Blue"}, +// {value: "GRAY", title: "Gray"}, +// {value: "LIGHT_GRAY", title: "Light Gray"}, +// {value: "TRANSPARENTWHITE", title: "Transparent White"}, +// {value: "LIGHTBLUE", title: "Light Blue"}, +// {value: "ALMOST PURPLE", title: "Almost Purple"}, +// {value: "LIGHTGRAY", title: "Light Gray"}, +// {value: "TRANSPARENTLIGHTGRAY", title: "Transparent Light Gray"}, +// {value: "MEDIUMGRAY", title: "Medium Gray"}, +// {value: "DARKGRAY", title: "DarkGray"}, +// {value: "TRANSPARENTDARKGRAY", title: "Transparent Dark Gray"}, +// {value: "AQUA", title: "Aqua"}, +// {value: "RED", title: "Red"}, +// {value: "ALMOSTWHITE", title: "Almost White"}, +// {value: "DARKERGRAY", title: "Darker Gray"}, +// {value: "DARK_GRAY", title: "Dark Gray"}, +// {value: "LIGHTER_GRAY", title: "Lighter Gray"}, +// ] +import {ColorListing} from "./ColorListing"; + export default { name: 'MuiColorPalette', title: 'MUI Color Palette', @@ -29,49 +31,49 @@ export default { name: 'defaultBackground', title: 'Default Background Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'defaultPaperBackgroundColor', title: 'Default Paper Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'primaryColor', title: 'Primary Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'secondaryColor', title: 'Secondary Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'primaryTextColor', title: 'Primary Text Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'buttonOutlineColor', title: 'Button Outline Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'secondaryTextColor', title: 'Secondary Text Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'disabledTextColor', title: 'Disabled Text Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, ] diff --git a/sanityIo/schemas/sections/web-dev/FooterSection.js b/sanityIo/schemas/sections/web-dev/FooterSection.js index e67ab604..b515c20a 100644 --- a/sanityIo/schemas/sections/web-dev/FooterSection.js +++ b/sanityIo/schemas/sections/web-dev/FooterSection.js @@ -1,3 +1,5 @@ +import {ColorListing} from "../../mui/ColorListing"; + export default { name: 'FooterSection', title: 'Footer Section', @@ -8,6 +10,20 @@ export default { title: 'Name', type: 'string', }, + { + name: 'backgroundImgSrc', + title: 'Background Image', + type: 'image', + options: { + hotspot: true, + }, + }, + { + name: 'backgroundColor', + title: 'Background Color', + type: 'string', + options: {list: ColorListing} + }, { name: 'isSocialMediaBlock', title: 'Show Social Media Block', diff --git a/src/components/BlockContentTypes.ts b/src/components/BlockContentTypes.ts index 06772a55..36a622d9 100644 --- a/src/components/BlockContentTypes.ts +++ b/src/components/BlockContentTypes.ts @@ -615,6 +615,8 @@ export type DevelopmentFooterSectionType = { } export type FooterSectionType = { name: string + backgroundImgSrc?: SanityImageAsset + backgroundColor?: string isSocialMediaBlock: boolean footerMenuRef: SanityMenuContainer } diff --git a/src/components/FooterBlockContentLayoutContainer.tsx b/src/components/FooterBlockContentLayoutContainer.tsx index 7a494e8c..2c636815 100644 --- a/src/components/FooterBlockContentLayoutContainer.tsx +++ b/src/components/FooterBlockContentLayoutContainer.tsx @@ -86,6 +86,8 @@ const FooterBlockContentLayoutContainer: FunctionComponent<>